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 | |
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')
-rw-r--r-- | libraries/libchamplain/README | 8 | ||||
-rw-r--r-- | libraries/libchamplain/libchamplain.SlackBuild | 30 |
2 files changed, 29 insertions, 9 deletions
diff --git a/libraries/libchamplain/README b/libraries/libchamplain/README index c0f57a2c72e9..513e3d905173 100644 --- a/libraries/libchamplain/README +++ b/libraries/libchamplain/README @@ -10,6 +10,8 @@ and founder of Québec City, which was the 400th anniversary in 2008, the year this library was created. Below variables can be used to configure the build: - INTROSPECTION=true : Generate introspection data - VAPI=true : Generate vapi data - GTKDOC=true : Build reference manual + INTROSPECTION=yes : Generate introspection data + Needs building clutter and clutter-gtk built with + INTROSPECTION=yes + VAPI=yes : Generate vapi data + GTKDOC=yes : Build reference manual diff --git a/libraries/libchamplain/libchamplain.SlackBuild b/libraries/libchamplain/libchamplain.SlackBuild index 51d778cde3f2..773c9d9a0136 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 |