|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/bash |
|
|
|
# Build script for Slackware |
|
|
|
# Copyright (C) 2008,2009,2010,2011,2013,2016 Damien Goutte-Gattat |
|
|
|
# Copyright (C) 2008-2011,2013,2016,2017 Damien Goutte-Gattat |
|
|
|
# |
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
# is permitted provided that the following conditions are met: |
|
|
@ -27,9 +27,9 @@ |
|
|
|
|
|
|
|
# Source package infos |
|
|
|
NAMESRC=${NAMESRC:-wxWidgets} |
|
|
|
VERSION=${VERSION:-3.0.2} |
|
|
|
VERSION=${VERSION:-3.1.3} |
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2} |
|
|
|
WGET=${WGET:-http://downloads.sourceforge.net/wxwindows/$ARCHIVE} |
|
|
|
WGET=${WGET:-https://github.com/wxWidgets/wxWidgets/releases/download/v$VERSION/$ARCHIVE} |
|
|
|
|
|
|
|
# Build infos |
|
|
|
NAMEPKG=${NAMEPKG:-wxwidgets-gtk} |
|
|
@ -76,7 +76,7 @@ if [ ! -r $ARCHIVE ]; then |
|
|
|
wget -c -O $ARCHIVE.part "$WGET" |
|
|
|
mv $ARCHIVE.part $ARCHIVE |
|
|
|
fi |
|
|
|
sha1sum -c $ARCHIVE.sha1 |
|
|
|
sha256sum -c $ARCHIVE.sha256 |
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) |
|
|
|
|
|
|
|
cd $TMP |
|
|
@ -92,6 +92,7 @@ CXXFLAGS=$CPUOPT \ |
|
|
|
--with-sdl \ |
|
|
|
--with-gtk=3 \ |
|
|
|
--with-opengl \ |
|
|
|
--enable-cxx11 \ |
|
|
|
--enable-stl \ |
|
|
|
--enable-ipv6 |
|
|
|
make -j $JOBS |
|
|
|