summaryrefslogtreecommitdiff
path: root/libraries/SFGUI/SFGUI.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-01-20 00:35:07 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-20 23:59:30 +0700
commitb987dc90f388cf8742a658a912d2d3b783be066c (patch)
tree4cd4748526396162cff174e342fd694aca75ba22 /libraries/SFGUI/SFGUI.SlackBuild
parentd328c13a7f3b9365029dc7e2cfee118299d1556a (diff)
downloadslackbuilds-b987dc90f388cf8742a658a912d2d3b783be066c.tar.gz
libraries/SFGUI: Updated for version 0.3.0.
Fixes build failure with SFML-2.3. Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/SFGUI/SFGUI.SlackBuild')
-rw-r--r--libraries/SFGUI/SFGUI.SlackBuild10
1 files changed, 6 insertions, 4 deletions
diff --git a/libraries/SFGUI/SFGUI.SlackBuild b/libraries/SFGUI/SFGUI.SlackBuild
index 2f13a2953c..4d1707634a 100644
--- a/libraries/SFGUI/SFGUI.SlackBuild
+++ b/libraries/SFGUI/SFGUI.SlackBuild
@@ -10,7 +10,7 @@
# without any warranty.
PRGNAM=SFGUI
-VERSION=${VERSION:-0.2.3}
+VERSION=${VERSION:-0.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -47,7 +47,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-unzip $CWD/$PRGNAM-$VERSION-source.zip
+unzip $CWD/$PRGNAM-$VERSION.zip || unzip $CWD/$VERSION.zip
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -65,8 +65,10 @@ cd build
-DCMAKE_BUILD_TYPE=Release ..
# -DLIB_SUFFIX is ignored. Patch CMakeLists as needed.
- sed -i 's%/lib/%/lib64/%g' cmake_install.cmake || exit
- sed -i 's%/lib"%/lib64/"%g' cmake_install.cmake || exit
+ sed -i \
+ -e "s:\\\${CMAKE_INSTALL_PREFIX}/lib:&${LIBDIRSUFFIX}:" \
+ cmake_install.cmake
+
make
make install DESTDIR=$PKG
cd ..