diff options
Diffstat (limited to 'graphics/libfpx')
-rw-r--r-- | graphics/libfpx/README | 13 | ||||
-rw-r--r-- | graphics/libfpx/export-symbols.patch | 14 | ||||
-rw-r--r-- | graphics/libfpx/libfpx.SlackBuild | 45 | ||||
-rw-r--r-- | graphics/libfpx/libfpx.info | 4 |
4 files changed, 54 insertions, 22 deletions
diff --git a/graphics/libfpx/README b/graphics/libfpx/README index 457fbd1640..4021162491 100644 --- a/graphics/libfpx/README +++ b/graphics/libfpx/README @@ -1,11 +1,12 @@ libfpx (A library for manipulating FlashPIX images) -FlashPix is a bitmapped computer graphics file format where the image is -saved in more than one resolution. Although this makes it larger even than -a TIFF file of the same resolution, its design anticipated that when an -HTTP request is sent for the file by a browser plugin implementing the -format, only the image compatible with the current screen resolution is -returned to the browser, saving on bandwidth and download time. +FlashPix is a bitmapped computer graphics file format where the image +is saved in more than one resolution. Although this makes it larger +even than a TIFF file of the same resolution, its design anticipated +that when an HTTP request is sent for the file by a browser plugin +implementing the format, only the image compatible with the current +screen resolution is returned to the browser, saving on bandwidth and +download time. It can be used as an ImageMagick or GraphicsMagick delegate to convert from FlashPIX format. diff --git a/graphics/libfpx/export-symbols.patch b/graphics/libfpx/export-symbols.patch new file mode 100644 index 0000000000..dfb974bc71 --- /dev/null +++ b/graphics/libfpx/export-symbols.patch @@ -0,0 +1,14 @@ +* At least the Darwin linker doesn't like double symbols during the + final linking stage... + +--- a/jpeg/jpegconf.h ++++ b/jpeg/jpegconf.h +@@ -27,6 +27,6 @@ + # pragma warning(disable : 4244) + # pragma warning(disable : 4142) + #else +-# define JPEGEXPORT +-# define FPXEXPORT ++# define JPEGEXPORT extern ++# define FPXEXPORT extern + #endif diff --git a/graphics/libfpx/libfpx.SlackBuild b/graphics/libfpx/libfpx.SlackBuild index 4a211382b8..05bf8faee5 100644 --- a/graphics/libfpx/libfpx.SlackBuild +++ b/graphics/libfpx/libfpx.SlackBuild @@ -1,15 +1,26 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for libfpx -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230919 bkw: update download link (thanks to Alexander Verbovetsky for +# finding the new URL). + +# 20230203 bkw: BUILD=2: the PDF docs are unreadable, remove from package. + +# Note to self: keep an eye on https://github.com/ImageMagick/libfpx +# So far nothing new there but minor build fixes. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=libfpx VERSION=${VERSION:-1.3.1_10} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -19,7 +30,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -48,11 +63,10 @@ rm -rf $PRGNAM-$SRCVER tar xvf $CWD/$PRGNAM-$SRCVER.tar.bz2 cd $PRGNAM-$SRCVER 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 \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + + +patch -p1 < $CWD/export-symbols.patch CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -70,13 +84,16 @@ make make install-strip DESTDIR=$PKG rm -f $PKG/usr/lib$LIBDIRSUFFIX/*.la -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS ChangeLog NEWS README doc/* \ - $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +# 20230203 bkw: Do not include doc/* here. The PDF files are +# gibberish, can't seem to recover them with either ghostscript or +# mutool. The readme.txt doesn't look useful at all. +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a AUTHORS ChangeLog NEWS README $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/graphics/libfpx/libfpx.info b/graphics/libfpx/libfpx.info index 145f4ce268..c301723e7e 100644 --- a/graphics/libfpx/libfpx.info +++ b/graphics/libfpx/libfpx.info @@ -1,10 +1,10 @@ PRGNAM="libfpx" VERSION="1.3.1_10" HOMEPAGE="http://fileformats.archiveteam.org/wiki/FlashPix" -DOWNLOAD="http://ftp.osuosl.org/pub/gentoo/distfiles/libfpx-1.3.1-10.tar.bz2" +DOWNLOAD="https://imagemagick.org/archive/delegates/libfpx-1.3.1-10.tar.bz2" MD5SUM="2841629bac1e3ae2b00c40d1ab2b721a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" MAINTAINER="B. Watson" -EMAIL="yalhcru@gmail.com" +EMAIL="urchlay@slackware.uk" |