Blame sofort/core/pkgconf.mk

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