Blame sofort/core/pkgconf.mk

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