summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-rw-r--r--libraries/lensfun/lensfun.SlackBuild8
-rw-r--r--libraries/lensfun/lensfun.info2
2 files changed, 7 insertions, 3 deletions
diff --git a/libraries/lensfun/lensfun.SlackBuild b/libraries/lensfun/lensfun.SlackBuild
index 1b37fbdcf6..7b45165f2f 100644
--- a/libraries/lensfun/lensfun.SlackBuild
+++ b/libraries/lensfun/lensfun.SlackBuild
@@ -35,10 +35,13 @@ 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"
fi
rm -rf $PKG
@@ -54,6 +57,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--docdir=/usr/doc/$PRGNAM-$VERSION \
|| exit 1
@@ -62,15 +66,13 @@ make install DESTDIR=$PKG || exit 1
find $PKG | xargs file | grep -e "executable" -e "shared object" \
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-if [ -d $PKG/usr/man ]; then
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
-fi
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -c n -l y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -c n -l y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/libraries/lensfun/lensfun.info b/libraries/lensfun/lensfun.info
index 90cb05fa57..0b2efb0efc 100644
--- a/libraries/lensfun/lensfun.info
+++ b/libraries/lensfun/lensfun.info
@@ -2,7 +2,9 @@ PRGNAM="lensfun"
VERSION="0.2.3"
HOMEPAGE="http://lensfun.berlios.de/"
DOWNLOAD="http://download.berlios.de/lensfun/lensfun-0.2.3.tar.bz2"
+DOWNLOAD_x86_64=""
MD5SUM="c5c04be4f53e3eef450ff4948d8f65b3"
+MD5SUM_x86_64=""
MAINTAINER="Ricardson Williams"
EMAIL="ricardsonwilliams@yahoo.com.br"
APPROVED="rworkman"