Blame sofort/core/pkgconf.mk

8077e8
# pkgconf.mk: rules for pkgconf manifest generation.
8077e8
# this file is covered by COPYING.SOFORT.
8077e8
64304d
PKGCONF_VERSION = $(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
64304d
526d52
.pkgconf:
526d52
de9e9d
build/$(PACKAGE).pc: .pkgconf dirs.tag
64304d
64304d
build/$(PACKAGE).pc:
64304d
	@touch $@
64304d
	@chmod 0644 $@
64304d
		PKGCONF_NAME='$(PKGNAME)' \
64304d
		PKGCONF_DESC='$(PKGDESC)' \
64304d
		PKGCONF_USRC='$(PKGUSRC)' \
64304d
		PKGCONF_REPO='$(PKGREPO)' \
64304d
		PKGCONF_PSRC='$(PKGPSRC)' \
64304d
		PKGCONF_DURL='$(PKGDURL)' \
116cbc
		PKGCONF_BUGS='$(PKGBUGS)' \
116cbc
		PKGCONF_HOME='$(PKGHOME)' \
64304d
		PKGCONF_DEFS='$(PKGDEFS)' \
64304d
		PKGCONF_LIBS='$(PKGLIBS)' \
64304d
					  \
64304d
		PKGCONF_EXEC_PREFIX='$(EXEC_PREFIX)' \
64304d
		PKGCONF_PREFIX='$(PREFIX)'           \
64304d
		PKGCONF_LIBDIR='$(LIBDIR)'           \
64304d
		PKGCONF_INCLUDEDIR='$(INCLUDEDIR)'   \
64304d
		PKGCONF_VERSION='$(PKGCONF_VERSION)' \
542ea4
	$(PROJECT_DIR)/sofort/tools/pkgconf.sh > $@
64304d
64304d
install-pkgconf: build/$(PACKAGE).pc
64304d
	mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig
64304d
	cp -p build/$(PACKAGE).pc    $(DESTDIR)$(LIBDIR)/pkgconfig
64304d
e46379
install-shared: install-pkgconf
64304d
e46379
install-static: install-pkgconf
64304d
64304d
.PHONY: .pkgconf install-pkgconf