Blame sofort/core/pkgconf.mk

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