2013年5月18日土曜日

[FreeBSD/10-current] freerdp compile error

I tried to compile net/freerdp on FreeBSD-10-current(r250697M).

However I could not compile it with below errors.

[100%] Generating xfreerdp.1
xmlto: /zdevel1/usr/ports-192.168.10.64/zdevel1/usr/ports/net/freerdp/work/FreeR
DP-FreeRDP-616aed4/client/X11/xfreerdp.1.xml does not validate (status 3)
xmlto: Fix document syntax or use --skip-validation option
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml
/4.1.2/docbookx.dtd
/zdevel1/usr/ports-192.168.10.64/zdevel1/usr/ports/net/freerdp/work/FreeRDP-Free
RDP-616aed4/client/X11/xfreerdp.1.xml:2: warning: failed to load external entity
 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"
                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
                                                                             ^
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml
/4.1.2/docbookx.dtd
warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4
.1.2/docbookx.dtd"
validity error : Could not load the external subset "http://www.oasis-open.org/d
ocbook/xml/4.1.2/docbookx.dtd"
Document /zdevel1/usr/ports-192.168.10.64/zdevel1/usr/ports/net/freerdp/work/Fre
eRDP-FreeRDP-616aed4/client/X11/xfreerdp.1.xml does not validate
*** [client/X11/xfreerdp.1] Error code 13

So I disable man page. I can compile and install it

1. remove xmlto
   pkg delete xmlto

2. change Makefile(do not use xmlto)

net/freerdp/Makefile

.if ${PORT_OPTIONS:MX11}
USE_XORG=       x11 xkbfile xcursor xextproto xv xinerama xext xcursor
CMAKE_ARGS+=    -DWITH_X11=ON
#BUILD_DEPENDS+=        xmlto:${PORTSDIR}/textproc/xmlto
#MAN1=          xfreerdp.1
PLIST_SUB+=     X11=""

[NOTES]
AT June/2013, I compiled all base system(from r251138) and ports tree.
I can compile freerdp without any changes.