diff options
author | Ozan Türkyılmaz <ozan.turkyilmaz@gmail.com> | 2022-05-29 16:19:12 +0300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-06-04 10:37:03 +0700 |
commit | ecc3e7d829729bd18d96e8f92d8e201e5082a4c4 (patch) | |
tree | 38a1b65d7ee2390716c205847ed7ea1dcec7dabc /libraries/libchamplain/libchamplain.SlackBuild | |
parent | 48fd1a96c9caff3e6d2a419ba17ce3d61c0daa18 (diff) |
libraries/libchamplain: Use yes/no for build options.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libchamplain/libchamplain.SlackBuild')
-rw-r--r-- | libraries/libchamplain/libchamplain.SlackBuild | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/libraries/libchamplain/libchamplain.SlackBuild b/libraries/libchamplain/libchamplain.SlackBuild index 51d778cde3f29..773c9d9a0136d 100644 --- a/libraries/libchamplain/libchamplain.SlackBuild +++ b/libraries/libchamplain/libchamplain.SlackBuild @@ -30,9 +30,27 @@ BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -INTROSPECTION=${INTROSPECTION:-false} -VAPI=${VAPI:-false} -GTKDOC=${GTKDOC:-false} +INTROSPECTION=${INTROSPECTION:-no} +VAPI=${VAPI:-no} +GTKDOC=${GTKDOC:-no} + +if [ "$INTROSPECTION" = "yes" ]; then + INTROSPECTIONP="true" +else + INTROSPECTIONP="false" +fi + +if [ "$VAPI" = "yes" ]; then + VAPIP="true" +else + VAPIP="false" +fi + +if [ "$GTKDOC" = "yes" ]; then + GTKDOCP="true" +else + GTKDOCP="false" +fi if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -98,10 +116,10 @@ cd build --prefix=/usr \ --sysconfdir=/etc \ --wrap-mode=nodownload \ - -Dintrospection="$INTROSPECTION" \ - -Dvapi="$VAPI" \ + -Dintrospection="$INTROSPECTIONP" \ + -Dvapi="$VAPIP" \ -Dwidgetry=true \ - -Dgtk_doc="$GTKDOC" \ + -Dgtk_doc="$GTKDOCP" \ -Dstrip=true "${NINJA:=ninja}" DESTDIR=$PKG $NINJA install |