Blame sofort/core/pkgconf.mk

9c88f2
# pkgconf.mk: rules for pkgconf manifest generation.
9c88f2
# this file is covered by COPYING.SOFORT.
9c88f2
703eff
PKGCONF_VERSION = $(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
703eff
adaae5
.pkgconf:
adaae5
a70856
build/$(PACKAGE).pc: .pkgconf dirs.tag
703eff
703eff
build/$(PACKAGE).pc:
703eff
	@touch $@
703eff
	@chmod 0644 $@
703eff
		PKGCONF_NAME='$(PKGNAME)' \
703eff
		PKGCONF_DESC='$(PKGDESC)' \
703eff
		PKGCONF_USRC='$(PKGUSRC)' \
703eff
		PKGCONF_REPO='$(PKGREPO)' \
703eff
		PKGCONF_PSRC='$(PKGPSRC)' \
703eff
		PKGCONF_DURL='$(PKGDURL)' \
5b4717
		PKGCONF_BUGS='$(PKGBUGS)' \
5b4717
		PKGCONF_HOME='$(PKGHOME)' \
703eff
		PKGCONF_DEFS='$(PKGDEFS)' \
703eff
		PKGCONF_LIBS='$(PKGLIBS)' \
703eff
					  \
703eff
		PKGCONF_EXEC_PREFIX='$(EXEC_PREFIX)' \
703eff
		PKGCONF_PREFIX='$(PREFIX)'           \
703eff
		PKGCONF_LIBDIR='$(LIBDIR)'           \
703eff
		PKGCONF_INCLUDEDIR='$(INCLUDEDIR)'   \
703eff
		PKGCONF_VERSION='$(PKGCONF_VERSION)' \
6afb06
	$(PROJECT_DIR)/sofort/tools/pkgconf.sh > $@
703eff
703eff
install-pkgconf: build/$(PACKAGE).pc
703eff
	mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig
703eff
	cp -p build/$(PACKAGE).pc    $(DESTDIR)$(LIBDIR)/pkgconfig
703eff
7414cc
install-shared: install-pkgconf
703eff
7414cc
install-static: install-pkgconf
703eff
703eff
.PHONY: .pkgconf install-pkgconf