Blame sofort/pkgconf.mk

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