summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-06-30 09:02:10 +0000
committermidipix <writeonce@midipix.org>2018-08-05 05:58:40 -0400
commita4c3b991cde9e7ef09f96c1a906fa4f24adfc0fc (patch)
tree77512d05240e27edcd1f75afb376214600992199 /configure
parent09b3f43c68963c9e03f1dd6eed1107bb3729c548 (diff)
downloadntcon-a4c3b991cde9e7ef09f96c1a906fa4f24adfc0fc.tar.bz2
ntcon-a4c3b991cde9e7ef09f96c1a906fa4f24adfc0fc.tar.xz
build system: configure, Makefile.in: added initial pkgconfig support.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure52
1 files changed, 52 insertions, 0 deletions
diff --git a/configure b/configure
index 472bf07..62955c4 100755
--- a/configure
+++ b/configure
@@ -165,6 +165,16 @@ common_defaults()
[ -z "$mb_source_dir" ] && mb_source_dir=$mb_project_dir
[ -z "$mb_avoid_version" ] && mb_avoid_version='no'
+ # pkgconfig
+ [ -z "$mb_pkgname" ] && mb_pkgname="$mb_default_pkgname"
+ [ -z "$mb_pkgdesc" ] && mb_pkgdesc="$mb_default_pkgdesc"
+ [ -z "$mb_pkgusrc" ] && mb_pkgusrc="$mb_default_pkgusrc"
+ [ -z "$mb_pkgrepo" ] && mb_pkgrepo="$mb_default_pkgrepo"
+ [ -z "$mb_pkgpsrc" ] && mb_pkgpsrc="$mb_default_pkgpsrc"
+ [ -z "$mb_pkgdurl" ] && mb_pkgdurl="$mb_default_pkgdurl"
+ [ -z "$mb_pkgdefs" ] && mb_pkgdefs="$mb_default_pkgdefs"
+ [ -z "$mb_pkglibs" ] && mb_pkglibs="$mb_default_pkglibs"
+
# dirs
[ -z "$mb_prefix" ] && [ -z "$mb_prefix_set" ] \
&& mb_prefix='/usr/local'
@@ -440,6 +450,15 @@ config_copy()
-e 's^@custom_install_headers@^'"$mb_custom_install_headers"'^g' \
-e 's^@avoid_version@^'"$mb_avoid_version"'^g' \
\
+ -e 's^@pkgname@^'"$mb_pkgname"'^g' \
+ -e 's^@pkgdesc@^'"$mb_pkgdesc"'^g' \
+ -e 's^@pkgusrc@^'"$mb_pkgusrc"'^g' \
+ -e 's^@pkgrepo@^'"$mb_pkgrepo"'^g' \
+ -e 's^@pkgpsrc@^'"$mb_pkgpsrc"'^g' \
+ -e 's^@pkgdurl@^'"$mb_pkgdurl"'^g' \
+ -e 's^@pkgdefs@^'"$mb_pkgdefs"'^g' \
+ -e 's^@pkglibs@^'"$mb_pkglibs"'^g' \
+ \
-e 's^@build@^'"$mb_build"'^g' \
-e 's^@host@^'"$mb_host"'^g' \
-e 's^@target@^'"$mb_target"'^g' \
@@ -754,6 +773,39 @@ for arg ; do
mb_source_dir=${arg#*=}
;;
+ # pkgconfig
+ --pkgname=*)
+ mb_pkgname=${arg#*=}
+ ;;
+
+ --pkgdesc=*)
+ mb_pkgdesc=${arg#*=}
+ ;;
+
+ --pkgusrc=*)
+ mb_pkgusrc=${arg#*=}
+ ;;
+
+ --pkgrepo=*)
+ mb_pkgrepo=${arg#*=}
+ ;;
+
+ --pkgpsrc=*)
+ mb_pkgpsrc=${arg#*=}
+ ;;
+
+ --pkgdurl=*)
+ mb_pkgdurl=${arg#*=}
+ ;;
+
+ --pkgdefs=*)
+ mb_pkgdefs=${arg#*=}
+ ;;
+
+ --pkglibs=*)
+ mb_pkglibs=${arg#*=}
+ ;;
+
# compatibility
--enable-dependency-tracking)
;;