Blame sofort/core/pkgconf.mk

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