Blame sofort/core/pkgconf.mk

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