mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
libraries/libgdata: Use yes/no for build options
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
a69f948e66
commit
7a0d559efe
2 changed files with 55 additions and 19 deletions
|
@ -4,9 +4,9 @@ APIs to access the common Google services, and has full asynchronous
|
|||
support.
|
||||
|
||||
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
|
||||
VAPI=true : Enable creation of vapi files
|
||||
OAUTH=enabled : Enable OAuth 1.0 support (deprecated)
|
||||
MAN=true : Generate man pages
|
||||
GTKDOC=yes : Builds gtkdocs
|
||||
INSTROSPECTION=yes : Enables the introspection generation
|
||||
TESTS=yes : Build & install test programs
|
||||
VAPI=yes : Enable creation of vapi files
|
||||
OAUTH=yes : Enable OAuth 1.0 support (deprecated)
|
||||
MAN=yes : Generate man pages
|
||||
|
|
|
@ -26,16 +26,52 @@ cd $(dirname $0) ; CWD=$(pwd)
|
|||
|
||||
PRGNAM=libgdata
|
||||
VERSION=${VERSION:-0.18.1}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
TESTS=${TESTS:-false}
|
||||
GTKDOC=${GTKDOC:-false}
|
||||
INTROSPECTION=${INTROSPECTION:-false}
|
||||
VAPI=${VAPI:-false}
|
||||
OAUTH1=${OAUTH1=disabled}
|
||||
MAN=${MAN:-false}
|
||||
TESTS=${TESTS:-no}
|
||||
GTKDOC=${GTKDOC:-no}
|
||||
INTROSPECTION=${INTROSPECTION:-no}
|
||||
VAPI=${VAPI:-no}
|
||||
OAUTH1=${OAUTH1=no}
|
||||
MAN=${MAN:-no}
|
||||
|
||||
if [ "$TESTS" = "yes" ]; then
|
||||
TESTSP="true"
|
||||
else
|
||||
TESTSP="false"
|
||||
fi
|
||||
|
||||
if [ "$GTKDOC" = "yes" ]; then
|
||||
GTKDOCP="true"
|
||||
else
|
||||
GTKDOCP="false"
|
||||
fi
|
||||
|
||||
if [ "$INTROSPECTION" = "yes" ]; then
|
||||
INTROSPECTIONP="true"
|
||||
else
|
||||
INTROSPECTIONP="false"
|
||||
fi
|
||||
|
||||
if [ "$VAPI" = "yes" ]; then
|
||||
VAPIP="true"
|
||||
else
|
||||
VAPIP="false"
|
||||
fi
|
||||
|
||||
if [ "$OAUTH1" = "yes" ]; then
|
||||
OAUTH1P="enabled"
|
||||
else
|
||||
OAUTH1P="disabled"
|
||||
fi
|
||||
|
||||
if [ "$MAN" = "yes" ]; then
|
||||
MANP="true"
|
||||
else
|
||||
MANP="false"
|
||||
fi
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
|
@ -104,12 +140,12 @@ cd build
|
|||
-Dgtk=enabled \
|
||||
-Dgnome=disabled \
|
||||
-Dgoa=enabled \
|
||||
-Dalways_build_tests="$TESTS" \
|
||||
-Dgtk_doc="$GTKDOC" \
|
||||
-Dintrospection="$INTROSPECTION" \
|
||||
-Dvapi="$VAPI" \
|
||||
-Doauth1="$OAUTH1" \
|
||||
-Dman="$MAN"
|
||||
-Dalways_build_tests="$TESTSP" \
|
||||
-Dgtk_doc="$GTKDOCP" \
|
||||
-Dintrospection="$INTROSPECTIONP" \
|
||||
-Dvapi="$VAPIP" \
|
||||
-Doauth1="$OAUTH1P" \
|
||||
-Dman="$MANP"
|
||||
"${NINJA:=ninja}"
|
||||
DESTDIR=$PKG $NINJA install
|
||||
cd ..
|
||||
|
|
Loading…
Reference in a new issue