libraries/squish: Updated for version r60.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-03-04 07:35:25 +07:00
parent 8c0b424b24
commit 947d0ee1d9
3 changed files with 24 additions and 8 deletions

View file

@ -23,7 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=squish
VERSION=${VERSION:-r52}
VERSION=${VERSION:-r60}
SRCNAM=source-archive
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -56,11 +57,11 @@ fi
set -e
rm -rf $PKG $TMP/$PRGNAM-$VERSION
rm -rf $PKG $TMP/libsquish
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
unzip $CWD/$SRCNAM.zip
cd libsquish/trunk
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -74,6 +75,7 @@ find -L . \
# respect $LIBDIRSUFFIX
sed -i "s|\ lib$| lib$LIBDIRSUFFIX|" CMakeLists.txt
patch < $CWD/squish.patch
# we build squish statically, as it's the most common use
mkdir -p build
cd build
@ -84,7 +86,7 @@ cd build
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_SQUISH_EXTRA=ON \
-DCMAKE_BUILD_TYPE=Release ..
make
make
make install DESTDIR=$PKG
cd ..

View file

@ -1,8 +1,8 @@
PRGNAM="squish"
VERSION="r52"
VERSION="r60"
HOMEPAGE="https://code.google.com/p/libsquish/"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/squish-r52.tar.xz"
MD5SUM="393dcd6a2c7268ff0f860f8054d03b96"
DOWNLOAD="https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/libsquish/source-archive.zip"
MD5SUM="f0260552af33da8b1709bebc4a5eb0a3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

View file

@ -0,0 +1,14 @@
--- libsquish/trunk/CMakeLists.txt.orig 2016-03-04 07:30:58.222987880 +0700
+++ libsquish/trunk/CMakeLists.txt 2016-03-04 07:31:11.671259957 +0700
@@ -21,9 +21,9 @@
IF (CMAKE_GENERATOR STREQUAL "Xcode")
SET(CMAKE_OSX_ARCHITECTURES "i386;ppc")
ELSE (CMAKE_GENERATOR STREQUAL "Xcode")
- IF ( AND NOT WIN32)
+ IF ( NOT WIN32)
ADD_DEFINITIONS(-DSQUISH_USE_SSE=2 -msse2)
- ENDIF ( AND NOT WIN32)
+ ENDIF ( NOT WIN32)
IF (BUILD_SQUISH_WITH_ALTIVEC AND NOT WIN32)
ADD_DEFINITIONS(-DSQUISH_USE_ALTIVEC=1 -maltivec)
ENDIF (BUILD_SQUISH_WITH_ALTIVEC AND NOT WIN32)