summaryrefslogtreecommitdiff
path: root/sofort
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-01-10 15:59:38 +0000
committermidipix <writeonce@midipix.org>2020-01-24 21:14:10 +0000
commitbd379e2e26bfd5b58e7af704d89c8f4d9e9feb3c (patch)
tree616e5d59903a1366a4ffcd099b265d128e50502e /sofort
parent82a7dbb6b74c1d33fdbeb58f0128cd83b7ee6f72 (diff)
downloadbautomake-bd379e2e26bfd5b58e7af704d89c8f4d9e9feb3c.tar.bz2
bautomake-bd379e2e26bfd5b58e7af704d89c8f4d9e9feb3c.tar.xz
build system: add --pkgbugs (where to file) and --pkghome (project home page).
Diffstat (limited to 'sofort')
-rw-r--r--sofort/config/config.vars2
-rw-r--r--sofort/core/pkgconf.mk2
-rwxr-xr-xsofort/tools/pkgconf.sh16
3 files changed, 20 insertions, 0 deletions
diff --git a/sofort/config/config.vars b/sofort/config/config.vars
index 80d8535..229a598 100644
--- a/sofort/config/config.vars
+++ b/sofort/config/config.vars
@@ -16,6 +16,8 @@ pkgusrc
pkgrepo
pkgpsrc
pkgdurl
+pkgbugs
+pkghome
pkgdefs
pkglibs
diff --git a/sofort/core/pkgconf.mk b/sofort/core/pkgconf.mk
index 4f6c865..0edc395 100644
--- a/sofort/core/pkgconf.mk
+++ b/sofort/core/pkgconf.mk
@@ -20,6 +20,8 @@ build/$(PACKAGE).pc:
PKGCONF_REPO='$(PKGREPO)' \
PKGCONF_PSRC='$(PKGPSRC)' \
PKGCONF_DURL='$(PKGDURL)' \
+ PKGCONF_BUGS='$(PKGBUGS)' \
+ PKGCONF_HOME='$(PKGHOME)' \
PKGCONF_DEFS='$(PKGDEFS)' \
PKGCONF_LIBS='$(PKGLIBS)' \
\
diff --git a/sofort/tools/pkgconf.sh b/sofort/tools/pkgconf.sh
index bcde970..a69c25b 100755
--- a/sofort/tools/pkgconf.sh
+++ b/sofort/tools/pkgconf.sh
@@ -94,6 +94,20 @@ else
pkgconf_durl="Distro: ${PKGCONF_DURL}"
fi
+# bug reports (optional)
+if [ -z "${PKGCONF_BUGS}" ]; then
+ pkgconf_bugs='#'
+else
+ pkgconf_bugs="Bug reports: ${PKGCONF_BUGS}"
+fi
+
+# project home page (optional)
+if [ -z "${PKGCONF_HOME}" ]; then
+ pkgconf_home='#'
+else
+ pkgconf_home="Home page: ${PKGCONF_HOME}"
+fi
+
# output (without trailing spaces)
cat << _EOF | grep -v '^#' | sed 's/[ \t]*$//'
@@ -110,6 +124,8 @@ Version: ${PKGCONF_VERSION}
$pkgconf_repo
$pkgconf_psrc
$pkgconf_durl
+$pkgconf_bugs
+$pkgconf_home
Cflags: $pkgconf_cflags
Libs: $pkgconf_ldflags