summaryrefslogtreecommitdiff
path: root/graphics/vips/vips.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-25 16:02:01 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-27 01:09:47 +0700
commit3519901ef6666a797fc1a35e18ffe73eb005de6d (patch)
tree681d3398de36aa964d4df0013c472f16bc6d2eb6 /graphics/vips/vips.SlackBuild
parentd9a4048ca6d03a45d0bca9b0356a80b385320cfa (diff)
downloadslackbuilds-3519901ef6666a797fc1a35e18ffe73eb005de6d.tar.gz
graphics/vips: Updated for version 8.12.2.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/vips/vips.SlackBuild')
-rw-r--r--graphics/vips/vips.SlackBuild50
1 files changed, 22 insertions, 28 deletions
diff --git a/graphics/vips/vips.SlackBuild b/graphics/vips/vips.SlackBuild
index 4c41517ba7..f12db0c048 100644
--- a/graphics/vips/vips.SlackBuild
+++ b/graphics/vips/vips.SlackBuild
@@ -22,27 +22,26 @@
# 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.
-#
+
+# 20220222 bkw: Modified by SlackBuilds.org: fix build on 15.0,
+# by upgrading to v8.12.2.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM="vips"
-VERSION=${VERSION:-8.1.1}
+VERSION=${VERSION:-8.12.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -52,8 +51,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -68,45 +67,40 @@ fi
set -e
-rm -rf $TMP/$PRGNAM-$VERSION $PKG
+# 20220225 bkw: upstream changed the project name from vips to libvips.
+SRCNAM=libvips
+
+rm -rf $TMP/$SRCNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $TMP/$PRGNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $TMP/$SRCNAM-$VERSION
chown -R root.root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
-sed -i \
- -e "s:PYTHON_EXEC_PREFIX/lib/:PYTHON_EXEC_PREFIX/lib${LIBDIRSUFFIX}/:" \
- configure
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-./configure \
+sh autogen.sh \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var \
--mandir=/usr/man \
--enable-static=no \
- --build=$ARCH-slackware-linux \
- $gtk_option
+ --build=$ARCH-slackware-linux
make V=1
-make install DESTDIR=$PKG
-
-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
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
+make install-strip DESTDIR=$PKG
+gzip -9 $PKG/usr/man/man*/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ChangeLog TODO $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING NEWS THANKS ChangeLog README* $PKG/usr/doc/$PRGNAM-$VERSION
+
+rm -f $PKG/usr/lib*/*.la
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc