diff options
author | B. Watson <yalhcru@gmail.com> | 2019-12-29 11:17:49 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-12-29 11:17:49 +0700 |
commit | bd1a7fd096cf42895510ebcd2b0c9411bd5e98cf (patch) | |
tree | bef915f309cf976513a8c4de6c31f68247617ba5 /graphics/gdk-pixbuf-psd | |
parent | bfcb447214296edd29bc4c148334fa87731bbce9 (diff) |
graphics/gdk-pixbuf-psd: Added (gdk-pixbuf2 loader for PSD files).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/gdk-pixbuf-psd')
-rw-r--r-- | graphics/gdk-pixbuf-psd/README | 20 | ||||
-rw-r--r-- | graphics/gdk-pixbuf-psd/doinst.sh | 3 | ||||
-rw-r--r-- | graphics/gdk-pixbuf-psd/gdk-pixbuf-psd.SlackBuild | 81 | ||||
-rw-r--r-- | graphics/gdk-pixbuf-psd/gdk-pixbuf-psd.info | 10 | ||||
-rw-r--r-- | graphics/gdk-pixbuf-psd/slack-desc | 19 |
5 files changed, 133 insertions, 0 deletions
diff --git a/graphics/gdk-pixbuf-psd/README b/graphics/gdk-pixbuf-psd/README new file mode 100644 index 000000000000..f518211a3115 --- /dev/null +++ b/graphics/gdk-pixbuf-psd/README @@ -0,0 +1,20 @@ +gdk-pixbuf-psd (gdk-pixbuf2 loader for Photoshop PSD files) + +This project aims to provide a GdkPixbuf loader for the PSD file format. + +GdkPixbuf is part of GTK and applications like Eye of GNOME and gThumb use +it to handle image loading. The loader provided by this project will let +those applications open PSD images and enable thumbnails in nautilus, too. + +The loader supports: +- RGB and CYMK images +- RLE compression +- 8 and 16 bit color depths + +This implementation is based on this specification [1] and PHP PSD Reader [2]. + +[1] http://www.fileformat.info/format/psd/egff.htm +[2] http://www.kingsquare.nl/phppsdreader + +Installing this allows qiv to display PSD images. It should work for geeqie +as well, but seems to have problems. diff --git a/graphics/gdk-pixbuf-psd/doinst.sh b/graphics/gdk-pixbuf-psd/doinst.sh new file mode 100644 index 000000000000..364414cfa1a6 --- /dev/null +++ b/graphics/gdk-pixbuf-psd/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-gdk-pixbuf-loaders ]; then + /usr/bin/update-gdk-pixbuf-loaders >/dev/null 2>&1 +fi diff --git a/graphics/gdk-pixbuf-psd/gdk-pixbuf-psd.SlackBuild b/graphics/gdk-pixbuf-psd/gdk-pixbuf-psd.SlackBuild new file mode 100644 index 000000000000..206c20e956d9 --- /dev/null +++ b/graphics/gdk-pixbuf-psd/gdk-pixbuf-psd.SlackBuild @@ -0,0 +1,81 @@ +#!/bin/sh + +# Slackware build script for gdk-pixbuf-psd + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +PRGNAM=gdk-pixbuf-psd +VERSION=${VERSION:-0.1.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ + +autoreconf -if + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --disable-static \ + --enable-shared \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +# NEWS is a 0-byte placeholder. +cp -a COPYING* README $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/graphics/gdk-pixbuf-psd/gdk-pixbuf-psd.info b/graphics/gdk-pixbuf-psd/gdk-pixbuf-psd.info new file mode 100644 index 000000000000..47664530bfa8 --- /dev/null +++ b/graphics/gdk-pixbuf-psd/gdk-pixbuf-psd.info @@ -0,0 +1,10 @@ +PRGNAM="gdk-pixbuf-psd" +VERSION="0.1.0" +HOMEPAGE="https://cgit.sukimashita.com/gdk-pixbuf-psd.git/" +DOWNLOAD="https://cgit.sukimashita.com/gdk-pixbuf-psd.git/snapshot/gdk-pixbuf-psd-0.1.0.tar.bz2" +MD5SUM="cdfc06fa261cac2025a7346fef9a2a22" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/graphics/gdk-pixbuf-psd/slack-desc b/graphics/gdk-pixbuf-psd/slack-desc new file mode 100644 index 000000000000..950814a60d8f --- /dev/null +++ b/graphics/gdk-pixbuf-psd/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +gdk-pixbuf-psd: gdk-pixbuf-psd (gdk-pixbuf2 loader for Photoshop PSD files) +gdk-pixbuf-psd: +gdk-pixbuf-psd: This project aims to provide a GdkPixbuf loader for the PSD file +gdk-pixbuf-psd: format. +gdk-pixbuf-psd: +gdk-pixbuf-psd: GdkPixbuf is part of GTK and applications like Eye of GNOME and gThumb +gdk-pixbuf-psd: use it to handle image loading. The loader provided by this project +gdk-pixbuf-psd: will let those applications open PSD images and enable thumbnails +gdk-pixbuf-psd: in nautilus, too. +gdk-pixbuf-psd: +gdk-pixbuf-psd: Installing this allows qiv to display PSD images. |