Blame sofort/core/pkgconf.mk

37dc93
# pkgconf.mk: rules for pkgconf manifest generation.
37dc93
# this file is covered by COPYING.SOFORT.
37dc93
66a30d
PKGCONF_VERSION = $(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
66a30d
84afa9
build/$(PACKAGE).pc: .pkgconf dirs.tag
66a30d
66a30d
build/$(PACKAGE).pc:
66a30d
	@touch $@
66a30d
	@chmod 0644 $@
66a30d
		PKGCONF_NAME='$(PKGNAME)' \
66a30d
		PKGCONF_DESC='$(PKGDESC)' \
66a30d
		PKGCONF_USRC='$(PKGUSRC)' \
66a30d
		PKGCONF_REPO='$(PKGREPO)' \
66a30d
		PKGCONF_PSRC='$(PKGPSRC)' \
66a30d
		PKGCONF_DURL='$(PKGDURL)' \
543c16
		PKGCONF_BUGS='$(PKGBUGS)' \
543c16
		PKGCONF_HOME='$(PKGHOME)' \
66a30d
		PKGCONF_DEFS='$(PKGDEFS)' \
66a30d
		PKGCONF_LIBS='$(PKGLIBS)' \
66a30d
					  \
66a30d
		PKGCONF_EXEC_PREFIX='$(EXEC_PREFIX)' \
66a30d
		PKGCONF_PREFIX='$(PREFIX)'           \
66a30d
		PKGCONF_LIBDIR='$(LIBDIR)'           \
66a30d
		PKGCONF_INCLUDEDIR='$(INCLUDEDIR)'   \
66a30d
		PKGCONF_VERSION='$(PKGCONF_VERSION)' \
cd2145
	$(PROJECT_DIR)/sofort/tools/pkgconf.sh > $@
66a30d
66a30d
install-pkgconf: build/$(PACKAGE).pc
66a30d
	mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig
66a30d
	cp -p build/$(PACKAGE).pc    $(DESTDIR)$(LIBDIR)/pkgconfig
66a30d
66a30d
install-shared: install-pkgconf
66a30d
66a30d
install-static: install-pkgconf
66a30d
66a30d
.PHONY: .pkgconf install-pkgconf