Blame sofort/core/pkgconf.mk

51bc52
# pkgconf.mk: rules for pkgconf manifest generation.
51bc52
# this file is covered by COPYING.SOFORT.
51bc52
3ae283
ifeq ($(PKGCONF),no)
3ae283
3ae283
install-pkgconf:
3ae283
3ae283
else
3ae283
3ae283
PKGCONF_VERSION = $(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
3ae283
3ae283
build/$(PACKAGE).pc: .pkgconf dirs.tag
3ae283
3ae283
build/$(PACKAGE).pc:
3ae283
	@touch $@
3ae283
	@chmod 0644 $@
3ae283
		PKGCONF_NAME='$(PKGNAME)' \
3ae283
		PKGCONF_DESC='$(PKGDESC)' \
3ae283
		PKGCONF_USRC='$(PKGUSRC)' \
3ae283
		PKGCONF_REPO='$(PKGREPO)' \
3ae283
		PKGCONF_PSRC='$(PKGPSRC)' \
3ae283
		PKGCONF_DURL='$(PKGDURL)' \
c27990
		PKGCONF_BUGS='$(PKGBUGS)' \
c27990
		PKGCONF_HOME='$(PKGHOME)' \
3ae283
		PKGCONF_DEFS='$(PKGDEFS)' \
3ae283
		PKGCONF_LIBS='$(PKGLIBS)' \
3ae283
					  \
3ae283
		PKGCONF_EXEC_PREFIX='$(EXEC_PREFIX)' \
3ae283
		PKGCONF_PREFIX='$(PREFIX)'           \
3ae283
		PKGCONF_LIBDIR='$(LIBDIR)'           \
3ae283
		PKGCONF_INCLUDEDIR='$(INCLUDEDIR)'   \
3ae283
		PKGCONF_VERSION='$(PKGCONF_VERSION)' \
3ae283
	$(PROJECT_DIR)/sofort/tools/pkgconf.sh > $@
3ae283
3ae283
install-pkgconf: build/$(PACKAGE).pc
3ae283
	mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig
3ae283
	cp -p build/$(PACKAGE).pc    $(DESTDIR)$(LIBDIR)/pkgconfig
3ae283
3ae283
install-shared: install-pkgconf
3ae283
3ae283
install-static: install-pkgconf
3ae283
3ae283
.PHONY: .pkgconf install-pkgconf
3ae283
3ae283
endif