summaryrefslogtreecommitdiffhomepage
path: root/sofort/core/pkgconf.mk
blob: 5ada0699a37be4a971ca824f0a15291e96966c51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# pkgconf.mk: rules for pkgconf manifest generation.
# this file is covered by COPYING.SOFORT.

PKGCONF_VERSION = $(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)

.pkgconf:

build/$(PACKAGE).pc: .pkgconf dirs.tag

build/$(PACKAGE).pc:
	@touch $@
	@chmod 0644 $@
		PKGCONF_NAME='$(PKGNAME)' \
		PKGCONF_DESC='$(PKGDESC)' \
		PKGCONF_USRC='$(PKGUSRC)' \
		PKGCONF_REPO='$(PKGREPO)' \
		PKGCONF_PSRC='$(PKGPSRC)' \
		PKGCONF_DURL='$(PKGDURL)' \
		PKGCONF_BUGS='$(PKGBUGS)' \
		PKGCONF_HOME='$(PKGHOME)' \
		PKGCONF_DEFS='$(PKGDEFS)' \
		PKGCONF_LIBS='$(PKGLIBS)' \
					  \
		PKGCONF_EXEC_PREFIX='$(EXEC_PREFIX)' \
		PKGCONF_PREFIX='$(PREFIX)'           \
		PKGCONF_LIBDIR='$(LIBDIR)'           \
		PKGCONF_INCLUDEDIR='$(INCLUDEDIR)'   \
		PKGCONF_VERSION='$(PKGCONF_VERSION)' \
	$(PROJECT_DIR)/sofort/tools/pkgconf.sh > $@

install-pkgconf: build/$(PACKAGE).pc
	mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig
	cp -p build/$(PACKAGE).pc    $(DESTDIR)$(LIBDIR)/pkgconfig

install-shared: install-pkgconf

install-static: install-pkgconf

.PHONY: .pkgconf install-pkgconf