Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libmd
  3. PKG_VERSION:=1.0.4
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  6. PKG_SOURCE_URL:=https://archive.hadrons.org/software/libmd/
  7. PKG_HASH:=f51c921042e34beddeded4b75557656559cf5b1f2448033b4c1eec11c07e530f
  8. PKG_LICENSE:=BSD-3-Clause
  9. PKG_LICENSE_FILES:=COPYING
  10. PKG_INSTALL:=1
  11. PKG_BUILD_PARALLEL:=1
  12. include $(INCLUDE_DIR)/package.mk
  13. TARGET_CFLAGS += $(FPIC)
  14. CONFIGURE_ARGS += \
  15. --enable-static
  16. define Package/libmd
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=Message Digest functions from BSD systems
  20. ABI_VERSION:=0
  21. endef
  22. define Package/libmd/description
  23. This library provides message digest functions found on BSD systems either
  24. on their libc or libmd libraries and lacking on others like GNU systems,
  25. thus making it easier to port projects with strong BSD origins, without
  26. needing to embed the same code over and over again on each project.
  27. endef
  28. define Build/InstallDev
  29. $(INSTALL_DIR) $(1)/usr/lib
  30. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  31. $(INSTALL_DIR) $(1)/usr/include
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmd.a $(1)/usr/lib/
  33. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmd*.pc $(1)/usr/lib/pkgconfig/
  34. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  35. endef
  36. $(eval $(call BuildPackage,libmd))