diff options
author | midipix <writeonce@midipix.org> | 2018-12-31 20:57:15 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-31 21:10:04 -0500 |
commit | 11d31dab269e9756a2e57614c5781906d4f551e3 (patch) | |
tree | 4f1217528f8985855ea8aef14b5466814eaee915 /sofort/core/pkgconf.mk | |
parent | 56b76d61a2b25da7c778b2e4c1841199bff182d3 (diff) | |
download | bfirm-11d31dab269e9756a2e57614c5781906d4f551e3.tar.bz2 bfirm-11d31dab269e9756a2e57614c5781906d4f551e3.tar.xz |
build system: sofort: refactored, rearranged using distinct sub-folders.
Diffstat (limited to 'sofort/core/pkgconf.mk')
-rw-r--r-- | sofort/core/pkgconf.mk | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/sofort/core/pkgconf.mk b/sofort/core/pkgconf.mk new file mode 100644 index 0000000..f266b9f --- /dev/null +++ b/sofort/core/pkgconf.mk @@ -0,0 +1,40 @@ +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_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 |