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

Contents of /net-misc/nx/nx-3.5.0.20.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Mar 27 14:47:37 2015 UTC (4 years, 8 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -4 lines
No need to depend on libtirpc (yet), thanks F. Kater <fkater@googlemail.com> in bug #370767

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 00F7AB331B0F097F)

1 # Copyright 1999-2015 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.5.0.20.ebuild,v 1.4 2014/08/22 08:20:03 voyageur Exp $
4
5 EAPI=4
6 inherit autotools eutils multilib
7
8 DESCRIPTION="NX compression technology core libraries"
9 HOMEPAGE="http://www.x2go.org/doku.php/wiki:libs:nx-libs"
10
11 SRC_URI="http://code.x2go.org/releases/source/nx-libs/nx-libs-${PV}-full.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ~ppc x86"
16 IUSE="elibc_glibc"
17
18 RDEPEND=">=media-libs/libpng-1.2.8
19 >=sys-libs/zlib-1.2.3
20 virtual/jpeg"
21
22 DEPEND="${RDEPEND}
23 x11-misc/gccmakedep
24 x11-misc/imake
25 x11-proto/inputproto"
26
27 S=${WORKDIR}/nx-libs-${PV}
28
29 src_prepare() {
30 # For nxcl/qtnx
31 cd "${S}"/nxproxy
32 epatch "${FILESDIR}"/${PN}-3.2.0-nxproxy_read_from_stdin.patch
33
34 cd "${S}"
35 # Fix sandbox violation
36 epatch "${FILESDIR}"/1.5.0/nx-x11-1.5.0-tmp-exec.patch
37 # -fPIC
38 epatch "${FILESDIR}"/1.5.0/nxcomp-1.5.0-pic.patch
39 # Drop force -O3, set AR/RANLIB and
40 # run autoreconf in all neeed folders
41 epatch "${FILESDIR}"/${PN}-3.5.0.17-cflags_ar_ranlib.patch
42 for i in nxcomp nxcompext nxcompshad nxproxy; do
43 cd "${S}"/${i}
44 eautoreconf ${i}
45 cd "${S}"
46 done
47
48 # From xorg-x11-6.9.0-r3.ebuild
49 cd "${S}/nx-X11"
50 HOSTCONF="config/cf/host.def"
51 echo "#define CcCmd $(tc-getCC)" >> ${HOSTCONF}
52 echo "#define OptimizedCDebugFlags ${CFLAGS} GccAliasingArgs" >> ${HOSTCONF}
53 echo "#define OptimizedCplusplusDebugFlags ${CXXFLAGS} GccAliasingArgs" >> ${HOSTCONF}
54 # Respect LDFLAGS
55 echo "#define ExtraLoadFlags ${LDFLAGS}" >> ${HOSTCONF}
56 echo "#define SharedLibraryLoadFlags -shared ${LDFLAGS}" >> ${HOSTCONF}
57 }
58
59 src_configure() {
60 cd "${S}"/nxproxy
61 econf
62 }
63
64 src_compile() {
65 cd "${S}/nx-X11"
66 FAST=1 emake World WORLDOPTS="" MAKE="make" \
67 AR="$(tc-getAR) clq" RANLIB="$(tc-getRANLIB)" \
68 CC="$(tc-getCC)" CXX="$(tc-getCXX)"
69
70 cd "${S}"/nxproxy
71 emake
72 }
73
74 src_install() {
75 NX_ROOT=/usr/$(get_libdir)/NX
76
77 for x in nxagent nxauth nxproxy; do
78 make_wrapper $x ./$x ${NX_ROOT}/bin ${NX_ROOT}/$(get_libdir) ||
79 die " $x wrapper creation failed"
80 done
81
82 into ${NX_ROOT}
83 dobin "${S}"/nx-X11/programs/Xserver/nxagent
84 dobin "${S}"/nx-X11/programs/nxauth/nxauth
85 dobin "${S}"/nxproxy/nxproxy
86
87 for lib in X11 Xau Xcomposite Xdamage Xdmcp Xext Xfixes Xinerama Xpm Xrandr Xrender Xtst;
88 do
89 dolib.so "${S}"/nx-X11/lib/${lib}/libNX_${lib}.so*
90 done
91 dolib.so "${S}"/nx-X11/lib/freetype2/libNX_freetype.so*
92
93 dolib.so "${S}"/nxcomp/libXcomp.so*
94 dolib.so "${S}"/nxcompext/libXcompext.so*
95 dolib.so "${S}"/nxcompshad/libXcompshad.so*
96 }

  ViewVC Help
Powered by ViewVC 1.1.20