libbsd: update to 0.11.7
[openwrt/staging/ansuel.git] / package / libs / libbsd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=libbsd
4 PKG_VERSION:=0.11.7
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
8 PKG_SOURCE_URL:=https://libbsd.freedesktop.org/releases
9 PKG_HASH:=9baa186059ebbf25c06308e9f991fda31f7183c0f24931826d83aa6abd8a0261
10
11 PKG_LICENSE:=BSD-4-Clause
12 PKG_LICENSE_FILES:=COPYING
13
14 PKG_INSTALL:=1
15 PKG_BUILD_PARALLEL:=1
16 PKG_BUILD_DEPENDS := libmd
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libbsd
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=common BSD library
24 ABI_VERSION:=0
25 endef
26
27 define Package/libbsd/description
28 This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project.
29 endef
30
31 define Build/InstallDev
32 $(INSTALL_DIR) $(1)/usr/lib
33 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
34 $(INSTALL_DIR) $(1)/usr/include
35 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.{la,so*} $(1)/usr/lib/
36 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libbsd*.pc $(1)/usr/lib/pkgconfig/
37 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
38 endef
39
40 define Package/libbsd/install
41 $(INSTALL_DIR) $(1)/usr/lib
42 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.so.* $(1)/usr/lib/
43 endef
44
45 $(eval $(call BuildPackage,libbsd))