Blame sofort/core/pkgconf.mk

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