summaryrefslogtreecommitdiff
path: root/network/nx/nx.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/nx/nx.SlackBuild')
-rw-r--r--network/nx/nx.SlackBuild31
1 files changed, 19 insertions, 12 deletions
diff --git a/network/nx/nx.SlackBuild b/network/nx/nx.SlackBuild
index 26aefa96b4..59c8d052ed 100644
--- a/network/nx/nx.SlackBuild
+++ b/network/nx/nx.SlackBuild
@@ -26,10 +26,12 @@
# * 3.4.0 updates and adaptations for slackbuilds.org
# 3.4.0-2: 21/feb/2011 by ponce <matteo.bernardini@gmail.com>
# * updates and silent default config
+# 3.5.0-1: 04/nov/2011 by ponce <matteo.bernardini@gmail.com>
+# * updates
PRGNAM=nx
-VERSION=${VERSION:-3.4.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-3.5.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -37,16 +39,16 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-SOURCE[0]="$CWD/nxproxy-${VERSION}-2.tar.gz"
-SOURCE[1]="$CWD/nxcomp-${VERSION}-7.tar.gz"
+SOURCE[0]="$CWD/nxproxy-${VERSION}-1.tar.gz"
+SOURCE[1]="$CWD/nxcomp-${VERSION}-2.tar.gz"
SOURCE[2]="$CWD/nxcompext-${VERSION}-1.tar.gz"
SOURCE[3]="$CWD/nxssh-${VERSION}-2.tar.gz"
-SOURCE[4]="$CWD/nx-X11-${VERSION}-4.tar.gz"
-SOURCE[5]="$CWD/nxwin-${VERSION}-7.tar.gz"
-SOURCE[6]="$CWD/nxauth-${VERSION}-3.tar.gz"
-SOURCE[7]="$CWD/nxagent-${VERSION}-16.tar.gz"
+SOURCE[4]="$CWD/nx-X11-${VERSION}-2.tar.gz"
+SOURCE[5]="$CWD/nxwin-${VERSION}-2.tar.gz"
+SOURCE[6]="$CWD/nxauth-${VERSION}-1.tar.gz"
+SOURCE[7]="$CWD/nxagent-${VERSION}-7.tar.gz"
SOURCE[8]="$CWD/nxesd-${VERSION}-2.tar.gz"
-SOURCE[9]="$CWD/nxcompshad-${VERSION}-3.tar.gz"
+SOURCE[9]="$CWD/nxcompshad-${VERSION}-2.tar.gz"
SOURCE[10]="$CWD/nxscripts-${VERSION}-1.tar.gz"
if [ -z "$ARCH" ]; then
@@ -73,10 +75,10 @@ fi
set -e
-rm -rf $TMP/tmp-$PRGNAM $PKG
-mkdir -p $TMP/tmp-$PRGNAM $PKG $OUTPUT
+rm -rf $TMP/$PRGNAM-$VERSION $PKG
+mkdir -p $TMP/$PRGNAM-$VERSION $PKG $OUTPUT
-cd $TMP/tmp-$PRGNAM
+cd $TMP/$PRGNAM-$VERSION
for (( i = 0; i < ${#SOURCE[*]}; i++ )) ; do tar xvf ${SOURCE[$i]} ; done
chown -R root:root .
@@ -105,6 +107,9 @@ cat >> nx-X11/config/cf/host.def << EOF
EOF
sed -i -e "s|CXXFLAGS=.-O.*|CXXFLAGS=\"$CXXFLAGS\"|" */configure
+sed -i -e "s|CPPFLAGS=.-O.*|CPPFLAGS=\"$CXXFLAGS\"|" */configure
+sed -i -e "s|\"-O3\"|\"$CXXFLAGS\"|" */configure
+sed -i -e "s|\"-g -O3\"|\"$CXXFLAGS\"|" */configure
# Build Compression Library and Proxy
for i in nxcomp nxproxy nxcompshad; do
@@ -153,6 +158,8 @@ cd nxesd
--localstatedir=/var \
--sysconfdir=/etc \
--build=$ARCH-slackware-linux
+ # link to system audiofile libs
+ sed -i "s/AUDIOFILE_LIBS\ =.*/AUDIOFILE_LIBS = -L\/usr\/lib${LIBDIRSUFFIX} -laudiofile -lm/" Makefile
make
cd ..