libraries/geocode-glib: Use yes/no for build options

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Ozan Türkyılmaz 2022-05-12 18:06:20 +03:00 committed by Willy Sudiarto Raharjo
parent 7a0d559efe
commit 9cdc521ff7
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 28 additions and 9 deletions

View file

@ -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

View file

@ -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 ..