Blame sofort/core/pkgconf.mk

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