summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2009-09-30 23:17:27 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2009-09-30 23:17:27 +0000
commit7a89d0e3a264bd92091c27bb7226beecb5ac38f0 (patch)
treef4f397f8c545f672925b3002fe850a23205a46a4 /net-misc/nx
parent3.4.0 version bump. This version brings new capabilities such as: support for... (diff)
downloadgentoo-2-7a89d0e3a264bd92091c27bb7226beecb5ac38f0.tar.gz
gentoo-2-7a89d0e3a264bd92091c27bb7226beecb5ac38f0.tar.bz2
gentoo-2-7a89d0e3a264bd92091c27bb7226beecb5ac38f0.zip
Version bump to 3.4.0 versions, move econfs to src_configure
(Portage version: 2.2_rc42/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/nx')
-rw-r--r--net-misc/nx/ChangeLog7
-rw-r--r--net-misc/nx/nx-3.4.0.ebuild130
2 files changed, 136 insertions, 1 deletions
diff --git a/net-misc/nx/ChangeLog b/net-misc/nx/ChangeLog
index 43998bd0f6fc..82c318c6cd44 100644
--- a/net-misc/nx/ChangeLog
+++ b/net-misc/nx/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-misc/nx
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/nx/ChangeLog,v 1.45 2009/09/01 21:36:33 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nx/ChangeLog,v 1.46 2009/09/30 23:17:27 voyageur Exp $
+
+*nx-3.4.0 (30 Sep 2009)
+
+ 30 Sep 2009; Bernard Cafarelli <voyageur@gentoo.org> +nx-3.4.0.ebuild:
+ Version bump to 3.4.0 versions, move econfs to src_configure
*nx-3.3.0-r5 (01 Sep 2009)
diff --git a/net-misc/nx/nx-3.4.0.ebuild b/net-misc/nx/nx-3.4.0.ebuild
new file mode 100644
index 000000000000..d29b6e017f7a
--- /dev/null
+++ b/net-misc/nx/nx-3.4.0.ebuild
@@ -0,0 +1,130 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nx/nx-3.4.0.ebuild,v 1.1 2009/09/30 23:17:27 voyageur Exp $
+
+EAPI=2
+inherit autotools eutils multilib
+
+DESCRIPTION="NX compression technology core libraries"
+HOMEPAGE="http://www.nomachine.com/developers.php"
+
+URI_BASE="http://web04.nomachine.com/download/${PV}/sources"
+SRC_NX_X11="nx-X11-$PV-1.tar.gz"
+SRC_NXAGENT="nxagent-$PV-3.tar.gz"
+SRC_NXAUTH="nxauth-$PV-1.tar.gz"
+SRC_NXCOMP="nxcomp-$PV-1.tar.gz"
+SRC_NXCOMPEXT="nxcompext-$PV-1.tar.gz"
+SRC_NXCOMPSHAD="nxcompshad-$PV-1.tar.gz"
+SRC_NXPROXY="nxproxy-$PV-2.tar.gz"
+
+SRC_URI="$URI_BASE/$SRC_NX_X11 $URI_BASE/$SRC_NXAGENT $URI_BASE/$SRC_NXPROXY $URI_BASE/$SRC_NXAUTH $URI_BASE/$SRC_NXCOMPEXT $URI_BASE/$SRC_NXCOMPSHAD $URI_BASE/$SRC_NXCOMP"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/libXau
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXdmcp
+ x11-libs/libXpm
+ x11-libs/libXrandr
+ x11-libs/libXtst
+ >=media-libs/jpeg-6b-r4
+ >=media-libs/libpng-1.2.8
+ >=sys-libs/zlib-1.2.3"
+
+DEPEND="${RDEPEND}
+ x11-misc/gccmakedep
+ x11-misc/imake
+ x11-proto/inputproto"
+
+S=${WORKDIR}/${PN}-X11
+
+src_prepare() {
+ # For nxcl/qtnx
+ cd "${WORKDIR}"/nxproxy
+ epatch "${FILESDIR}"/${PN}-3.2.0-nxproxy_read_from_stdin.patch
+
+ # Quiet some warnings
+ cd "${WORKDIR}"/nxcomp
+ epatch "${FILESDIR}"/${PN}-2.1.0-invalid-options.patch
+ # GCC 4.4 + glibc 2.10
+ epatch "${FILESDIR}"/${PN}-3.3.0-nxcomp-glibc2.10.patch
+
+ cd "${WORKDIR}"
+ # Fix sandbox violation
+ epatch "${FILESDIR}"/1.5.0/nx-x11-1.5.0-tmp-exec.patch
+ # -fPIC
+ epatch "${FILESDIR}"/1.5.0/nxcomp-1.5.0-pic.patch
+ # Respect CFLAGS/CXXFLAGS
+ epatch "${FILESDIR}"/${PN}-3.3.0-cflags.patch
+ # Run autoreconf in all neeed folders
+ for i in nxcomp nxcompext nxcompshad nxproxy; do
+ cd "${WORKDIR}"/${i}
+ eautoreconf ${i}
+ cd "${WORKDIR}"
+ done
+
+ # From xorg-x11-6.9.0-r3.ebuild
+ cd "${S}"
+ HOSTCONF="config/cf/host.def"
+ echo "#define CcCmd $(tc-getCC)" >> ${HOSTCONF}
+ echo "#define OptimizedCDebugFlags ${CFLAGS} GccAliasingArgs" >> ${HOSTCONF}
+ echo "#define OptimizedCplusplusDebugFlags ${CXXFLAGS} GccAliasingArgs" >> ${HOSTCONF}
+}
+
+src_configure() {
+ cd "${WORKDIR}"/nxcomp || die "No nxcomp directory found"
+ econf || die "nxcomp econf failed"
+
+ cd "${WORKDIR}"/nxcompshad || die "No nxcompshad directory found"
+ econf || die "nxcompshad econf failed"
+
+ cd "${WORKDIR}"/nxproxy || die "No nxproxy directory found"
+ econf || die "nxproxy econf failed"
+
+ cd "${WORKDIR}"/nxcompext || die "No nxcompext directory found"
+ econf || die "nxcompext econf failed"
+}
+
+src_compile() {
+ cd "${WORKDIR}"/nxcomp || die "No nxcomp directory found"
+ emake || die "nxcomp emake failed"
+
+ cd "${WORKDIR}"/nxcompshad || die "No nxcompshad directory found"
+ emake || die "nxcompshad emake failed"
+
+ cd "${WORKDIR}"/nxproxy || die "No nxproxy directory found"
+ emake || die "nxproxy emake failed"
+
+ cd "${S}" || die "No nx-X11 directory found"
+ # Again, from xorg-x11-6.9.0-r3.ebuild
+ unset MAKE_OPTS
+ FAST=1 emake -j1 World WORLDOPTS="" MAKE="make" || die "nx-X11 emake failed"
+
+ cd "${WORKDIR}"/nxcompext || die "No nxcompext directory found"
+ emake || die "nxcompext emake failed"
+}
+
+src_install() {
+ NX_ROOT=/usr/$(get_libdir)/NX
+
+ for x in nxagent nxauth nxproxy; do
+ make_wrapper $x ./$x ${NX_ROOT}/bin ${NX_ROOT}/$(get_libdir) ||
+ die " $x wrapper creation failed"
+ done
+
+ into ${NX_ROOT}
+ dobin "${S}"/programs/Xserver/nxagent
+ dobin "${S}"/programs/nxauth/nxauth
+ dobin "${WORKDIR}"/nxproxy/nxproxy
+
+ dolib.so "${S}"/lib/X11/libX11.so*
+ dolib.so "${S}"/lib/Xext/libXext.so*
+ dolib.so "${S}"/lib/Xrender/libXrender.so*
+ dolib.so "${WORKDIR}"/nxcomp/libXcomp.so*
+ dolib.so "${WORKDIR}"/nxcompext/libXcompext.so*
+ dolib.so "${WORKDIR}"/nxcompshad/libXcompshad.so*
+}