Blame sofort/core/pkgconf.mk

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