mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
libraries/wvstreams: Updated for version 4.6
This commit is contained in:
parent
e1ee9cc8e5
commit
8f9b7aab60
3 changed files with 27 additions and 16 deletions
|
@ -7,13 +7,13 @@
|
||||||
|
|
||||||
|-----handy-ruler--------------------------------------------------|
|
|-----handy-ruler--------------------------------------------------|
|
||||||
wvstreams: WvStreams (networking library in C++)
|
wvstreams: WvStreams (networking library in C++)
|
||||||
wvstreams:
|
wvstreams:
|
||||||
wvstreams: It aims to be an efficient, secure, easy-to-use,
|
wvstreams: It aims to be an efficient, secure, easy-to-use,
|
||||||
wvstreams: and OS-independent library for doing network
|
wvstreams: and OS-independent library for doing network
|
||||||
wvstreams: applications development.
|
wvstreams: applications development.
|
||||||
wvstreams:
|
wvstreams:
|
||||||
wvstreams: http://alumnit.ca/wiki/index.php?page=WvStreams
|
wvstreams: http://alumnit.ca/wiki/index.php?page=WvStreams
|
||||||
wvstreams:
|
wvstreams:
|
||||||
wvstreams:
|
wvstreams:
|
||||||
wvstreams:
|
wvstreams:
|
||||||
wvstreams:
|
wvstreams:
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# Written by Vincent Batts, vbatts@batts.mine.nu
|
# Written by Vincent Batts, vbatts@batts.mine.nu
|
||||||
|
|
||||||
PRGNAM=wvstreams
|
PRGNAM=wvstreams
|
||||||
VERSION=4.4.1
|
VERSION=4.6
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
@ -17,10 +17,13 @@ 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
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
SLKCFLAGS="-O2 -fPIC"
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
@ -40,23 +43,27 @@ find . \
|
||||||
|
|
||||||
# configure doesn't support disabling static libraries
|
# configure doesn't support disabling static libraries
|
||||||
# Don't manually remove them either, as wvdial won't build then :)
|
# Don't manually remove them either, as wvdial won't build then :)
|
||||||
|
# * Build without dbus support, since it requires the static dbus lib
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--disable-testgui \
|
--disable-testgui \
|
||||||
--build=$ARCH-slackware-linux \
|
--without-dbus \
|
||||||
--host=$ARCH-slackware-linux
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
make
|
make
|
||||||
make install DESTDIR=$PKG
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
( cd $PKG
|
( cd $PKG
|
||||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || exit 1
|
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 || exit 1
|
||||||
|
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||||
|
xargs strip --strip-unneeded 2> /dev/null
|
||||||
)
|
)
|
||||||
|
|
||||||
# Let's not clobber the config file
|
# Let's not clobber the config file
|
||||||
|
@ -68,7 +75,9 @@ mv $PKG/etc/uniconf.conf $PKG/etc/uniconf.conf.new
|
||||||
)
|
)
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a COPYING.LIB ChangeLog README README.TESTS $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a \
|
||||||
|
ChangeLog LICENSE README* \
|
||||||
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
@ -76,4 +85,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
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}
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
PRGNAM="wvstreams"
|
PRGNAM="wvstreams"
|
||||||
VERSION="4.4.1"
|
VERSION="4.6"
|
||||||
HOMEPAGE="http://alumnit.ca/wiki/index.php?page=WvStreams"
|
HOMEPAGE="http://alumnit.ca/wiki/index.php?page=WvStreams"
|
||||||
DOWNLOAD="http://wvstreams.googlecode.com/files/wvstreams-4.4.1.tar.gz"
|
DOWNLOAD="http://wvstreams.googlecode.com/files/wvstreams-4.6.tar.gz"
|
||||||
MD5SUM="907b0cba8931553d848620ea16f006b9"
|
MD5SUM="4ee8ccfe6dfc29bf952d58fa23626c97"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Vincent Batts"
|
MAINTAINER="Vincent Batts"
|
||||||
EMAIL="vbatts@batts.mine.nu"
|
EMAIL="vbatts@batts.mine.nu"
|
||||||
APPROVED="rworkman"
|
APPROVED="rworkman"
|
||||||
|
|
Loading…
Reference in a new issue