30 |
mirror://${PNAME}/${PNAME}-1.0.90-102434.patch |
mirror://${PNAME}/${PNAME}-1.0.90-102434.patch |
31 |
mirror://${PNAME}/${PNAME}-1.0.90-cookie.patch |
mirror://${PNAME}/${PNAME}-1.0.90-cookie.patch |
32 |
mirror://${PNAME}/${PNAME}-0.0.90-viewer-reparent.patch |
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() |
47 |
mpatch ${PNAME}-1.0.90-cookie.patch || die |
mpatch ${PNAME}-1.0.90-cookie.patch || die |
48 |
# add reparent support for x window |
# add reparent support for x window |
49 |
mpatch ${PNAME}-0.0.90-viewer-reparent.patch || die |
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} |
72 |
cd ${SRCDIR} |
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} |
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 |
} |
} |