summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorDugan Chen <thedoogster [at] gmail [dot] com>2017-09-23 09:31:24 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2017-09-23 09:31:24 +0100
commit2c5903cbe6b6fb970321c3654873feecef799e10 (patch)
treeb4a5419d314a42b6e8b63a59fe4c72f9ea40378c /libraries
parent061a1582169e52343db88a102fc5b62929b218db (diff)
downloadslackbuilds-2c5903cbe6b6fb970321c3654873feecef799e10.tar.gz
libraries/SDL2: Updated for version 2.0.6.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/SDL2/SDL2.SlackBuild28
-rw-r--r--libraries/SDL2/SDL2.info6
2 files changed, 15 insertions, 19 deletions
diff --git a/libraries/SDL2/SDL2.SlackBuild b/libraries/SDL2/SDL2.SlackBuild
index 8d823c8efb..704d5bb8bc 100644
--- a/libraries/SDL2/SDL2.SlackBuild
+++ b/libraries/SDL2/SDL2.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=SDL2
-VERSION=${VERSION:-2.0.5}
+VERSION=${VERSION:-2.0.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,25 +69,21 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
-
-make
-make install DESTDIR=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a *.txt docs/*.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/libraries/SDL2/SDL2.info b/libraries/SDL2/SDL2.info
index 252706f5df..8fafe23e25 100644
--- a/libraries/SDL2/SDL2.info
+++ b/libraries/SDL2/SDL2.info
@@ -1,8 +1,8 @@
PRGNAM="SDL2"
-VERSION="2.0.5"
+VERSION="2.0.6"
HOMEPAGE="https://libsdl.org"
-DOWNLOAD="https://www.libsdl.org/release/SDL2-2.0.5.tar.gz"
-MD5SUM="d4055424d556b4a908aa76fad63abd3c"
+DOWNLOAD="https://www.libsdl.org/release/SDL2-2.0.6.tar.gz"
+MD5SUM="4c2d602766b48b8f1b19a6f903ef5ecf"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""