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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Aug 5 09:11:37 2014 UTC (5 years, 4 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump, clean some versions

(Portage version: 2.2.11/cvs/Linux x86_64, signed Manifest commit with key C74525F2)

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

  ViewVC Help
Powered by ViewVC 1.1.20