summaryrefslogtreecommitdiff
path: root/libraries/SDL2/SDL2.SlackBuild
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/SDL2/SDL2.SlackBuild
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/SDL2/SDL2.SlackBuild')
-rw-r--r--libraries/SDL2/SDL2.SlackBuild28
1 files changed, 12 insertions, 16 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