You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2015-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=pkg-config
  9. PKG_VERSION:=0.29.2
  10. PKG_RELEASE:=2
  11. PKG_SOURCE_URL:=https://pkg-config.freedesktop.org/releases/
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_HASH:=6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591
  14. PKG_MAINTAINER:=Heinrich Schuchardt <xypron.glpk@gmx.de>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_ASLR_PIE:=1
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/nls.mk
  20. define Package/pkg-config
  21. SECTION:=devel
  22. CATEGORY:=Development
  23. TITLE:=pkg-config
  24. URL:=https://www.freedesktop.org/wiki/Software/pkg-config/
  25. DEPENDS:=+glib2 $(INTL_DEPENDS)
  26. endef
  27. define Package/pkg-config/description
  28. pkg-config is a helper tool used when compiling applications and libraries.
  29. It helps you insert the correct compiler options on the command line so an
  30. application can use gcc -o test test.cpkg-config --libs --cflags glib-2.0
  31. for instance, rather than hard-coding values on where to find glib (or
  32. other libraries).
  33. endef
  34. define Package/pkg-config/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pkg-config $(1)/usr/bin/
  37. $(INSTALL_DIR) $(1)/usr/share/aclocal/
  38. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/pkg.m4 \
  39. $(1)/usr/share/aclocal/
  40. endef
  41. $(eval $(call BuildPackage,pkg-config))