treewide: assign PKG_CPE_ID
[feed/packages.git] / devel / pkgconf / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=pkgconf
9 PKG_VERSION:=1.8.0
10 PKG_RELEASE:=2
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=https://distfiles.dereferenced.org/pkgconf
14 PKG_HASH:=ef9c7e61822b7cb8356e6e9e1dca58d9556f3200d78acab35e4347e9d4c2bbaf
15
16 PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
17 PKG_LICENSE:=MIT
18 PKG_LICENSE_FILES:=COPYING
19 PKG_CPE_ID:=cpe:/a:pkgconf:pkgconf
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/meson.mk
23
24 define Package/libpkgconf
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=libpkgconf
28 URL:=http://pkgconf.org/
29 endef
30
31 define Package/pkgconf
32 SECTION:=devel
33 CATEGORY:=Development
34 TITLE:=pkgconf
35 URL:=http://pkgconf.org/
36 DEPENDS:=+libpkgconf
37 endef
38
39 define Package/libpkgconf/description
40 libpkgconf is a library which provides access to most of pkgconf’s
41 functionality, to allow other tooling such as compilers and IDEs to
42 discover and use frameworks configured by pkgconf. It features a stable
43 library ABI and API designed for building bindings and other tools.
44 endef
45
46 define Package/pkgconf/description
47 pkgconf is a program which helps to configure compiler and linker flags
48 for development frameworks. It is similar to pkg-config from
49 freedesktop.org, providing additional functionality while also
50 maintaining compatibility.
51 endef
52
53 MESON_ARGS += \
54 -Dtests=false
55
56 define Build/InstallDev
57 $(INSTALL_DIR) $(1)/usr/include/libpkgconf
58 $(CP) $(PKG_INSTALL_DIR)/usr/include/pkgconf/libpkgconf/*.h $(1)/usr/include/libpkgconf
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpkgconf.so* $(1)/usr/lib/
61 $(INSTALL_DIR) $(1)/usr/share/aclocal/
62 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/pkg.m4 \
63 $(1)/usr/share/aclocal/
64 endef
65
66 define Package/libpkgconf/install
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpkgconf.so* $(1)/usr/lib/
69 $(INSTALL_DIR) $(1)/usr/share/aclocal/
70 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/pkg.m4 \
71 $(1)/usr/share/aclocal/
72 endef
73
74 define Package/pkgconf/install
75 $(INSTALL_DIR) $(1)/usr/bin
76 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pkgconf $(1)/usr/bin/
77 endef
78
79 $(eval $(call BuildPackage,libpkgconf))
80 $(eval $(call BuildPackage,pkgconf))