mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
graphics/exact-image: Updated for version 1.0.1.
Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
This commit is contained in:
parent
60e052049b
commit
659ebafc01
3 changed files with 26 additions and 21 deletions
|
@ -1,10 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for exact-image
|
||||
# Written by Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
|
||||
|
||||
# Copyright 2010 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=exact-image
|
||||
VERSION=${VERSION:-0.9.2}
|
||||
BUILD=${BUILD:-3}
|
||||
VERSION=${VERSION:-1.0.1}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -53,11 +73,7 @@ find -L . \
|
|||
eval $(perl -V:vendorlib)
|
||||
sed "s,@vendorlib@,$vendorlib,g" $CWD/fixup-perl_paths.diff | patch -p1 --verbose
|
||||
|
||||
# Fix for swig-3.0.7
|
||||
sed -i -e '/^# manually/d' api/api-swig.hh
|
||||
|
||||
patch -p1 < $CWD/c98.patch
|
||||
patch -p1 < $CWD/raw.patch
|
||||
|
||||
./configure \
|
||||
--bindir=/usr/bin \
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="exact-image"
|
||||
VERSION="0.9.2"
|
||||
VERSION="1.0.1"
|
||||
HOMEPAGE="http://www.exactcode.de/site/open_source/exactimage/"
|
||||
DOWNLOAD="http://dl.exactcode.de/oss/exact-image/exact-image-0.9.2.tar.bz2"
|
||||
MD5SUM="bb9c8be82a4b5126be0224529ea7c4c7"
|
||||
DOWNLOAD="http://dl.exactcode.de/oss/exact-image/exact-image-1.0.1.tar.bz2"
|
||||
MD5SUM="1f03ef559ca81cf7a1651a72fd9fe98f"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="agg"
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
--- exact-image-0.9.2/codecs/raw.cc.orig 2017-07-05 09:07:52.988538841 +0700
|
||||
+++ exact-image-0.9.2/codecs/raw.cc 2017-07-05 09:08:21.813539168 +0700
|
||||
@@ -71,7 +71,7 @@
|
||||
if (!image.getRawData())
|
||||
return false;
|
||||
|
||||
- return stream->write ((char*)image.getRawData(), image.stride()*image.h)
|
||||
+ return (bool) stream->write ((char*)image.getRawData(), image.stride()*image.h)
|
||||
/* ==
|
||||
(size_t) image.stride()*image.h*/;
|
||||
}
|
Loading…
Reference in a new issue