> > >
> > > I'm using Abiword built from ports, and recently noticed that it cannot
> > > load/import docx files. 
> > >

> > 
> > Can you try the following patch? I didn't have time to test it, but at 
> > least now
> > it packages the lib you need. Also, maybe there's a good reason why it was 
> > not
> > enabled?
> > 
> > - ffi missing from WANTLIB
> > - configure didn't recognize --without-gucharmap -> removed
> > - added openxml support

> 
> Slightly modified.
> 
> 
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/editors/abiword/Makefile,v
> retrieving revision 1.84
> diff -u -r1.84 Makefile
> --- Makefile  16 Sep 2011 09:48:08 -0000      1.84
> +++ Makefile  8 Dec 2011 08:25:39 -0000
> @@ -6,7 +6,7 @@
>  MAJORVER=    ${VERSION:C/..$//}
>  DISTNAME=    abiword-${VERSION}
>  
> -REVISION=    3
> +REVISION=    4
>  
>  # Merge a patch from Fedora to change default font from Times Roman to
>  # DejaVu Serif.: fixes font corruption issue on machines where
> @@ -35,14 +35,14 @@
>  PERMIT_DISTFILES_CDROM=      Yes
>  PERMIT_DISTFILES_FTP=        Yes
>  
> -WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext
> -WANTLIB += Xfixes Xi Xinerama Xrandr Xrender atk-1.0 bz2 c cairo
> -WANTLIB += croco-0.6 expat fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0
> -WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gsf-1
> -WANTLIB += gthread-2.0 gtk-x11-2.0 jpeg m pango-1.0 pangocairo-1.0
> -WANTLIB += pangoft2-1.0 pcre pixman-1 png pthread pthread-stubs
> -WANTLIB += stdc++ xcb xml2 z xcb-render wmf-0.2 wmflite-0.2
> -WANTLIB += fribidi enchant rsvg-2 wv-1.2 GL Xxf86vm drm xcb-shm
> +WANTLIB += GL X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
> +WANTLIB += Xi Xinerama Xrandr Xrender Xxf86vm atk-1.0 bz2 c cairo
> +WANTLIB += croco-0.6 drm enchant expat ffi fontconfig freetype
> +WANTLIB += fribidi gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0
> +WANTLIB += gmodule-2.0 gobject-2.0 gsf-1 gthread-2.0 gtk-x11-2.0
> +WANTLIB += jpeg m pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre pixman-1
> +WANTLIB += png pthread pthread-stubs rsvg-2 stdc++ wmf-0.2 wmflite-0.2
> +WANTLIB += wv-1.2 xcb xcb-render xcb-shm xml2 z
>  
>  MASTER_SITES=   ${HOMEPAGE}/downloads/abiword/${VERSION}/source/
>  
> @@ -50,18 +50,21 @@
>  USE_GMAKE=   Yes
>  USE_GROFF =  Yes
>  
> +# plugins/openxml.so
> +BUILD_DEPENDS=       devel/boost
> +
>  CONFIGURE_STYLE= gnu
>  CONFIGURE_ARGS=      ${CONFIGURE_SHARED} \
>               --enable-templates \
>               --enable-clipart \
> -             --enable-collab-backend-fake=no \
> +             --enable-plugins=openxml \
> +             --disable-collab-backend-fake \
>               --disable-collab-backend-telepathy \
>               --disable-collab-record-always \
>               --enable-collab-backend-xmpp \
>               --enable-collab-backend-sugar \
>               --without-goffice \
> -             --without-gnomevfs \
> -             --without-gucharmap
> +             --without-gnomevfs
>  # broken configure checks (i.e. "no" makes it think we want to enable them)
>  #            --disable-collab-backend-tcp
>  #            --disable-collab-backend-service
> Index: pkg/PFRAG.shared
> ===================================================================
> RCS file: /cvs/ports/editors/abiword/pkg/PFRAG.shared,v
> retrieving revision 1.1
> diff -u -r1.1 PFRAG.shared
> --- pkg/PFRAG.shared  21 Mar 2010 10:55:04 -0000      1.1
> +++ pkg/PFRAG.shared  8 Dec 2011 08:25:39 -0000
> @@ -1,3 +1,4 @@
>  @comment $OpenBSD: PFRAG.shared,v 1.1 2010/03/21 10:55:04 ajacoutot Exp $
>  lib/abiword-${MAJORVER}/plugins/opendocument.so
> +lib/abiword-${MAJORVER}/plugins/openxml.so
>  @lib lib/libabiword-${MAJORVER}.so.${LIBabiword-2.8_VERSION}
> Index: pkg/PLIST
> ===================================================================
> RCS file: /cvs/ports/editors/abiword/pkg/PLIST,v
> retrieving revision 1.25
> diff -u -r1.25 PLIST
> --- pkg/PLIST 10 May 2010 12:31:52 -0000      1.25
> +++ pkg/PLIST 8 Dec 2011 08:25:39 -0000
> @@ -10,6 +10,8 @@
>  lib/abiword-${MAJORVER}/plugins/
>  @comment lib/abiword-${MAJORVER}/plugins/opendocument.a
>  @comment lib/abiword-${MAJORVER}/plugins/opendocument.la
> +@comment lib/abiword-${MAJORVER}/plugins/openxml.a
> +@comment lib/abiword-${MAJORVER}/plugins/openxml.la
>  lib/libabiword-${MAJORVER}.a
>  lib/libabiword-${MAJORVER}.la
>  lib/pkgconfig/
> 

Hi all,

Using the above patch it does now install and activate the openxml plugin. (And 
no, I had not updated the packing list when I tried it before).

I have quickly tried a few docx files, and although there are some formatting 
glitches (the footer says "page number" instead of numbering each page, a blank 
page is inserted at the front of some documents, and some double spacing 
reverted to single spacing) I think its much better to have glitchy docx than 
no docx at all. Also those glitches could be the fault of libreoffice, I don't 
know.

Thanks, I would rather use this than koffice or libreoffice that take forever 
to compile!

Brett.

Reply via email to