coolsnowwolf-packages/devel/pkg-config/Makefile

56 lines
1.5 KiB
Makefile
Raw Permalink Normal View History

2018-10-18 16:56:47 +08:00
#
# Copyright (C) 2015-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=pkg-config
2020-07-08 14:18:52 +08:00
PKG_VERSION:=0.29.2
PKG_RELEASE:=3
2018-10-18 16:56:47 +08:00
2020-07-08 14:18:52 +08:00
PKG_SOURCE_URL:=https://pkg-config.freedesktop.org/releases/
2018-10-18 16:56:47 +08:00
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
2020-07-08 14:18:52 +08:00
PKG_HASH:=6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591
2018-10-18 16:56:47 +08:00
PKG_MAINTAINER:=Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-07-08 14:18:52 +08:00
PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=COPYING
2018-10-18 16:56:47 +08:00
PKG_INSTALL:=1
2020-07-08 14:18:52 +08:00
PKG_BUILD_PARALLEL:=1
2018-10-18 16:56:47 +08:00
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
define Package/pkg-config
SECTION:=devel
CATEGORY:=Development
TITLE:=pkg-config
2020-07-08 14:18:52 +08:00
URL:=https://www.freedesktop.org/wiki/Software/pkg-config/
2018-10-18 16:56:47 +08:00
DEPENDS:=+glib2 $(INTL_DEPENDS)
2020-07-08 14:18:52 +08:00
CONFLICTS:=pkgconf
2018-10-18 16:56:47 +08:00
endef
define Package/pkg-config/description
pkg-config is a helper tool used when compiling applications and libraries.
It helps you insert the correct compiler options on the command line so an
application can use gcc -o test test.cpkg-config --libs --cflags glib-2.0
for instance, rather than hard-coding values on where to find glib (or
other libraries).
endef
2020-07-08 14:18:52 +08:00
TARGET_CFLAGS += $(FPIC)
2018-10-18 16:56:47 +08:00
define Package/pkg-config/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pkg-config $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/share/aclocal/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/pkg.m4 \
$(1)/usr/share/aclocal/
endef
$(eval $(call BuildPackage,pkg-config))