diff options
author | midipix <writeonce@midipix.org> | 2018-06-30 20:12:07 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-08-05 05:58:38 -0400 |
commit | 703eff7c58271f24005422b3f0f0ded1e1cf3739 (patch) | |
tree | 31c2cdb1df1604941e503f3055fce83069cd80c3 /sofort/pkgconf.mk | |
parent | b9138e1bf51bc275f2bc36eb540900b471ba1608 (diff) | |
download | mdso-703eff7c58271f24005422b3f0f0ded1e1cf3739.tar.bz2 mdso-703eff7c58271f24005422b3f0f0ded1e1cf3739.tar.xz |
build system: install-shared, install-static: added initial pkgconfig support.
Diffstat (limited to 'sofort/pkgconf.mk')
-rw-r--r-- | sofort/pkgconf.mk | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/sofort/pkgconf.mk b/sofort/pkgconf.mk new file mode 100644 index 0000000..c28eae6 --- /dev/null +++ b/sofort/pkgconf.mk @@ -0,0 +1,40 @@ +ifeq ($(PKGCONF),no) + +install-pkgconf: + +else + +PKGCONF_VERSION = $(VER_MAJOR).$(VER_MINOR).$(VER_PATCH) + +build/$(PACKAGE).pc: .pkgconf + +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/pkgconf.sh > $@ + +install-pkgconf: build/$(PACKAGE).pc + mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig + cp -p build/$(PACKAGE).pc $(DESTDIR)$(LIBDIR)/pkgconfig + +package-install-shared: install-pkgconf + +package-install-static: install-pkgconf + +.PHONY: .pkgconf install-pkgconf + +endif |