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.

49 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.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_URL:=http://pkgconfig.freedesktop.org/releases/
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_MD5SUM:=f739a28cae4e0ca291f82d1d41ef107d
  14. PKG_MAINTAINER:=Heinrich Schuchardt <xypron.glpk@gmx.de>
  15. PKG_LICENSE:=GPL-2+
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/nls.mk
  19. define Package/pkg-config
  20. SECTION:=devel
  21. CATEGORY:=Development
  22. TITLE:=pkg-config
  23. URL:=http://www.freedesktop.org/wiki/Software/pkg-config/
  24. DEPENDS:=+glib2 $(INTL_DEPENDS)
  25. endef
  26. define Package/pkg-config/description
  27. pkg-config is a helper tool used when compiling applications and libraries.
  28. It helps you insert the correct compiler options on the command line so an
  29. application can use gcc -o test test.cpkg-config --libs --cflags glib-2.0
  30. for instance, rather than hard-coding values on where to find glib (or
  31. other libraries).
  32. endef
  33. define Package/pkg-config/install
  34. $(INSTALL_DIR) $(1)/usr/bin
  35. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pkg-config $(1)/usr/bin/
  36. $(INSTALL_DIR) $(1)/usr/share/aclocal/
  37. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/pkg.m4 \
  38. $(1)/usr/share/aclocal/
  39. endef
  40. $(eval $(call BuildPackage,pkg-config))