Blame sofort/pkgconf.mk

f901ee
ifeq ($(PKGCONF),no)
f901ee
f901ee
install-pkgconf:
f901ee
f901ee
else
f901ee
f901ee
PKGCONF_VERSION = $(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
f901ee
f901ee
build/$(PACKAGE).pc: .pkgconf
f901ee
f901ee
build/$(PACKAGE).pc:
f901ee
	@touch $@
f901ee
	@chmod 0644 $@
f901ee
		PKGCONF_NAME='$(PKGNAME)' \
f901ee
		PKGCONF_DESC='$(PKGDESC)' \
f901ee
		PKGCONF_USRC='$(PKGUSRC)' \
f901ee
		PKGCONF_REPO='$(PKGREPO)' \
f901ee
		PKGCONF_PSRC='$(PKGPSRC)' \
f901ee
		PKGCONF_DURL='$(PKGDURL)' \
f901ee
		PKGCONF_DEFS='$(PKGDEFS)' \
f901ee
		PKGCONF_LIBS='$(PKGLIBS)' \
f901ee
					  \
f901ee
		PKGCONF_EXEC_PREFIX='$(EXEC_PREFIX)' \
f901ee
		PKGCONF_PREFIX='$(PREFIX)'           \
f901ee
		PKGCONF_LIBDIR='$(LIBDIR)'           \
f901ee
		PKGCONF_INCLUDEDIR='$(INCLUDEDIR)'   \
f901ee
		PKGCONF_VERSION='$(PKGCONF_VERSION)' \
f901ee
	$(PROJECT_DIR)/sofort/pkgconf.sh > $@
f901ee
f901ee
install-pkgconf: build/$(PACKAGE).pc
f901ee
	mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig
f901ee
	cp -p build/$(PACKAGE).pc    $(DESTDIR)$(LIBDIR)/pkgconfig
f901ee
f901ee
package-install-shared: install-pkgconf
f901ee
f901ee
package-install-static: install-pkgconf
f901ee
f901ee
.PHONY: .pkgconf install-pkgconf
f901ee
f901ee
endif