Blame sofort/core/pkgconf.mk

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