packages: assign PKG_CPE_ID for all missing packages
[openwrt/openwrt.git] / package / libs / libbsd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=libbsd
4 PKG_VERSION:=0.8.7
5 PKG_RELEASE:=3
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
8 PKG_HASH:=f548f10e5af5a08b1e22889ce84315b1ebe41505b015c9596bad03fd13a12b31
9 PKG_SOURCE_URL:=https://libbsd.freedesktop.org/releases
10
11 PKG_LICENSE:=BSD-4-Clause
12 PKG_LICENSE_FILES:=COPYING
13 PKG_CPE_ID:=cpe:/a:freedesktop:libbsd
14
15 include $(INCLUDE_DIR)/package.mk
16
17 PKG_INSTALL:=1
18
19 define Package/libbsd
20 SECTION:=libs
21 CATEGORY:=Libraries
22 TITLE:=common BSD library
23 ABI_VERSION:=0
24 endef
25
26 define Package/libbsd/description
27 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.
28 endef
29
30 define Build/InstallDev
31 $(INSTALL_DIR) $(1)/usr/lib
32 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
33 $(INSTALL_DIR) $(1)/usr/include
34 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.{la,so*} $(1)/usr/lib/
35 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libbsd*.pc $(1)/usr/lib/pkgconfig/
36 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
37 endef
38
39 define Package/libbsd/install
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.so.* $(1)/usr/lib/
42 endef
43
44 $(eval $(call BuildPackage,libbsd))
45