Redfoxmoon / cross / slibtool

Forked from cross/slibtool 11 months ago
Clone

Blame sofort/pkgconf.mk

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