diff options
author | David Spencer <baildon.research@googlemail.com> | 2011-05-10 15:24:53 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-05-10 15:24:53 -0500 |
commit | fcdf4f7e16fee74cf777389258edd70b0c4a88bc (patch) | |
tree | f703248bc6605e129fb7c5e344c1f3531dd52eac /libraries | |
parent | 8f1d474a556f4a07f33e7284b22482e8e1df55d6 (diff) | |
download | slackbuilds-fcdf4f7e16fee74cf777389258edd70b0c4a88bc.tar.gz |
libraries/LibRaw: Added (library for decoding raw digital photos)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/LibRaw/LibRaw.SlackBuild | 119 | ||||
-rw-r--r-- | libraries/LibRaw/LibRaw.info | 14 | ||||
-rw-r--r-- | libraries/LibRaw/README | 5 | ||||
-rw-r--r-- | libraries/LibRaw/slack-desc | 19 |
4 files changed, 157 insertions, 0 deletions
diff --git a/libraries/LibRaw/LibRaw.SlackBuild b/libraries/LibRaw/LibRaw.SlackBuild new file mode 100644 index 0000000000..dc9e74069b --- /dev/null +++ b/libraries/LibRaw/LibRaw.SlackBuild @@ -0,0 +1,119 @@ +#!/bin/sh + +# Slackware build script for LibRaw +# Written by David Spencer <baildon.research@googlemail.com> +# This script is dedicated to the public domain + +PRGNAM=LibRaw +VERSION=${VERSION:-0.13.4} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + 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 \ + LibRaw-$VERSION \ + LibRaw-demosaic-pack-GPL2-$VERSION \ + LibRaw-demosaic-pack-GPL3-$VERSION + +tar xvf $CWD/LibRaw-$VERSION.tar.gz +tar xvf $CWD/LibRaw-demosaic-pack-GPL2-$VERSION.tar.gz +tar xvf $CWD/LibRaw-demosaic-pack-GPL3-$VERSION.tar.gz + +chown -R root:root \ + LibRaw-$VERSION \ + LibRaw-demosaic-pack-GPL2-$VERSION \ + LibRaw-demosaic-pack-GPL3-$VERSION + +find \ + LibRaw-$VERSION \ + LibRaw-demosaic-pack-GPL2-$VERSION \ + LibRaw-demosaic-pack-GPL3-$VERSION \ + \( -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 {} \; + +cd $PRGNAM-$VERSION + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --disable-static \ + --enable-demosaic-pack-gpl2=$TMP/LibRaw-demosaic-pack-GPL2-$VERSION \ + --enable-demosaic-pack-gpl3=$TMP/LibRaw-demosaic-pack-GPL3-$VERSION \ + --disable-examples \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +# Kill the static libs that we already said we didn't want +rm $PKG/usr/lib$LIBDIRSUFFIX/libraw.a \ + $PKG/usr/lib$LIBDIRSUFFIX/libraw_r.a + +find $PKG | xargs 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 \ + COPYRIGHT Changelog.txt INSTALL \ + LICENSE.CDDL LICENSE.LGPL LICENSE.LibRaw.pdf \ + README README.demosaic-packs doc/* \ + $PKG/usr/doc/$PRGNAM-$VERSION +for docfile in COPYRIGHT Changelog LICENSE.txt README; do + cp -a \ + $TMP/LibRaw-demosaic-pack-GPL2-$VERSION/$docfile \ + $PKG/usr/doc/$PRGNAM-$VERSION/demosaic-pack-GPL2-$docfile +done +for docfile in COPYRIGHT Changelog LICENSE.txt README; do + cp -a \ + $TMP/LibRaw-demosaic-pack-GPL3-$VERSION/$docfile \ + $PKG/usr/doc/$PRGNAM-$VERSION/demosaic-pack-GPL3-$docfile +done +find $PKG/usr/doc -type f -exec chmod 0644 {} \; + +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/libraries/LibRaw/LibRaw.info b/libraries/LibRaw/LibRaw.info new file mode 100644 index 0000000000..20c51e0d10 --- /dev/null +++ b/libraries/LibRaw/LibRaw.info @@ -0,0 +1,14 @@ +PRGNAM="LibRaw" +VERSION="0.13.4" +HOMEPAGE="http://www.libraw.org/" +DOWNLOAD="http://www.libraw.org/data/LibRaw-0.13.4.tar.gz \ + http://www.libraw.org/data/LibRaw-demosaic-pack-GPL2-0.13.4.tar.gz \ + http://www.libraw.org/data/LibRaw-demosaic-pack-GPL3-0.13.4.tar.gz" +MD5SUM="861baff69dc62fd8da91f550303ef920 \ + 5ccf72e95b69fdc0f944a83066b6fe19 \ + b7dc6aade5e3865d15e7f77256f4ff76" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="David Spencer" +EMAIL="baildon.research@googlemail.com" +APPROVED="rworkman" diff --git a/libraries/LibRaw/README b/libraries/LibRaw/README new file mode 100644 index 0000000000..f0080594a8 --- /dev/null +++ b/libraries/LibRaw/README @@ -0,0 +1,5 @@ +LibRaw is a library for reading RAW files obtained from digital cameras +(CRW/CR2, NEF, RAF, DNG, and others). It is based on the source code of +the dcraw utility. + +lcms2 is an optional dependency. diff --git a/libraries/LibRaw/slack-desc b/libraries/LibRaw/slack-desc new file mode 100644 index 0000000000..e42e6e3795 --- /dev/null +++ b/libraries/LibRaw/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------------------------------------------------------| +LibRaw: LibRaw (library for decoding raw digital photos) +LibRaw: +LibRaw: LibRaw is a library for reading RAW files obtained from digital +LibRaw: cameras (CRW/CR2, NEF, RAF, DNG, and others). It is based on the +LibRaw: source code of the dcraw utility. +LibRaw: +LibRaw: Homepage: http://www.libraw.org/ +LibRaw: +LibRaw: +LibRaw: +LibRaw: |