Blame sofort/core/pkgconf.mk

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