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