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