aboutsummaryrefslogtreecommitdiff
path: root/graphics/separate+
diff options
context:
space:
mode:
authorklaatu <klaatu@hackerpublicradio.org>2011-10-21 10:45:23 -0500
committerNiels Horn <niels.horn@slackbuilds.org>2011-10-22 10:17:10 -0200
commitae10052ebd5eee1f2dd95f7353d9327334eb5084 (patch)
tree82ca2943b8616ecb7ee35da24ca1e2c1bc548079 /graphics/separate+
parentf4b29a99531d7f4598f99a8affa83300c7d3a6be (diff)
graphics/separate+: Added (CMYK support for GIMP)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'graphics/separate+')
-rw-r--r--graphics/separate+/README5
-rw-r--r--graphics/separate+/separate+.SlackBuild80
-rw-r--r--graphics/separate+/separate+.info10
-rw-r--r--graphics/separate+/slack-desc19
4 files changed, 114 insertions, 0 deletions
diff --git a/graphics/separate+/README b/graphics/separate+/README
new file mode 100644
index 000000000000..f1ddb1376f04
--- /dev/null
+++ b/graphics/separate+/README
@@ -0,0 +1,5 @@
+separate+ brings improved CMYK and ICC profile support and flexibility
+to GIMP.
+
+While it's not absolutely necessary, it would make sense to install
+ICC profiles, available from SlackBuilds.org, before installing separate+
diff --git a/graphics/separate+/separate+.SlackBuild b/graphics/separate+/separate+.SlackBuild
new file mode 100644
index 000000000000..247820a56b9b
--- /dev/null
+++ b/graphics/separate+/separate+.SlackBuild
@@ -0,0 +1,80 @@
+#!/bin/sh
+
+# Slackware build script for separate+
+# Written by klaatu at klaatu at hackerpublicradio.org
+
+PRGNAM=separate+
+VERSION=${VERSION:-0.5.8}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ x86_64) ARCH=x86_64 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -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
+unzip $CWD/$PRGNAM-$VERSION.zip
+cd $PRGNAM-$VERSION
+
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+if [ "X$LIBDIRSUFFIX" == "X64" ]
+ then sed -i 's_/lib/gimp/_/lib64/gimp/_' Makefile
+fi
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+make
+make install DESTDIR=$PKG
+
+mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/gimp/2.0/plug-ins
+cp -a separate_import icc_colorspace $PKG/usr/lib$LIBDIRSUFFIX/gimp/2.0/plug-ins
+
+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
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ README README_ICC_COLORSPACE readme.jp.txt readme_icc_colorspace.jp.txt COPYING sample-scripts \
+ $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
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/graphics/separate+/separate+.info b/graphics/separate+/separate+.info
new file mode 100644
index 000000000000..d3451b6cf43c
--- /dev/null
+++ b/graphics/separate+/separate+.info
@@ -0,0 +1,10 @@
+PRGNAM="separate+"
+VERSION="0.5.8"
+HOMEPAGE="http://sourceforge.jp/projects/separate-plus/"
+DOWNLOAD="http://iij.dl.sourceforge.jp/separate-plus/47873/separate+-0.5.8.zip"
+MD5SUM="442e546bb451ab7450ddca79e36e21e8"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="klaatu"
+EMAIL="klaatu@hackerpublicradio.org"
+APPROVED="Erik Hanson"
diff --git a/graphics/separate+/slack-desc b/graphics/separate+/slack-desc
new file mode 100644
index 000000000000..0af38dfeb900
--- /dev/null
+++ b/graphics/separate+/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------------------------------------------------------|
+separate+: separate+ (CMYK support for GIMP)
+separate+:
+separate+: separate+ is a CMYK plugin for the GNU Image Manipulation Program
+separate+: which brings improved ICC color management, soft-proof color, color
+separate+: profile switching, and duotone support to your workflow...plus,
+separate+: obviously, the ability to separate colors from RGB images.
+separate+:
+separate+: After installed, your new color separation options will be located
+separate+: in the Image menu of GIMP, in a Separate submenu.
+separate+:
+separate+: http://sourceforge.jp/projects/separate-plus/