Blame sofort/core/pkgconf.mk

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