Blame sofort/core/pkgconf.mk

7a3ffb
# pkgconf.mk: rules for pkgconf manifest generation.
7a3ffb
# this file is covered by COPYING.SOFORT.
7a3ffb
f6265a
PKGCONF_VERSION = $(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
f6265a
257ae0
.pkgconf:
257ae0
1e3213
build/$(PACKAGE).pc: .pkgconf dirs.tag
f6265a
f6265a
build/$(PACKAGE).pc:
f6265a
	@touch $@
f6265a
	@chmod 0644 $@
f6265a
		PKGCONF_NAME='$(PKGNAME)' \
f6265a
		PKGCONF_DESC='$(PKGDESC)' \
f6265a
		PKGCONF_USRC='$(PKGUSRC)' \
f6265a
		PKGCONF_REPO='$(PKGREPO)' \
f6265a
		PKGCONF_PSRC='$(PKGPSRC)' \
f6265a
		PKGCONF_DURL='$(PKGDURL)' \
fd5ac4
		PKGCONF_BUGS='$(PKGBUGS)' \
fd5ac4
		PKGCONF_HOME='$(PKGHOME)' \
f6265a
		PKGCONF_DEFS='$(PKGDEFS)' \
f6265a
		PKGCONF_LIBS='$(PKGLIBS)' \
f6265a
					  \
f6265a
		PKGCONF_EXEC_PREFIX='$(EXEC_PREFIX)' \
f6265a
		PKGCONF_PREFIX='$(PREFIX)'           \
f6265a
		PKGCONF_LIBDIR='$(LIBDIR)'           \
f6265a
		PKGCONF_INCLUDEDIR='$(INCLUDEDIR)'   \
f6265a
		PKGCONF_VERSION='$(PKGCONF_VERSION)' \
4b0eaf
	$(PROJECT_DIR)/sofort/tools/pkgconf.sh > $@
f6265a
f6265a
install-pkgconf: build/$(PACKAGE).pc
f6265a
	mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig
f6265a
	cp -p build/$(PACKAGE).pc    $(DESTDIR)$(LIBDIR)/pkgconfig
f6265a
e9fc05
install-shared: install-pkgconf
f6265a
e9fc05
install-static: install-pkgconf
f6265a
f6265a
.PHONY: .pkgconf install-pkgconf