Annotation of /trunk/extras/nx/nx-3.5.0.33-r1.smage2
Parent Directory | Revision Log
Revision 30243 -
(hide annotations)
(download)
Thu Nov 9 09:42:55 2017 UTC (7 years ago) by niro
File size: 8606 byte(s)
Thu Nov 9 09:42:55 2017 UTC (7 years ago) by niro
File size: 8606 byte(s)
-fixed SRC_URI
1 | niro | 30237 | # $Id$ |
2 | |||
3 | PNAME="nx" | ||
4 | PVER="3.5.0.33" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | niro | 30238 | SPLIT_PACKAGES="nxcomp nxcompshad nxcompext nxlibs nxauth nxagent nxproxy x2goagent nx" |
8 | niro | 30237 | PCAT="net-misc" |
9 | |||
10 | HOMEPAGE="http://www.nomachine.com/" | ||
11 | |||
12 | COMMON_DEPEND=">= x11-libs/libXdamage-1.1 | ||
13 | >= x11-libs/libXext-1.3 | ||
14 | >= x11-libs/libXfixes-5 | ||
15 | >= x11-libs/libXi-1.7 | ||
16 | >= x11-libs/libXrandr-1.5 | ||
17 | >= x11-libs/libXrender-0.9 | ||
18 | >= x11-libs/libXtst-1.2 | ||
19 | >= x11-libs/libfontenc-1.1" | ||
20 | STD_DEPEND=">= sys-libs/libstdc++-6.3" | ||
21 | MEDIA_DEPEND=">= virtual/libjpeg | ||
22 | >= media-libs/libpng-1.5 | ||
23 | >= sys-libs/zlib-1.2" | ||
24 | X11_DEPEND=">= x11-libs/libX11-1.6" | ||
25 | |||
26 | NX_DEPEND="${COMMON_DEPEND}" | ||
27 | NXCOMP_DEPEND="${STD_DEPEND} | ||
28 | ${MEDIA_DEPEND}" | ||
29 | NXCOMPSHAD_DEPEND="${X11_DEPEND} | ||
30 | ${COMMON_DEPEND}" | ||
31 | NXCOMPEXT_DEPEND="${STD_DEPEND} | ||
32 | ${MEDIA_DEPEND} | ||
33 | ${X11_DEPEND}" | ||
34 | NXAGENT_DEPEND="${X11_DEPEND} | ||
35 | ${COMMON_DEPEND} | ||
36 | >= media-libs/freetype-2.6 | ||
37 | >= x11-libs/libXcomposite-0.4 | ||
38 | >= x11-libs/libXpm-3.5 | ||
39 | >= x11-misc/xkeyboard-config-2.20" | ||
40 | NXAUTH_DEPEND=">= virtual/glibc" | ||
41 | NXPROXY_DEPEND="${STD_DEPEND}" | ||
42 | |||
43 | SDEPEND="${NX_DEPEND} | ||
44 | ${NXCOMP_DEPEND} | ||
45 | ${NXCOMPSHAD_DEPEND} | ||
46 | ${NXCOMPEXT_DEPEND} | ||
47 | ${NXAGENT_DEPEND} | ||
48 | ${NXAUTH_DEPEND} | ||
49 | ${NXPROXY_DEPEND} | ||
50 | >= x11-misc/gccmakedep-1 | ||
51 | >= x11-misc/imake-1 | ||
52 | >= x11-protos/xproto-7" | ||
53 | |||
54 | niro | 30242 | SRCFILE="nx-libs-${PVER}-full.tar.gz" |
55 | niro | 30238 | SRCDIR="${BUILDDIR}/nx-libs-${PVER}" |
56 | niro | 30237 | NXX11_SRCDIR="${SRCDIR}/nx-X11" |
57 | NXAUTH_SRCDIR="${SRCDIR}/nxauth" | ||
58 | NXCOMP_SRCDIR="${SRCDIR}/nxcomp" | ||
59 | NXCOMPEXT_SRCDIR="${SRCDIR}/nxcompext" | ||
60 | NXCOMPSHAD_SRCDIR="${SRCDIR}/nxcompshad" | ||
61 | NXPROXY_SRCDIR="${SRCDIR}/nxproxy" | ||
62 | |||
63 | niro | 30238 | NXWRAPPER_PVER="2" |
64 | NXWRAPPER_SRCFILE="nxwrapper${NXWRAPPER_PVER}.in" | ||
65 | niro | 30237 | NXWRAPPER_SRCDIR="${BUILDDIR}/nxwrapper" |
66 | |||
67 | sminclude mtools | ||
68 | |||
69 | SRC_URI=( | ||
70 | niro | 30243 | http://code.x2go.org/releases/source/nx-libs/${SRCFILE} |
71 | niro | 30242 | mirror://${PNAME}/nx-libs/${SRCFILE} |
72 | niro | 30237 | mirror://${PNAME}/${NXWRAPPER_SRCFILE} |
73 | ) | ||
74 | |||
75 | UP2DATE="updatecmd http://code.x2go.org/releases/source/nx-libs/ | grep 'nx-libs-.*-full.tar.gz ' | sed 's/.*-\(.*\)-full.tar.gz.*/\1/' | upsort_pipe" | ||
76 | |||
77 | split_info_nxcomp() | ||
78 | { | ||
79 | DESCRIPTION="Nomachine NX compression library." | ||
80 | DEPEND="${NXCOMP_DEPEND}" | ||
81 | } | ||
82 | |||
83 | split_info_nxcompext() | ||
84 | { | ||
85 | DESCRIPTION="Nomachine NX compression library extensions." | ||
86 | DEPEND="${NXCOMPEXT_DEPEND} | ||
87 | == net-misc/nxcomp-${PVER} | ||
88 | == net-misc/nxlibs-${PVER}" | ||
89 | } | ||
90 | |||
91 | split_info_nxcompshad() | ||
92 | { | ||
93 | DESCRIPTION="Nomachine NX compression shadowing library." | ||
94 | DEPEND="${NXCOMPSHAD_DEPEND} | ||
95 | == net-misc/nxlibs-${PVER}" | ||
96 | } | ||
97 | |||
98 | split_info_nxlibs() | ||
99 | { | ||
100 | DESCRIPTION="Nomachine NX X11 libs." | ||
101 | DEPEND="${NX_DEPEND}" | ||
102 | } | ||
103 | |||
104 | split_info_nxauth() | ||
105 | { | ||
106 | DESCRIPTION="Nomachine NX X11 authorization program." | ||
107 | DEPEND="${NXAUTH_DEPEND}" | ||
108 | } | ||
109 | |||
110 | split_info_nxagent() | ||
111 | { | ||
112 | DESCRIPTION="Nomachine NX X11 agent server." | ||
113 | DEPEND="${NXAGENT_DEPEND} | ||
114 | == net-misc/nxlibs-${PVER} | ||
115 | == net-misc/nxcomp-${PVER} | ||
116 | == net-misc/nxcompext-${PVER} | ||
117 | == net-misc/nxcompshad-${PVER}" | ||
118 | } | ||
119 | |||
120 | split_info_nxproxy() | ||
121 | { | ||
122 | DESCRIPTION="Nomachine NX X11 forwarding proxy server." | ||
123 | DEPEND="${NXPROXY_DEPEND} | ||
124 | == net-misc/nxcomp-${PVER}" | ||
125 | } | ||
126 | |||
127 | split_info_x2goagent() | ||
128 | { | ||
129 | DESCRIPTION="X2Go wrapper around the Nomachine NX X11 agent server." | ||
130 | DEPEND="== net-misc/nxagent-${PVER}" | ||
131 | } | ||
132 | |||
133 | split_info_nx() | ||
134 | { | ||
135 | DESCRIPTION="Meta package to pull in all Nomachine NX support packages." | ||
136 | DEPEND="== net-misc/nxcomp-${PVER} | ||
137 | == net-misc/nxcompshad-${PVER} | ||
138 | == net-misc/nxcompext-${PVER} | ||
139 | == net-misc/nxlibs-${PVER} | ||
140 | == net-misc/nxauth-${PVER} | ||
141 | == net-misc/nxagent-${PVER} | ||
142 | niro | 30238 | == net-misc/nxproxy-${PVER}" |
143 | niro | 30237 | PKGTYPE="virtual" |
144 | } | ||
145 | |||
146 | src_prepare() | ||
147 | { | ||
148 | niro | 30242 | munpack ${SRCFILE} || die |
149 | niro | 30237 | |
150 | # fix broken Makefile | ||
151 | cd ${NXCOMPSHAD_SRCDIR} | ||
152 | sed -i "s:-o root -g root ::" Makefile.in || die | ||
153 | |||
154 | # do not compress man pages | ||
155 | cd ${SRCDIR} | ||
156 | sed -i "s:gzip:#gzip:g" Makefile || die | ||
157 | |||
158 | # create all missing configures | ||
159 | cd ${NXCOMP_SRCDIR} | ||
160 | mautoreconf || die | ||
161 | cd ${NXCOMPEXT_SRCDIR} | ||
162 | mautoreconf || die | ||
163 | cd ${NXCOMPSHAD_SRCDIR} | ||
164 | mautoreconf || die | ||
165 | cd ${NXPROXY_SRCDIR} | ||
166 | mautoreconf || die | ||
167 | |||
168 | # copy the wrapper | ||
169 | install -d ${NXWRAPPER_SRCDIR} | ||
170 | cp ${SOURCEDIR}/${PNAME}/${NXWRAPPER_SRCFILE} ${NXWRAPPER_SRCDIR}/ || die | ||
171 | } | ||
172 | |||
173 | src_compile() | ||
174 | { | ||
175 | cd ${SRCDIR} | ||
176 | mmake PREFIX=/usr \ | ||
177 | LIBDIR=/usr/$(mlibdir) \ | ||
178 | NXLIBDIR=/usr/$(mlibdir)/nx \ | ||
179 | X2GOLIBDIR=/usr/$(mlibdir)/x2go \ | ||
180 | CONFIGURE="./configure --prefix=/usr --libdir=/usr/$(mlibdir) --libexecdir=/usr/$(mlibdir) --includedir=/usr/include" \ | ||
181 | || die | ||
182 | |||
183 | cd ${NXWRAPPER_SRCDIR} | ||
184 | sed -e "s:@@NXLIBDIR@@:/usr/$(mlibdir)/nx:g" \ | ||
185 | -e "s:@@NXLOCALLIBDIR@@:/usr/local/$(mlibdir)/nx:g" \ | ||
186 | ${NXWRAPPER_SRCFILE} > nxwrapper || die | ||
187 | } | ||
188 | |||
189 | src_install_nxcomp() | ||
190 | { | ||
191 | cd ${SRCDIR} | ||
192 | minstalldir /usr/$(mlibdir) || die | ||
193 | mcopy -a ${NXCOMP_SRCDIR}/libXcomp.so\* /usr/$(mlibdir) || die | ||
194 | SRCDIR=${NXCOMP_SRCDIR} minstalldocs CHANGELOG COPYING LICENSE README || die | ||
195 | minstalldocs doc/README* doc/changelog || die | ||
196 | } | ||
197 | |||
198 | src_install_nxcompext() | ||
199 | { | ||
200 | cd ${SRCDIR} | ||
201 | minstalldir /usr/$(mlibdir) || die | ||
202 | mcopy -a ${NXCOMPEXT_SRCDIR}/libXcompext.so\* /usr/$(mlibdir) || die | ||
203 | SRCDIR=${NXCOMPEXT_SRCDIR} minstalldocs CHANGELOG COPYING LICENSE README || die | ||
204 | minstalldocs doc/README* doc/changelog || die | ||
205 | } | ||
206 | |||
207 | src_install_nxcompshad() | ||
208 | { | ||
209 | cd ${SRCDIR} | ||
210 | minstalldir /usr/$(mlibdir) || die | ||
211 | mcopy -a ${NXCOMPSHAD_SRCDIR}/libXcompshad.so\* /usr/$(mlibdir) || die | ||
212 | SRCDIR=${NXCOMPSHAD_SRCDIR} minstalldocs CHANGELOG COPYING LICENSE || die | ||
213 | minstalldocs doc/README* doc/changelog || die | ||
214 | } | ||
215 | |||
216 | src_install_nxlibs() | ||
217 | { | ||
218 | cd ${SRCDIR} | ||
219 | |||
220 | # copy all libNX_ libraries | ||
221 | minstalldir /usr/$(mlibdir) || die | ||
222 | mcopy -a ${NXX11_SRCDIR}/lib/\*/libNX_\*.so\* /usr/$(mlibdir) || die | ||
223 | |||
224 | # fix Xinerama support using real libX11 and libXext not the one provided by nx-X11 | ||
225 | minstalldir /usr/$(mlibdir)/nx/X11/Xinerama || die | ||
226 | mlink /usr/$(mlibdir)/libX11.so.6 /usr/$(mlibdir)/nx/X11/Xinerama/libNX_X11.so.6 || die | ||
227 | mlink /usr/$(mlibdir)/libXext.so.6 /usr/$(mlibdir)/nx/X11/Xinerama/libNX_Xext.so.6 || die | ||
228 | |||
229 | SRCDIR=${NXX11_SRCDIR} minstalldocs CHANGELOG COPYING LICENSE || die | ||
230 | minstalldocs doc/README* doc/changelog || die | ||
231 | } | ||
232 | |||
233 | src_install_nxauth() | ||
234 | { | ||
235 | cd ${SRCDIR} | ||
236 | minstalldir /usr/bin || die | ||
237 | minstallexec ${NXWRAPPER_SRCDIR}/nxwrapper /usr/bin/nxauth || die | ||
238 | minstalldir /usr/$(mlibdir)/nx/bin || die | ||
239 | minstallexec ${NXX11_SRCDIR}/programs/nxauth/nxauth /usr/$(mlibdir)/nx/bin || die | ||
240 | cp ${NXX11_SRCDIR}/programs/nxauth/nxauth.{man,1} || die | ||
241 | minstallman ${NXX11_SRCDIR}/programs/nxauth/nxauth.1 || die | ||
242 | SRCDIR=${NXX11_SRCDIR} minstalldocs CHANGELOG COPYING LICENSE || die | ||
243 | minstalldocs doc/README* doc/changelog || die | ||
244 | } | ||
245 | |||
246 | src_install_nxagent() | ||
247 | { | ||
248 | cd ${SRCDIR} | ||
249 | minstalldir /usr/bin || die | ||
250 | minstallexec ${NXWRAPPER_SRCDIR}/nxwrapper /usr/bin/nxagent || die | ||
251 | minstalldir /usr/$(mlibdir)/nx/bin || die | ||
252 | minstallexec ${NXX11_SRCDIR}/programs/Xserver/nxagent /usr/$(mlibdir)/nx/bin || die | ||
253 | minstallman ${NXX11_SRCDIR}/programs/Xserver/hw/nxagent/man/nxagent.1 || die | ||
254 | minstallpixmap ${NXX11_SRCDIR}/programs/Xserver/hw/nxagent/nxagent.xpm || die | ||
255 | minstalldir /usr/share/nx || die | ||
256 | minstallfile ${NXX11_SRCDIR}/programs/Xserver/Xext/SecurityPolicy /usr/share/nx || die | ||
257 | minstalldir /etc/nxagent || die | ||
258 | minstallfile etc/keystrokes.cfg /etc/nxagent/ || die | ||
259 | minstallfile etc/nxagent.keyboard /etc/nxagent/ || die | ||
260 | minstallfile etc/rgb /etc/nxagent/ || die | ||
261 | mlink /etc/nxagent/rgb /usr/share/nx/rgb || die | ||
262 | # fake file required for nxagent to find the keymap directory | ||
263 | memptyfile /usr/share/X11/xkb/keymap.dir || die | ||
264 | SRCDIR=${NXX11_SRCDIR} minstalldocs CHANGELOG COPYING LICENSE || die | ||
265 | minstalldocs doc/README* doc/changelog || die | ||
266 | } | ||
267 | |||
268 | src_install_nxproxy() | ||
269 | { | ||
270 | cd ${SRCDIR} | ||
271 | minstalldir /usr/bin || die | ||
272 | minstallexec ${NXWRAPPER_SRCDIR}/nxwrapper /usr/bin/nxproxy || die | ||
273 | minstalldir /usr/$(mlibdir)/nx/bin || die | ||
274 | minstallexec ${NXPROXY_SRCDIR}/nxproxy /usr/$(mlibdir)/nx/bin || die | ||
275 | minstallman ${NXPROXY_SRCDIR}/man/nxproxy.1 || die | ||
276 | SRCDIR=${NXPROXY_SRCDIR} minstalldocs CHANGELOG COPYING LICENSE README || die | ||
277 | minstalldocs doc/README* doc/changelog || die | ||
278 | } | ||
279 | |||
280 | src_install_x2goagent() | ||
281 | { | ||
282 | cd ${SRCDIR} | ||
283 | minstalldir /usr/bin || die | ||
284 | minstallexec ${NXWRAPPER_SRCDIR}/nxwrapper /usr/bin/x2goagent || die | ||
285 | minstalldir /usr/$(mlibdir)/nx/bin || die | ||
286 | mlink nxagent /usr/$(mlibdir)/nx/bin/x2goagent || die | ||
287 | minstallman ${NXX11_SRCDIR}/programs/Xserver/hw/nxagent/man/x2goagent.1 || die | ||
288 | minstallpixmap ${NXX11_SRCDIR}/programs/Xserver/hw/nxagent/x2go.xpm || die | ||
289 | minstalldir /usr/share/x2go/versions || die | ||
290 | minstallfile VERSION.x2goagent /usr/share/x2go/versions/ || die | ||
291 | minstalldir /etc/x2go || die | ||
292 | minstallfile etc/keystrokes.cfg /etc/x2go/ || die | ||
293 | minstallfile etc/x2goagent.keyboard /etc/x2go/ || die | ||
294 | minstallfile etc/rgb /etc/x2go/ || die | ||
295 | mlink /etc/x2go/rgb /usr/share/x2go/rgb || die | ||
296 | SRCDIR=${NXX11_SRCDIR} minstalldocs CHANGELOG COPYING LICENSE || die | ||
297 | minstalldocs doc/README* doc/changelog || die | ||
298 | } |