pkgconf: update to 1.8.0
[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:=$(AUTORELEASE)
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
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/meson.mk
24
25 define Package/libpkgconf
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=libpkgconf
29 URL:=http://pkgconf.org/
30 endef
31
32 define Package/pkgconf
33 SECTION:=devel
34 CATEGORY:=Development
35 TITLE:=pkgconf
36 URL:=http://pkgconf.org/
37 DEPENDS:=+libpkgconf
38 endef
39
40 define Package/libpkgconf/description
41 libpkgconf is a library which provides access to most of pkgconf’s
42 functionality, to allow other tooling such as compilers and IDEs to
43 discover and use frameworks configured by pkgconf. It features a stable
44 library ABI and API designed for building bindings and other tools.
45 endef
46
47 define Package/pkgconf/description
48 pkgconf is a program which helps to configure compiler and linker flags
49 for development frameworks. It is similar to pkg-config from
50 freedesktop.org, providing additional functionality while also
51 maintaining compatibility.
52 endef
53
54 MESON_ARGS += \
55 -Dtests=false
56
57 define Build/InstallDev
58 $(INSTALL_DIR) $(1)/usr/include/libpkgconf
59 $(CP) $(PKG_INSTALL_DIR)/usr/include/pkgconf/libpkgconf/*.h $(1)/usr/include/libpkgconf
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpkgconf.so* $(1)/usr/lib/
62 $(INSTALL_DIR) $(1)/usr/share/aclocal/
63 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/pkg.m4 \
64 $(1)/usr/share/aclocal/
65 endef
66
67 define Package/libpkgconf/install
68 $(INSTALL_DIR) $(1)/usr/lib
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpkgconf.so* $(1)/usr/lib/
70 $(INSTALL_DIR) $(1)/usr/share/aclocal/
71 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/pkg.m4 \
72 $(1)/usr/share/aclocal/
73 endef
74
75 define Package/pkgconf/install
76 $(INSTALL_DIR) $(1)/usr/bin
77 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pkgconf $(1)/usr/bin/
78 endef
79
80 $(eval $(call BuildPackage,libpkgconf))
81 $(eval $(call BuildPackage,pkgconf))