mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
libraries/geocode-glib: Use yes/no for build options
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
7a0d559efe
commit
9cdc521ff7
2 changed files with 28 additions and 9 deletions
|
@ -5,6 +5,6 @@ achieve that. It also caches (reverse-)geocoding requests for faster
|
|||
results and to avoid unnecessary server load.
|
||||
|
||||
Below variables can be used to configure the build:
|
||||
GTKDOC=true : Builds gtkdocs
|
||||
INSTROSPECTION=true : Enables the introspection generation
|
||||
TESTS=true : Build & install test programs
|
||||
GTKDOC=yes : Builds gtkdocs
|
||||
INSTROSPECTION=yes : Enables the introspection generation
|
||||
TESTS=yes : Build & install test programs
|
||||
|
|
|
@ -30,9 +30,28 @@ BUILD=${BUILD:-1}
|
|||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
GTKDOC=${GTKDOC:-false}
|
||||
INSTROSPECTION=${INSTROSPECTION:-false}
|
||||
TESTS=${TESTS:-false}
|
||||
GTKDOC=${GTKDOC:-no}
|
||||
INSTROSPECTION=${INSTROSPECTION:-no}
|
||||
TESTS=${TESTS:-no}
|
||||
|
||||
if [ "$GTKDOC" = "yes" ]; then
|
||||
GTKDOCP="true"
|
||||
else
|
||||
GTKDOCP="false"
|
||||
fi
|
||||
|
||||
if [ "$INSTROSPECTION" = "yes" ]; then
|
||||
INSTROSPECTIONP="true"
|
||||
else
|
||||
INSTROSPECTIONP="false"
|
||||
fi
|
||||
|
||||
if [ "$TESTS" = "yes" ]; then
|
||||
TESTSP="true"
|
||||
else
|
||||
TESTSP="false"
|
||||
fi
|
||||
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
|
@ -96,9 +115,9 @@ cd build
|
|||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
-Dstrip=true \
|
||||
-Denable-introspection="$INSTROSPECTION" \
|
||||
-Denable-gtk-doc="$GTKDOC" \
|
||||
-Denable-installed-tests="$TESTS"
|
||||
-Denable-introspection="$INSTROSPECTIONP" \
|
||||
-Denable-gtk-doc="$GTKDOCP" \
|
||||
-Denable-installed-tests="$TESTSP"
|
||||
"${NINJA:=ninja}"
|
||||
DESTDIR=$PKG $NINJA install
|
||||
cd ..
|
||||
|
|
Loading…
Reference in a new issue