Blame sofort/pkgconf.mk

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