Annotation of /branches/magellan-next/extras/nxclient/nxclient-3.5.0-r2.smage2
Parent Directory | Revision Log
Revision 7990 -
(hide annotations)
(download)
Mon Jun 27 22:50:12 2011 UTC (12 years, 11 months ago) by niro
File size: 4213 byte(s)
Mon Jun 27 22:50:12 2011 UTC (12 years, 11 months ago) by niro
File size: 4213 byte(s)
auto added: ver bump to 3.5.0-r2
1 | niro | 7990 | # $Id$ |
2 | |||
3 | PNAME="nxclient" | ||
4 | PVER="3.5.0" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCATEGORIE="net-misc" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="A client for NX servers." | ||
11 | HOMEPAGE="http://www.nomachine.com/" | ||
12 | |||
13 | DEPEND=">= dev-libs/expat-2 | ||
14 | >= media-libs/freetype-2.4 | ||
15 | >= media-libs/fontconfig-2.8 | ||
16 | >= x11-libs/libXft-2.2 | ||
17 | >= x11-libs/libX11-1.4 | ||
18 | >= x11-libs/libXdmcp-1 | ||
19 | >= x11-libs/libXrender-0.9 | ||
20 | >= x11-libs/libXau-1 | ||
21 | >= x11-libs/libXext-1.3 | ||
22 | >= sys-libs/zlib-1.2 | ||
23 | >= media-libs/libjpeg-8 | ||
24 | >= media-libs/libpng-1.5 | ||
25 | >= dev-libs/openssl-1.0.0d | ||
26 | >= media-libs/audiofile-0.2.7 | ||
27 | >= net-print/cups-1.4" | ||
28 | |||
29 | SDEPEND=">= dev-util/desktop-file-utils-0.15" | ||
30 | |||
31 | NXPVER="${PVER}-7" | ||
32 | NXPVER64="${NXPVER}" | ||
33 | # both files must be fetch or our md5-logic breaks | ||
34 | SRCFILE_x86="${PNAME}-${NXPVER}.i386.tar.gz" | ||
35 | SRCFILE_x86_64="${PNAME}-${NXPVER64}.x86_64.tar.gz" | ||
36 | # decide between x86 and x86_64 arch | ||
37 | SRCFILE="$(eval echo \$SRCFILE_${ARCH/i*86/x86})" | ||
38 | SRCDIR="${BUILDDIR}/NX" | ||
39 | |||
40 | NXSSH_PVER="${PVER}-2" | ||
41 | NXSSH_SRCFILE="nxssh-${NXSSH_PVER}.tar.gz" | ||
42 | NXSSH_SRCDIR="${BUILDDIR}/nxssh" | ||
43 | |||
44 | NXCOMP_PVER="${PVER}-2" | ||
45 | NXCOMP_SRCFILE="nxcomp-${NXCOMP_PVER}.tar.gz" | ||
46 | NXCOMP_SRCDIR="${BUILDDIR}/nxcomp" | ||
47 | |||
48 | NXCOMPSH_PVER="${PVER}-1" | ||
49 | NXCOMPSH_SRCFILE="nxcompsh-${NXCOMPSH_PVER}.tar.gz" | ||
50 | NXCOMPSH_SRCDIR="${BUILDDIR}/nxcompsh" | ||
51 | |||
52 | sminclude mtools xdg | ||
53 | |||
54 | SRC_URI=( | ||
55 | http://web04.nomachine.com/download/${PVER}/Linux/${SRCFILE_x86} | ||
56 | http://web04.nomachine.com/download/${PVER}/Linux/${SRCFILE_x86_64} | ||
57 | http://web04.nomachine.com/download/${PVER}/sources/${NXSSH_SRCFILE} | ||
58 | http://web04.nomachine.com/download/${PVER}/sources/${NXCOMP_SRCFILE} | ||
59 | http://web04.nomachine.com/download/${PVER}/sources/${NXCOMPSH_SRCFILE} | ||
60 | mirror://${PNAME}/${SRCFILE_x86} | ||
61 | mirror://${PNAME}/${SRCFILE_x86_64} | ||
62 | mirror://${PNAME}/${NXSSH_SRCFILE} | ||
63 | mirror://${PNAME}/${NXCOMP_SRCFILE} | ||
64 | mirror://${PNAME}/${NXCOMPSH_SRCFILE} | ||
65 | mirror://${PNAME}/nxclient-wrapper | ||
66 | mirror://${PNAME}/nxcompsh-3.4.0-gcc43.patch | ||
67 | ) | ||
68 | |||
69 | UP2DATE="updatecmd ${HOMEPAGE}/sources.php | grep nx-X11 | sed 's/.*nx-X11-\(.*\)-.*/\1/;q'" | ||
70 | |||
71 | src_prepare() | ||
72 | { | ||
73 | munpack ${SRCFILE} || die | ||
74 | munpack ${NXCOMP_SRCFILE} || die | ||
75 | munpack ${NXCOMPSH_SRCFILE} || die | ||
76 | munpack ${NXSSH_SRCFILE} || die | ||
77 | |||
78 | # fix some compile issues with gcc >=4.3 | ||
79 | cd ${NXCOMPSH_SRCDIR} | ||
80 | mpatch nxcompsh-3.4.0-gcc43.patch || die | ||
81 | } | ||
82 | |||
83 | src_compile() | ||
84 | { | ||
85 | # nxcomp is needed to successfully compile nxssh | ||
86 | cd ${NXCOMP_SRCDIR} | ||
87 | ./configure || die | ||
88 | mmake || die | ||
89 | |||
90 | # rebuild needed; provided is linked against libjpeg.so.62 | ||
91 | cd ${NXCOMPSH_SRCDIR} | ||
92 | ./configure || die | ||
93 | mmake || die | ||
94 | |||
95 | # we rebuild nxssh to be compatible with our openssl version | ||
96 | cd ${NXSSH_SRCDIR} | ||
97 | ./configure --prefix=/usr/NX || die | ||
98 | mmake || die | ||
99 | } | ||
100 | |||
101 | src_install() | ||
102 | { | ||
103 | cd ${SRCDIR} | ||
104 | |||
105 | # needed directories | ||
106 | minstalldir /usr/bin || die | ||
107 | minstalldir /usr/NX/bin || die | ||
108 | minstalldir /usr/NX/lib || die | ||
109 | minstalldir /usr/NX/share || die | ||
110 | |||
111 | local i | ||
112 | for i in nxclient nxesd nxkill nxprint nxservice | ||
113 | do | ||
114 | minstallexec -s nxclient-wrapper /usr/bin/${i} || die | ||
115 | minstallexec ${SRCDIR}/bin/${i} /usr/NX/bin || die | ||
116 | done | ||
117 | |||
118 | # install our rebuilded nxssh | ||
119 | minstallexec -s nxclient-wrapper /usr/bin/nxssh || die | ||
120 | minstallexec ${NXSSH_SRCDIR}/nxssh /usr/NX/bin || die | ||
121 | |||
122 | # install our rebuilded libs | ||
123 | cp -a ${NXCOMP_SRCDIR}/libXcomp.so* ${BINDIR}/usr/NX/lib || die | ||
124 | cp -a ${NXCOMPSH_SRCDIR}/libXcompsh.so* ${BINDIR}/usr/NX/lib || die | ||
125 | |||
126 | # share data | ||
127 | cp -a ${SRCDIR}/share/* ${BINDIR}/usr/NX/share || die | ||
128 | |||
129 | # install some desktop icons | ||
130 | minstallpixmap ${SRCDIR}/share/icons/48x48/nxclient-icon.png nxclient.png | ||
131 | minstall_desktop_icon \ | ||
132 | --name NXClient \ | ||
133 | --comment "NoMachine NX Client" \ | ||
134 | --file "nxclient" \ | ||
135 | --exec "nxclient" \ | ||
136 | --icon "nxclient.png" \ | ||
137 | --categories Network \ | ||
138 | || die | ||
139 | |||
140 | minstallpixmap ${SRCDIR}/share/icons/48x48/nxclient-admin.png nxadmin.png | ||
141 | minstall_desktop_icon \ | ||
142 | --name NXAdmin \ | ||
143 | --comment "NoMachine NX Administration Console" \ | ||
144 | --file "nxadmin" \ | ||
145 | --exec "nxclient --admin" \ | ||
146 | --icon "nxadmin.png" \ | ||
147 | --categories Network \ | ||
148 | || die | ||
149 | |||
150 | minstallpixmap ${SRCDIR}/share/icons/48x48/nxclient-wizard.png nxwizard.png | ||
151 | minstall_desktop_icon \ | ||
152 | --name NXWizard \ | ||
153 | --comment "NoMachine NX Configuration Wizard" \ | ||
154 | --file "nxwizard" \ | ||
155 | --exec "nxclient --wizard" \ | ||
156 | --icon "nxwizard.png" \ | ||
157 | --categories Network \ | ||
158 | || die | ||
159 | } |