Blame sofort/core/pkgconf.mk

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