summaryrefslogtreecommitdiff
path: root/libraries/allegro
diff options
context:
space:
mode:
authorArn0 <yth@ythogtha.org>2021-03-16 23:24:18 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-03-20 10:05:12 +0700
commitb19bd3bcd50d77d0aa15fc156a78a3f696f742c9 (patch)
tree020e88fbf533e29cef21f7024eea14efc9c5c7bf /libraries/allegro
parent64e462f3c315c317ce87df7a85e7e2bb68a93e62 (diff)
downloadslackbuilds-b19bd3bcd50d77d0aa15fc156a78a3f696f742c9.tar.gz
libraries/allegro: Build option to allow disabling native_dialog (gtk3) addon
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/allegro')
-rw-r--r--libraries/allegro/README13
-rw-r--r--libraries/allegro/allegro.SlackBuild1
2 files changed, 14 insertions, 0 deletions
diff --git a/libraries/allegro/README b/libraries/allegro/README
index 920768e002..6abdda452c 100644
--- a/libraries/allegro/README
+++ b/libraries/allegro/README
@@ -12,3 +12,16 @@ contributions from all over the world! Some of its key features include:
* Open Source - anyone can contribute, including you!
* Free - it won't cost you a dime, and there are no restrictions on
its usage
+
+You can disable native_dialog addon by passing this option :
+ALLEGRO_NATIVE_DIALOG=off ./allegro.Slackbuild
+
+Since it depends on gtk3, and slackware-14.2's gtk3 is too old, this addon
+prevents allegro 5.2.7+ to build on slackware-14.2.
+So if you want, or need, to build allegro 5.2.7.0 on slackware-14.2 you have
+to disable this addon by running this command :
+VERSION=2.5.7.0 ALLEGRO_NATIVE_DIALOG=off ./allegro.Slackbuild
+
+On slackware-current, the simple version bump is enough, and the native_dialog
+addon works pretty fine :
+VERSION=2.5.7.0 ./allegro.Slackbuild
diff --git a/libraries/allegro/allegro.SlackBuild b/libraries/allegro/allegro.SlackBuild
index 7c4ca6c4df..1c6d8c9db4 100644
--- a/libraries/allegro/allegro.SlackBuild
+++ b/libraries/allegro/allegro.SlackBuild
@@ -80,6 +80,7 @@ cd build
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DWANT_NATIVE_DIALOG=${ALLEGRO_NATIVE_DIALOG:-on} \
-DCMAKE_BUILD_TYPE=Release ..
make VERBOSE=1
make install DESTDIR=$PKG