libraries/ffcall: Updated for version 1.10

This commit is contained in:
Martin Lefebvre 2010-05-13 00:29:23 +02:00 committed by Robby Workman
parent 791b9e13d4
commit 22392fd0f2
3 changed files with 28 additions and 18 deletions

View file

@ -22,16 +22,12 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Modified by the SlackBuilds.org project
# Bail out if we encounter an error
set -e
PRGNAM=ffcall PRGNAM=ffcall
VERSION=1.10 VERSION=1.10
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
@ -39,32 +35,44 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar -zxvf $CWD/$PRGNAM-$VERSION.tar.gz tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
chmod -R u+w,go+r-w,a-s . chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./configure --prefix=/usr \ ./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \ --sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
--mandir=/usr/man --mandir=/usr/man \
--build=$ARCH-slackware-linux
make make
make DESTDIR=$PKG install make DESTDIR=$PKG install
( cd $PKG ( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
) )
gzip -9 $PKG/usr/man/man?/* gzip -9 $PKG/usr/man/man?/*
@ -80,4 +88,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -3,6 +3,8 @@ VERSION="1.10"
HOMEPAGE="http://www.haible.de/bruno/packages-ffcall.html" HOMEPAGE="http://www.haible.de/bruno/packages-ffcall.html"
DOWNLOAD="http://www.haible.de/bruno/gnu/ffcall-1.10.tar.gz" DOWNLOAD="http://www.haible.de/bruno/gnu/ffcall-1.10.tar.gz"
MD5SUM="2db95007e901f3bc2ae7e5a9fe9ebea4" MD5SUM="2db95007e901f3bc2ae7e5a9fe9ebea4"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Martin Lefebvre" MAINTAINER="Martin Lefebvre"
EMAIL="dadexter@gmail.com" EMAIL="dadexter@gmail.com"
APPROVED="rworkman" APPROVED="rworkman"

View file

@ -10,10 +10,10 @@ ffcall: ffcall (Foreign Function Call library)
ffcall: ffcall:
ffcall: A collection of four libraries used to build foreign function call ffcall: A collection of four libraries used to build foreign function call
ffcall: interfaces in embedded interpreters. ffcall: interfaces in embedded interpreters.
ffcall: ffcall:
ffcall: ffcall:
ffcall: ffcall:
ffcall: ffcall:
ffcall: ffcall:
ffcall: ffcall:
ffcall: ffcall: