#Maintainer: Thorsten Muehlfelder # Mandatory pkgname=nxlibs pkgver=3.2.0 pkgrel=2 zenver=54 arch=i486 source=("http://64.34.161.181/download/$pkgver/sources/nxproxy-$pkgver-1.tar.gz" "http://64.34.161.181/download/$pkgver/sources/nxcomp-$pkgver-7.tar.gz" "http://64.34.161.181/download/$pkgver/sources/nxagent-$pkgver-10.tar.gz" "http://64.34.161.181/download/$pkgver/sources/nxauth-$pkgver-1.tar.gz" "http://64.34.161.181/download/$pkgver/sources/nxcompshad-$pkgver-3.tar.gz" "http://64.34.161.181/download/$pkgver/sources/nx-X11-$pkgver-2.tar.gz" "http://64.34.161.181/download/$pkgver/sources/nxcompext-$pkgver-1.tar.gz") sourcetemplate=http://thenktor.dyndns.org/packages/$pkgname/ # Optional url="http://www.nomachine.com/sources.php" extradepends=('openssh') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname - A remote display technology" "NX is an exciting new technology for remote display. It provides near" "local speed application responsiveness over high latency, low" "bandwidth links. The core libraries for NX are provided by NoMachine" "under the GPL. FreeNX is a GPL implementation of the NX Server." "" "This package contains core libraries." ) build() { cd $startdir/src/nxcomp sed -i -e 's°CXXFLAGS="-O3°CXXFLAGS="-march=i486 -mtune=i686 -O2°' -e 's°CFLAGS="-O3°CFLAGS="-march=i486 -mtune=i686 -O2°' configure || return 1 ./configure || return 1 make -j3 || return 1 cd $startdir/src/nxproxy sed -i -e 's°CXXFLAGS="-O3°CXXFLAGS="-march=i486 -mtune=i686 -O2°' -e 's°CFLAGS="-O3°CFLAGS="-march=i486 -mtune=i686 -O2°' configure || return 1 ./configure || return 1 make -j3 || return 1 cd $startdir/src/nxcompext sed -i -e 's°CXXFLAGS="-O3°CXXFLAGS="-march=i486 -mtune=i686 -O2°' -e 's°CFLAGS="-O3°CFLAGS="-march=i486 -mtune=i686 -O2°' configure || return 1 ./configure || return 1 make -j3 || return 1 cd $startdir/src/nx-X11 sed -i -e 's°#define\ DefaultGcc2i386Opt\ *-g\ -O3°#define\ DefaultGcc2i386Opt\ -g\ -march=i486\ -mtune=i686\ -O2°' config/cf/host.def || return 1 make -j3 World || return 1 cd lib/Xrender ln -s libXrender.so.1.2.2 libXrender.so.1.2 # INSTALL # install prefix NXPREFIX=$startdir/pkg/usr/NX # create install dirs mkdir -p ${NXPREFIX}/lib ${NXPREFIX}/bin $startdir/pkg/usr/bin $startdir/pkg/usr/lib # create doc dirs mkdir -p $startdir/pkg/usr/doc/${pkgname}-${pkgver} cd $startdir/src # libraries cp -a nx-X11/lib/X11/libX11.so* ${NXPREFIX}/lib cp -a nx-X11/lib/Xext/libXext.so* ${NXPREFIX}/lib cp -a nx-X11/lib/Xrender/libXrender.so* ${NXPREFIX}/lib cp -a nxcomp/libXcomp.so* ${NXPREFIX}/lib cp -a nxcompext/libXcompext.so* ${NXPREFIX}/lib cp -a nxcompshad/libXcompshad.so* ${NXPREFIX}/lib ### esd? #cp -a nxesd/libs/libesd.so* ${NXPREFIX}/lib #cp -a nxesd/libs/libesddsp.so* ${NXPREFIX}/lib # binaries cp -a nx-X11/programs/Xserver/nxagent ${NXPREFIX}/bin cp -a nx-X11/programs/nxauth/nxauth ${NXPREFIX}/bin cp -a nxproxy/nxproxy ${NXPREFIX}/bin #cp -a nxdesktop/nxdesktop ${NXPREFIX}/bin #cp -a nxviewer/nxviewer/nxviewer ${NXPREFIX}/bin #cp -a nxviewer/nxpasswd/nxpasswd ${NXPREFIX}/bin ### esd? #cp -a nxesd/nxesd ${NXPREFIX}/bin # some links to binaries/libraries for /usr ln -s /usr/NX/bin/nxagent $startdir/pkg/usr/bin/nxagent || return 1 ln -s /usr/NX/lib/libXcomp.so.3 $startdir/pkg/usr/lib/libXcomp.so.3 || return 1 ln -s /usr/NX/lib/libXcompext.so.3 $startdir/pkg/usr/lib/libXcompext.so.3 || return 1 ln -s /usr/NX/lib/libXcompshad.so.3 $startdir/pkg/usr/lib/libXcompshad.so.3 || return 1 # nx-libs docs cp -a nx-X11/COPYING $startdir/pkg/usr/doc/${pkgname}-${pkgver} cp -a nx-X11/LICENSE $startdir/pkg/usr/doc/${pkgname}-${pkgver} cp -a nxproxy/VERSION $startdir/pkg/usr/doc/${pkgname}-${pkgver} }