Blame sofort/core/pkgconf.mk

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