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 |
|
mirror://${PNAME}/${PNAME}-1.0.90-ldnow.patch |
34 |
) |
) |
35 |
|
|
36 |
src_prepare() |
src_prepare() |
41 |
cd ${SRCDIR} |
cd ${SRCDIR} |
42 |
|
|
43 |
# patchwork |
# patchwork |
44 |
|
# force vncviewer to read password from stdin |
45 |
|
mpatch ${PNAME}-1.0.90-102434.patch || die |
46 |
|
# create X server cookie via mcookie |
47 |
|
mpatch ${PNAME}-1.0.90-cookie.patch || die |
48 |
|
# add reparent support for x window |
49 |
|
mpatch ${PNAME}-0.0.90-viewer-reparent.patch || die |
50 |
|
# link libvnc.so "now" to catch "undefined symbol" errors during Xorg startup |
51 |
|
mpatch ${PNAME}-1.0.90-ldnow.patch || die |
52 |
|
|
53 |
# apply the included xorg patch |
# apply the included xorg patch |
54 |
cd ${XORGDDIR} |
cd ${XORGDDIR} |
62 |
libtoolize --copy --force || die |
libtoolize --copy --force || die |
63 |
autoreconf --verbose --install --force || die |
autoreconf --verbose --install --force || die |
64 |
|
|
65 |
cd ${SRCDIR}/unix |
cd ${SRCDIR} |
66 |
libtoolize --copy --force || die |
libtoolize --copy --force || die |
67 |
autoreconf --verbose --install --force || die |
autoreconf --verbose --install --force || die |
68 |
} |
} |
69 |
|
|
70 |
src_compile() |
src_compile() |
71 |
{ |
{ |
72 |
cd ${SRCDIR}/unix |
cd ${SRCDIR} |
73 |
mconfigure --disable-static || die |
mconfigure --disable-static || die |
74 |
# only build neccessary things |
# only build neccessary things |
75 |
# fix broken libtool: it calles sed and it ends in an infinite loop |
mmake -j1 -C common || die |
76 |
mmake -j1 -C ../common LIBTOOL="$(which libtool)" || die |
mmake -j1 -C vncpasswd || die |
|
mmake -j1 -C vncpasswd LIBTOOL="$(which libtool)" || die |
|
77 |
|
|
78 |
# fix build issues |
# fix build issues |
79 |
export CFLAGS="$(pkg-config --cflags libdrm)" |
export CFLAGS="$(pkg-config --cflags libdrm)" |
109 |
--disable-shave \ |
--disable-shave \ |
110 |
|| die |
|| die |
111 |
|
|
112 |
# fix broken libtool: it calles sed and it ends in an infinite loop |
mmake -j1 || die |
|
mmake -j1 LIBTOOL="$(which libtool)" || die |
|
113 |
} |
} |
114 |
|
|
115 |
src_install() |
src_install() |
116 |
{ |
{ |
117 |
cd ${SRCDIR}/unix |
cd ${SRCDIR} |
118 |
# fix broken libtool: it calles sed and it ends in an infinite loop |
mmake -C vncpasswd DESTDIR=${BINDIR} install || die |
|
mmake -C vncpasswd DESTDIR=${BINDIR} LIBTOOL="$(which libtool)" install || die |
|
119 |
|
|
120 |
cd ${XORGDDIR}/hw/vnc |
cd ${XORGDDIR}/hw/vnc |
121 |
# fix broken libtool: it calles sed and it ends in an infinite loop |
mmake DESTDIR=${BINDIR} install || die |
|
mmake DESTDIR=${BINDIR} LIBTOOL="$(which libtool)" install || die |
|
122 |
} |
} |