diff options
-rw-r--r-- | libraries/liblqr/README | 6 | ||||
-rw-r--r-- | libraries/liblqr/liblqr.SlackBuild | 59 | ||||
-rw-r--r-- | libraries/liblqr/liblqr.info | 8 | ||||
-rw-r--r-- | libraries/liblqr/slack-desc | 19 |
4 files changed, 92 insertions, 0 deletions
diff --git a/libraries/liblqr/README b/libraries/liblqr/README new file mode 100644 index 0000000000000..5a42272c21d09 --- /dev/null +++ b/libraries/liblqr/README @@ -0,0 +1,6 @@ +Liquid Rescale is a seam-carving C/C++ library based on the algorithm +described in this paper (http://www.faculty.idc.ac.il/arik/imret.pdf) +by Shai Avidan and Ariel Shamir. + +It aims at resizing pictures non uniformly while preserving their +features, i.e. avoiding distortion of the important parts. diff --git a/libraries/liblqr/liblqr.SlackBuild b/libraries/liblqr/liblqr.SlackBuild new file mode 100644 index 0000000000000..33900cccf876e --- /dev/null +++ b/libraries/liblqr/liblqr.SlackBuild @@ -0,0 +1,59 @@ +#!/bin/sh + +# Slackware build script for liblqr +# Written by Erik Hanson erik@slackbuilds.org + +PRGNAM=liblqr +SRCNAM=liblqr-1 +VERSION=0.3.1 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +set -eu + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2 +cd $SRCNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --mandir=/usr/man/ \ + --enable-install-man \ + --disable-static \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS BUGS COPYING COPYING.LESSER ChangeLog INSTALL NEWS README TODO \ + $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.tgz diff --git a/libraries/liblqr/liblqr.info b/libraries/liblqr/liblqr.info new file mode 100644 index 0000000000000..a1fb5aebbe3ee --- /dev/null +++ b/libraries/liblqr/liblqr.info @@ -0,0 +1,8 @@ +PRGNAM="liblqr" +VERSION="0.3.1" +HOMEPAGE="http://liblqr.wikidot.com/" +DOWNLOAD="http://liblqr.wikidot.com/local--files/en:download-page/liblqr-1-0.3.1.tar.bz2" +MD5SUM="0f2f0fbe5bf6000f8151002d2a51c834" +MAINTAINER="Erik Hanson" +EMAIL="erik@slackbuilds.org" +APPROVED="dsomero" diff --git a/libraries/liblqr/slack-desc b/libraries/liblqr/slack-desc new file mode 100644 index 0000000000000..cc0e0789b1d53 --- /dev/null +++ b/libraries/liblqr/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 ':'. + + |-----handy-ruler------------------------------------------------------| +liblqr: liblqr (Liquid Rescale Library) +liblqr: +liblqr: Liquid Rescale is a seam-carving C/C++ library based on the algorithm +liblqr: described in this paper (http://www.faculty.idc.ac.il/arik/imret.pdf) +liblqr: by Shai Avidan and Ariel Shamir. +liblqr: +liblqr: It aims at resizing pictures non uniformly while preserving their +liblqr: features, i.e. avoiding distortion of the important parts. +liblqr: +liblqr: +liblqr: |