Blame sofort/core/pkgconf.mk

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