Merge pull request #11353 from kvuorine/fwknop-fixes
[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.7.3
10 PKG_RELEASE:=1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=https://distfiles.dereferenced.org/pkgconf
14 PKG_HASH:=b846aea51cf696c3392a0ae58bef93e2e72f8e7073ca6ad1ed8b01c85871f9c0
15
16 PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
17 PKG_LICENSE:=MIT
18 PKG_LICENSE_FILES:=COPYING
19
20 PKG_INSTALL:=1
21 PKG_BUILD_DEPENDS:=meson/host
22
23 include $(INCLUDE_DIR)/package.mk
24 include ../../devel/meson/meson.mk
25
26 define Package/libpkgconf
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=libpkgconf
30 URL:=http://pkgconf.org/
31 endef
32
33 define Package/pkgconf
34 SECTION:=devel
35 CATEGORY:=Development
36 TITLE:=pkgconf
37 URL:=http://pkgconf.org/
38 DEPENDS:=+libpkgconf
39 endef
40
41 define Package/libpkgconf/description
42 libpkgconf is a library which provides access to most of pkgconf’s
43 functionality, to allow other tooling such as compilers and IDEs to
44 discover and use frameworks configured by pkgconf. It features a stable
45 library ABI and API designed for building bindings and other tools.
46 endef
47
48 define Package/pkgconf/description
49 pkgconf is a program which helps to configure compiler and linker flags
50 for development frameworks. It is similar to pkg-config from
51 freedesktop.org, providing additional functionality while also
52 maintaining compatibility.
53 endef
54
55 MESON_ARGS += \
56 -Dtests=false
57
58 define Build/InstallDev
59 $(INSTALL_DIR) $(1)/usr/include/libpkgconf
60 $(CP) $(PKG_INSTALL_DIR)/usr/include/libpkgconf/*.h $(1)/usr/include/libpkgconf/
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpkgconf.so* $(1)/usr/lib/
63 $(INSTALL_DIR) $(1)/usr/share/aclocal/
64 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/pkg.m4 \
65 $(1)/usr/share/aclocal/
66 endef
67
68 define Package/libpkgconf/install
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpkgconf.so* $(1)/usr/lib/
71 $(INSTALL_DIR) $(1)/usr/share/aclocal/
72 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/pkg.m4 \
73 $(1)/usr/share/aclocal/
74 endef
75
76 define Package/pkgconf/install
77 $(INSTALL_DIR) $(1)/usr/bin
78 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pkgconf $(1)/usr/bin/
79 endef
80
81 $(eval $(call BuildPackage,libpkgconf))
82 $(eval $(call BuildPackage,pkgconf))