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.

55 lines
1.5 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:=3
  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_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. define Package/pkg-config
  22. SECTION:=devel
  23. CATEGORY:=Development
  24. TITLE:=pkg-config
  25. URL:=https://www.freedesktop.org/wiki/Software/pkg-config/
  26. DEPENDS:=+glib2 $(INTL_DEPENDS)
  27. CONFLICTS:=pkgconf
  28. endef
  29. define Package/pkg-config/description
  30. pkg-config is a helper tool used when compiling applications and libraries.
  31. It helps you insert the correct compiler options on the command line so an
  32. application can use gcc -o test test.cpkg-config --libs --cflags glib-2.0
  33. for instance, rather than hard-coding values on where to find glib (or
  34. other libraries).
  35. endef
  36. TARGET_CFLAGS += $(FPIC)
  37. define Package/pkg-config/install
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pkg-config $(1)/usr/bin/
  40. $(INSTALL_DIR) $(1)/usr/share/aclocal/
  41. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/pkg.m4 \
  42. $(1)/usr/share/aclocal/
  43. endef
  44. $(eval $(call BuildPackage,pkg-config))