/[gentoo-x86]/net-misc/nx/nx-3.3.0-r4.ebuild
Gentoo

Contents of /net-misc/nx/nx-3.3.0-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jun 14 20:37:34 2010 UTC (9 years, 5 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Drop 3.3 NX versions
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/nx/nx-3.3.0-r4.ebuild,v 1.2 2009/07/06 10:48:04 voyageur Exp $
4
5 EAPI=2
6 inherit autotools eutils multilib
7
8 DESCRIPTION="NX compression technology core libraries"
9 HOMEPAGE="http://www.nomachine.com/developers.php"
10
11 URI_BASE="http://web04.nomachine.com/download/${PV}/sources"
12 SRC_NX_X11="nx-X11-$PV-6.tar.gz"
13 SRC_NXAGENT="nxagent-$PV-13.tar.gz"
14 SRC_NXAUTH="nxauth-$PV-1.tar.gz"
15 SRC_NXCOMP="nxcomp-$PV-4.tar.gz"
16 SRC_NXCOMPEXT="nxcompext-$PV-4.tar.gz"
17 SRC_NXCOMPSHAD="nxcompshad-$PV-3.tar.gz"
18 SRC_NXPROXY="nxproxy-$PV-2.tar.gz"
19
20 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"
21
22 LICENSE="GPL-2"
23 SLOT="0"
24 KEYWORDS="~amd64 ~x86"
25 IUSE=""
26
27 RDEPEND="x11-libs/libXau
28 x11-libs/libXcomposite
29 x11-libs/libXdamage
30 x11-libs/libXdmcp
31 x11-libs/libXpm
32 x11-libs/libXrandr
33 x11-libs/libXtst
34 >=media-libs/jpeg-6b-r4
35 >=media-libs/libpng-1.2.8
36 >=sys-libs/zlib-1.2.3"
37
38 DEPEND="${RDEPEND}
39 x11-misc/gccmakedep
40 x11-misc/imake
41 x11-proto/inputproto"
42
43 S=${WORKDIR}/${PN}-X11
44
45 src_prepare() {
46 # For nxcl/qtnx
47 cd "${WORKDIR}"/nxproxy
48 epatch "${FILESDIR}"/${PN}-3.2.0-nxproxy_read_from_stdin.patch
49
50 # Quiet some warnings
51 cd "${WORKDIR}"/nxcomp
52 epatch "${FILESDIR}"/${PN}-2.1.0-invalid-options.patch
53 # GCC 4.4 + glibc 2.10
54 epatch "${FILESDIR}"/${P}-nxcomp-glibc2.10.patch
55
56 cd "${WORKDIR}"
57 # Fix sandbox violation
58 epatch "${FILESDIR}"/1.5.0/nx-x11-1.5.0-tmp-exec.patch
59 # -fPIC
60 epatch "${FILESDIR}"/1.5.0/nxcomp-1.5.0-pic.patch
61 # Respect CFLAGS/CXXFLAGS
62 epatch "${FILESDIR}"/${PN}-3.3.0-cflags.patch
63 # Run autoreconf in all neeed folders
64 for i in nxcomp nxcompext nxcompshad nxproxy; do
65 cd "${WORKDIR}"/${i}
66 eautoreconf ${i}
67 cd "${WORKDIR}"
68 done
69
70 # From xorg-x11-6.9.0-r3.ebuild
71 cd "${S}"
72 HOSTCONF="config/cf/host.def"
73 echo "#define CcCmd $(tc-getCC)" >> ${HOSTCONF}
74 echo "#define OptimizedCDebugFlags ${CFLAGS} GccAliasingArgs" >> ${HOSTCONF}
75 echo "#define OptimizedCplusplusDebugFlags ${CXXFLAGS} GccAliasingArgs" >> ${HOSTCONF}
76 }
77
78 src_compile() {
79 cd "${WORKDIR}"/nxcomp || die "No nxcomp directory found"
80 econf || die "nxcomp econf failed"
81 emake || die "nxcomp emake failed"
82
83 cd "${WORKDIR}"/nxcompshad || die "No nxcompshad directory found"
84
85 econf || die "nxcompshad econf failed"
86 emake || die "nxcompshad emake failed"
87
88 cd "${WORKDIR}"/nxproxy || die "No nxproxy directory found"
89 econf || die "nxproxy econf failed"
90 emake || die "nxproxy emake failed"
91
92 cd "${S}" || die "No nx-X11 directory found"
93 # Again, from xorg-x11-6.9.0-r3.ebuild
94 unset MAKE_OPTS
95 FAST=1 emake -j1 World WORLDOPTS="" MAKE="make" || die "nx-X11 emake failed"
96
97 cd "${WORKDIR}"/nxcompext || die "No nxcompext directory found"
98 econf || die "nxcompext econf failed"
99 emake || die "nxcompext emake failed"
100 }
101
102 src_install() {
103 NX_ROOT=/usr/$(get_libdir)/NX
104
105 for x in nxagent nxauth nxproxy; do
106 make_wrapper $x ./$x ${NX_ROOT}/bin ${NX_ROOT}/$(get_libdir) ||
107 die " $x wrapper creation failed"
108 done
109
110 into ${NX_ROOT}
111 dobin "${S}"/programs/Xserver/nxagent
112 dobin "${S}"/programs/nxauth/nxauth
113 dobin "${WORKDIR}"/nxproxy/nxproxy
114
115 dolib.so "${S}"/lib/X11/libX11.so*
116 dolib.so "${S}"/lib/Xext/libXext.so*
117 dolib.so "${S}"/lib/Xrender/libXrender.so*
118 dolib.so "${WORKDIR}"/nxcomp/libXcomp.so*
119 dolib.so "${WORKDIR}"/nxcompext/libXcompext.so*
120 dolib.so "${WORKDIR}"/nxcompshad/libXcompshad.so*
121 }

  ViewVC Help
Powered by ViewVC 1.1.20