Blame sofort/core/pkgconf.mk

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