mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
libraries/liblqr: Added to 12.2 repository
This commit is contained in:
parent
2276e3b2d9
commit
fb111df4c8
4 changed files with 92 additions and 0 deletions
6
libraries/liblqr/README
Normal file
6
libraries/liblqr/README
Normal file
|
@ -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.
|
59
libraries/liblqr/liblqr.SlackBuild
Normal file
59
libraries/liblqr/liblqr.SlackBuild
Normal file
|
@ -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
|
8
libraries/liblqr/liblqr.info
Normal file
8
libraries/liblqr/liblqr.info
Normal file
|
@ -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"
|
19
libraries/liblqr/slack-desc
Normal file
19
libraries/liblqr/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue