2 # Copyright (C) 2015-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE_URL
:=http
://pkgconfig.freedesktop.org
/releases
/
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_MD5SUM
:=77f27dce7ef88d0634d0d6f90e03a77f
17 PKG_MAINTAINER
:=Heinrich Schuchardt
<xypron.glpk@gmx.de
>
22 include $(INCLUDE_DIR
)/package.mk
23 include $(INCLUDE_DIR
)/nls.mk
25 define Package
/pkg-config
29 URL
:=http
://www.freedesktop.org
/wiki
/Software
/pkg-config
/
30 DEPENDS
:=+glib2
$(INTL_DEPENDS
)
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
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
/
49 $(eval
$(call BuildPackage
,pkg-config
))