diff options
Diffstat (limited to 'libraries/squish')
-rw-r--r-- | libraries/squish/squish.SlackBuild | 12 | ||||
-rw-r--r-- | libraries/squish/squish.info | 6 | ||||
-rw-r--r-- | libraries/squish/squish.patch | 14 |
3 files changed, 24 insertions, 8 deletions
diff --git a/libraries/squish/squish.SlackBuild b/libraries/squish/squish.SlackBuild index b2bb675b13..9391ab56d0 100644 --- a/libraries/squish/squish.SlackBuild +++ b/libraries/squish/squish.SlackBuild @@ -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 .. diff --git a/libraries/squish/squish.info b/libraries/squish/squish.info index 4c78690b38..40da8c1259 100644 --- a/libraries/squish/squish.info +++ b/libraries/squish/squish.info @@ -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="" diff --git a/libraries/squish/squish.patch b/libraries/squish/squish.patch new file mode 100644 index 0000000000..fb487f70a8 --- /dev/null +++ b/libraries/squish/squish.patch @@ -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) |