Merge pull request #2234 from luizluca/sane-fix_typos
[feed/packages.git] / devel / pkg-config / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=pkg-config
11 PKG_VERSION:=0.29
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:=77f27dce7ef88d0634d0d6f90e03a77f
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
24 define Package/pkg-config
25 SECTION:=devel
26 CATEGORY:=Development
27 TITLE:=pkg-config
28 URL:=http://www.freedesktop.org/wiki/Software/pkg-config/
29 DEPENDS:=+glib2
30 endef
31
32 define Package/pkg-config/description
33 pkg-config is a helper tool used when compiling applications and libraries.
34 It helps you insert the correct compiler options on the command line so an
35 application can use gcc -o test test.cpkg-config --libs --cflags glib-2.0
36 for instance, rather than hard-coding values on where to find glib (or
37 other libraries).
38 endef
39
40 define Package/pkg-config/install
41 $(INSTALL_DIR) $(1)/usr/bin
42 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pkg-config $(1)/usr/bin/
43 $(INSTALL_DIR) $(1)/usr/share/aclocal/
44 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/pkg.m4 \
45 $(1)/usr/share/aclocal/
46 endef
47
48 $(eval $(call BuildPackage,pkg-config))