On Thu, Dec 08, 2011 at 10:19:55AM +0200, Antti Harri wrote:
> On Thursday 08 December 2011 07:33:03 Brett wrote:
> > Hi,
> >
> > I'm using Abiword built from ports, and recently noticed that it cannot
> > load/import docx files. There is plugin support for loading docx, but
> > it is not enabled in the ports version. After I
> > installed /usr/ports/devel/boost and added the line
> > "--enable-plugins=openxml \" to the Makefile, it built fine, but there
> > is still no plugin in /usr/local/lib/abiword-2.8/plugins. Is there a
> > known way to get this plugin to build? The documentation on the Abiword
> > site is a bit sparse.
> >
> > Thanks, Brett.
> 
> 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/

Reply via email to