summaryrefslogtreecommitdiff
path: root/package/pkgconf/Makefile
blob: 77dbba51702a756704b83537d01939118e3169e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		pkgconf
PKG_VERSION:=		1.1.0
PKG_RELEASE:=		2
PKG_HASH:=		5f1ef65d73a880fa5e7012102a17f7b32010e5e46139aed85851a541ba828a63
PKG_DESCR:=		smart pkg-config replacement
PKG_SECTION:=		dev/tools
HOST_BUILDDEP:=		sed-host
PKG_URL:=		http://pkgconf.org/
PKG_SITES:=		https://distfiles.dereferenced.org/pkgconf/

include $(ADK_TOPDIR)/mk/host.mk
include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call HOST_template,PKGCONF,pkgconf,$(PKG_VERSION)-${PKG_RELEASE}))
$(eval $(call PKG_template,PKGCONF,pkgconf,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

hostpost-install:
	$(CP) ./files/pkg-config $(STAGING_HOST_DIR)/usr/bin
ifeq ($(ADK_TARGET_USE_STATIC_LIBS_ONLY),y)
	PATH="$(HOST_PATH)" $(SED) "s#@@OPTS@@#--static#" $(STAGING_HOST_DIR)/usr/bin/pkg-config
else
	PATH="$(HOST_PATH)" $(SED) "s#@@OPTS@@##" $(STAGING_HOST_DIR)/usr/bin/pkg-config
endif
	(cd $(STAGING_HOST_DIR)/usr/bin && ln -sf pkg-config $(GNU_TARGET_NAME)-pkg-config)

pkgconf-install:
	$(INSTALL_DIR) $(IDIR_PKGCONF)/usr/lib
	$(CP) $(WRKINST)/usr/lib/libpkgconf*so* \
		$(IDIR_PKGCONF)/usr/lib
	$(INSTALL_DIR) $(IDIR_PKGCONF)/usr/bin
	$(INSTALL_BIN) $(WRKINST)/usr/bin/pkgconf \
		$(IDIR_PKGCONF)/usr/bin
	(cd $(IDIR_PKGCONF)/usr/bin && ln -sf pkgconf pkg-config)
	
include ${ADK_TOPDIR}/mk/host-bottom.mk
include ${ADK_TOPDIR}/mk/pkg-bottom.mk