Browse Source

ap/libdmtx: Upgraded to libdmtx-0.7.2.

slackware-14.2
Damien Goutte-Gattat 13 years ago
parent
commit
2160286138
  1. 1
      ap/libdmtx/libdmtx-0.7.0.tar.gz.sha1
  2. 1
      ap/libdmtx/libdmtx-0.7.2.tar.gz.sha1
  3. 39
      ap/libdmtx/libdmtx.SlackBuild

1
ap/libdmtx/libdmtx-0.7.0.tar.gz.sha1

@ -1 +0,0 @@
5aa5c512830ff2f72e94b1b1e6a1088059c3051c libdmtx-0.7.0.tar.gz

1
ap/libdmtx/libdmtx-0.7.2.tar.gz.sha1

@ -0,0 +1 @@
6eb8d61682d4ec4d04ad16f164136e2ebd477e30 libdmtx-0.7.2.tar.gz

39
ap/libdmtx/libdmtx.SlackBuild

@ -26,20 +26,22 @@
# Source package infos
NAMESRC=${NAMESRC:-libdmtx}
VERSION=${VERSION:-0.7.0}
VERSION=${VERSION:-0.7.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://ovh.dl.sourceforge.net/sourceforge/libdmtx/$ARCHIVE}
# Built package infos
NAMETGZ=${NAMETGZ:-libdmtx}
# Build infos
NAMEPKG=${NAMEPKG:-libdmtx}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-i486}
TARGET=${TARGET:-i486}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
@ -55,10 +57,15 @@ if [ ! -d $TMP ]; then
fi
# Compilation flags
LIBDIRSUFFIX=""
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
LIBDIRSUFFIX="64"
;;
*)
CPUOPT="-O2"
;;
@ -66,7 +73,8 @@ esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget "$WGET"
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -80,17 +88,28 @@ CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--mandir=/usr/man
make -j 3
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
--disable-dependency-tracking \
--disable-static
make -j $JOBS
make install DESTDIR=$PKG
# --enable-python and --enable-ruby are broken,
# build wrappers manually
(
cd wrapper/python
CPPFLAGS=-I$PKG/usr/include LDFLAGS=-L$PKG/usr/lib \
CPPFLAGS=-I$PKG/usr/include LDFLAGS=-L$PKG/usr/lib$LIBDIRSUFFIX \
python setup.py install --root=$PKG
)
(
cd wrapper/ruby
make CPPFLAGS=-I$PKG/usr/include LDFLAGS=-L$PKG/usr/lib$LIBDIRSUFFIX
make install DESTDIR=$PKG
)
# Strip binaries
find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Compress man and info pages
@ -110,7 +129,7 @@ cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"

Loading…
Cancel
Save