blob: 47e3606eb5c65baa8f7160baa659ab138473f457 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/nxcomp/nxcomp-1.5.0-r1.ebuild,v 1.3 2006/03/21 18:42:28 agriffis Exp $
inherit eutils multilib
DESCRIPTION="X11 protocol compression library"
HOMEPAGE="http://www.nomachine.com/"
IUSE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
SRC_URI="http://web04.nomachine.com/download/1.5.0/sources/$P-80.tar.gz"
RDEPEND="media-libs/jpeg
media-libs/libpng
virtual/libc
sys-libs/zlib
|| ( x11-libs/libXt virtual/x11 )"
DEPEND="${RDEPEND}
|| ( x11-proto/xproto virtual/x11 )"
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/nxcomp-1.5.0-r1-pic.patch
epatch ${FILESDIR}/nxcomp-1.5.0-r1-gcc4.patch
}
src_compile() {
./configure
emake || die "emake failed"
}
src_install() {
into /usr/NX
dolib libXcomp.so*
if [[ $(get_libdir) != lib ]]; then
# necessary for nxclient to work, it seems
ln -s "$(get_libdir)" ${D}/usr/NX/lib
fi
preplib /usr/NX/lib
insinto /usr/NX/include
doins NX*.h MD5.h
dodoc README README-IPAQ LICENSE VERSION
dodir /etc/env.d
echo "LDPATH=/usr/NX/$(get_libdir)" >${D}/etc/env.d/50nxcomp
}
|