21 |
DEPEND=">= virtual/x11" |
DEPEND=">= virtual/x11" |
22 |
SDEPEND=">= dev-lang/nasm-2" |
SDEPEND=">= dev-lang/nasm-2" |
23 |
|
|
|
sminclude alx cleanutils |
|
|
|
|
24 |
SRC_URI=( |
SRC_URI=( |
25 |
http://mesh.dl.sourceforge.net/project/${PNAME}/${PNAME}/${PVER}/${SRCFILE} |
http://mesh.dl.sourceforge.net/project/${PNAME}/${PNAME}/${PVER}/${SRCFILE} |
26 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
27 |
http://ftp.x.org/pub/individual/xserver/${XORG} |
http://ftp.x.org/pub/individual/xserver/${XORG} |
28 |
mirror://xorg-server/${XORG} |
mirror://xorg-server/${XORG} |
29 |
mirror://${PNAME}/tigervnc_48.png |
mirror://${PNAME}/tigervnc_48.png |
30 |
|
mirror://${PNAME}/${PNAME}-1.0.90-102434.patch |
31 |
|
mirror://${PNAME}/${PNAME}-1.0.90-cookie.patch |
32 |
|
mirror://${PNAME}/${PNAME}-0.0.90-viewer-reparent.patch |
33 |
) |
) |
34 |
|
|
35 |
src_prepare() |
src_prepare() |
40 |
cd ${SRCDIR} |
cd ${SRCDIR} |
41 |
|
|
42 |
# patchwork |
# patchwork |
43 |
|
# force vncviewer to read password from stdin |
44 |
|
mpatch ${PNAME}-1.0.90-102434.patch || die |
45 |
|
# create X server cookie via mcookie |
46 |
|
mpatch ${PNAME}-1.0.90-cookie.patch || die |
47 |
|
# add reparent support for x window |
48 |
|
mpatch ${PNAME}-0.0.90-viewer-reparent.patch || die |
49 |
|
|
50 |
# apply the included xorg patch |
# apply the included xorg patch |
51 |
cd ${XORGDDIR} |
cd ${XORGDDIR} |
66 |
|
|
67 |
src_compile() |
src_compile() |
68 |
{ |
{ |
69 |
cd ${SRCDIR}/unix |
cd ${SRCDIR} |
70 |
mconfigure --disable-static || die |
mconfigure --disable-static || die |
71 |
# only build neccessary things |
# only build neccessary things |
72 |
# fix broken libtool: it calles sed and it ends in an infinite loop |
# fix broken libtool: it calles sed and it ends in an infinite loop |
113 |
|
|
114 |
src_install() |
src_install() |
115 |
{ |
{ |
116 |
cd ${SRCDIR}/unix |
cd ${SRCDIR} |
117 |
# fix broken libtool: it calles sed and it ends in an infinite loop |
# fix broken libtool: it calles sed and it ends in an infinite loop |
118 |
mmake -C vncpasswd DESTDIR=${BINDIR} LIBTOOL="$(which libtool)" install || die |
mmake -C vncpasswd DESTDIR=${BINDIR} LIBTOOL="$(which libtool)" install || die |
119 |
|
|