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.

48 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2015 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
  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:=77f27dce7ef88d0634d0d6f90e03a77f
  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. define Package/pkg-config
  19. SECTION:=devel
  20. CATEGORY:=Development
  21. TITLE:=pkg-config
  22. URL:=http://www.freedesktop.org/wiki/Software/pkg-config/
  23. DEPENDS:=+glib2
  24. endef
  25. define Package/pkg-config/description
  26. pkg-config is a helper tool used when compiling applications and libraries.
  27. It helps you insert the correct compiler options on the command line so an
  28. application can use gcc -o test test.cpkg-config --libs --cflags glib-2.0
  29. for instance, rather than hard-coding values on where to find glib (or
  30. other libraries).
  31. endef
  32. define Package/pkg-config/install
  33. $(INSTALL_DIR) $(1)/usr/bin
  34. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pkg-config $(1)/usr/bin/
  35. $(INSTALL_DIR) $(1)/usr/share/aclocal/
  36. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/pkg.m4 \
  37. $(1)/usr/share/aclocal/
  38. endef
  39. $(eval $(call BuildPackage,pkg-config))