summaryrefslogtreecommitdiff
path: root/sofort/core/pkgconf.mk
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-01-26 16:40:49 -0500
committermidipix <writeonce@midipix.org>2020-05-23 05:59:01 +0000
commit944e2bdb67e96024a149fbdc07e5ec83bae0abe3 (patch)
tree856807fb699fe2b3570e8109233dff61d6d5e883 /sofort/core/pkgconf.mk
parentc755a5575fd437e95ea96cd10b45968562793656 (diff)
downloadtpax-944e2bdb67e96024a149fbdc07e5ec83bae0abe3.tar.bz2
tpax-944e2bdb67e96024a149fbdc07e5ec83bae0abe3.tar.xz
build system: created skeleton.
Diffstat (limited to 'sofort/core/pkgconf.mk')
-rw-r--r--sofort/core/pkgconf.mk45
1 files changed, 45 insertions, 0 deletions
diff --git a/sofort/core/pkgconf.mk b/sofort/core/pkgconf.mk
new file mode 100644
index 0000000..0edc395
--- /dev/null
+++ b/sofort/core/pkgconf.mk
@@ -0,0 +1,45 @@
+# pkgconf.mk: rules for pkgconf manifest generation.
+# this file is covered by COPYING.SOFORT.
+
+ifeq ($(PKGCONF),no)
+
+install-pkgconf:
+
+else
+
+PKGCONF_VERSION = $(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
+
+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
+
+endif