Reicher82 / python / sbpython3

Forked from python/sbpython3 3 years ago
Clone

Blame sofort/pkgconf.mk

5dc983
ifeq ($(PKGCONF),no)
5dc983
5dc983
install-pkgconf:
5dc983
5dc983
else
5dc983
5dc983
PKGCONF_VERSION = $(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
5dc983
5196e0
build/$(PACKAGE).pc: .pkgconf dirs.tag
5dc983
5dc983
build/$(PACKAGE).pc:
5dc983
	@touch $@
5dc983
	@chmod 0644 $@
5dc983
		PKGCONF_NAME='$(PKGNAME)' \
5dc983
		PKGCONF_DESC='$(PKGDESC)' \
5dc983
		PKGCONF_USRC='$(PKGUSRC)' \
5dc983
		PKGCONF_REPO='$(PKGREPO)' \
5dc983
		PKGCONF_PSRC='$(PKGPSRC)' \
5dc983
		PKGCONF_DURL='$(PKGDURL)' \
5dc983
		PKGCONF_DEFS='$(PKGDEFS)' \
5dc983
		PKGCONF_LIBS='$(PKGLIBS)' \
5dc983
					  \
5dc983
		PKGCONF_EXEC_PREFIX='$(EXEC_PREFIX)' \
5dc983
		PKGCONF_PREFIX='$(PREFIX)'           \
5dc983
		PKGCONF_LIBDIR='$(LIBDIR)'           \
5dc983
		PKGCONF_INCLUDEDIR='$(INCLUDEDIR)'   \
5dc983
		PKGCONF_VERSION='$(PKGCONF_VERSION)' \
5dc983
	$(PROJECT_DIR)/sofort/pkgconf.sh > $@
5dc983
5dc983
install-pkgconf: build/$(PACKAGE).pc
5dc983
	mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig
5dc983
	cp -p build/$(PACKAGE).pc    $(DESTDIR)$(LIBDIR)/pkgconfig
5dc983
5dc983
install-shared: install-pkgconf
5dc983
5dc983
install-static: install-pkgconf
5dc983
5dc983
.PHONY: .pkgconf install-pkgconf
5dc983
5dc983
endif