Blame sofort/pkgconf.mk

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