Blame sofort/core/pkgconf.mk

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