From a1a2544bde1c93f34ec9cd16e9f2282c4324c44f Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Fri, 1 Nov 2019 16:47:38 -0700 Subject: [PATCH 1/2] pkgconf: Add package pkgconf is a lighterweight alternative to pkg-config that does not require glib2. It also seems to be improved in several key areas. See the feature comparison: http://pkgconf.org/features.html Signed-off-by: Rosen Penev --- devel/pkgconf/Makefile | 68 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 devel/pkgconf/Makefile diff --git a/devel/pkgconf/Makefile b/devel/pkgconf/Makefile new file mode 100644 index 000000000..b2ec3990f --- /dev/null +++ b/devel/pkgconf/Makefile @@ -0,0 +1,68 @@ +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=pkgconf +PKG_VERSION:=1.6.3 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=https://distfiles.dereferenced.org/pkgconf +PKG_HASH:=61f0b31b0d5ea0e862b454a80c170f57bad47879c0c42bd8de89200ff62ea210 + +PKG_MAINTAINER:=Rosen Penev +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=COPYING + +PKG_INSTALL:=1 +PKG_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/libpkgconf + SECTION:=libs + CATEGORY:=Libraries + TITLE:=libpkgconf + URL:=http://pkgconf.org/ +endef + +define Package/pkgconf + SECTION:=devel + CATEGORY:=Development + TITLE:=pkgconf + URL:=http://pkgconf.org/ + DEPENDS:=+libpkgconf +endef + +define Package/libpkgconf/description + libpkgconf is a library which provides access to most of pkgconf’s + functionality, to allow other tooling such as compilers and IDEs to + discover and use frameworks configured by pkgconf. It features a stable + library ABI and API designed for building bindings and other tools. +endef + +define Package/pkgconf/description + pkgconf is a program which helps to configure compiler and linker flags + for development frameworks. It is similar to pkg-config from + freedesktop.org, providing additional functionality while also + maintaining compatibility. +endef + +define Package/libpkgconf/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpkgconf.so* $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/share/aclocal/ + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/pkg.m4 \ + $(1)/usr/share/aclocal/ +endef + +define Package/pkgconf/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pkgconf $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,libpkgconf)) +$(eval $(call BuildPackage,pkgconf)) From 243a1a13241dffc3d8da2830d825cbc535c1e33d Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 2 Nov 2019 11:13:22 -0700 Subject: [PATCH 2/2] pkg-config: Add CONFLICTS for pkgconf Fixed license information. Added PKG_BUILD_PARALLEL for faster compilation. Remove PKG_ASLR_PIE. It seems it's going through a rework. Signed-off-by: Rosen Penev --- devel/pkg-config/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/devel/pkg-config/Makefile b/devel/pkg-config/Makefile index 5bfebd28e..3ea917e27 100644 --- a/devel/pkg-config/Makefile +++ b/devel/pkg-config/Makefile @@ -9,16 +9,18 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pkg-config PKG_VERSION:=0.29.2 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE_URL:=https://pkg-config.freedesktop.org/releases/ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_HASH:=6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591 + PKG_MAINTAINER:=Heinrich Schuchardt PKG_LICENSE:=GPL-2.0-or-later +PKG_LICENSE_FILES:=COPYING -PKG_ASLR_PIE:=1 PKG_INSTALL:=1 +PKG_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/nls.mk @@ -29,6 +31,7 @@ define Package/pkg-config TITLE:=pkg-config URL:=https://www.freedesktop.org/wiki/Software/pkg-config/ DEPENDS:=+glib2 $(INTL_DEPENDS) + CONFLICTS:=pkgconf endef define Package/pkg-config/description @@ -39,6 +42,8 @@ define Package/pkg-config/description other libraries). endef +TARGET_CFLAGS += $(FPIC) + define Package/pkg-config/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pkg-config $(1)/usr/bin/