Blame sofort/core/pkgconf.mk

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