Blame sofort/core/pkgconf.mk

64304d
ifeq ($(PKGCONF),no)
64304d
64304d
install-pkgconf:
64304d
64304d
else
64304d
64304d
PKGCONF_VERSION = $(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
64304d
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)' \
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
64304d
64304d
endif