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
--
Antti Harri
diff --git editors/abiword/Makefile editors/abiword/Makefile
index 2ff7567..ecb027c 100644
--- editors/abiword/Makefile
+++ editors/abiword/Makefile
@@ -6,7 +6,7 @@ VERSION= 2.8.6
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
@@ -23,6 +23,7 @@ HOMEPAGE= http://www.abisource.com/
MODULES= devel/gettext
RUN_DEPENDS= devel/desktop-file-utils
+BUILD_DEPENDS= devel/boost
LIB_DEPENDS= devel/fribidi \
converters/wv \
textproc/enchant \
@@ -35,14 +36,14 @@ PERMIT_PACKAGE_FTP= Yes
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/
@@ -52,6 +53,7 @@ USE_GROFF = Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
+ --enable-plugins=openxml \
--enable-templates \
--enable-clipart \
--enable-collab-backend-fake=no \
@@ -60,8 +62,7 @@ CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--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
diff --git editors/abiword/pkg/PFRAG.shared editors/abiword/pkg/PFRAG.shared
index 9d3f434..b8d9fa6 100644
--- editors/abiword/pkg/PFRAG.shared
+++ editors/abiword/pkg/PFRAG.shared
@@ -1,3 +1,4 @@
@comment $OpenBSD: ports/editors/abiword/pkg/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}
diff --git editors/abiword/pkg/PLIST editors/abiword/pkg/PLIST
index d22fe11..9b1c426 100644
--- editors/abiword/pkg/PLIST
+++ editors/abiword/pkg/PLIST
@@ -10,6 +10,8 @@ lib/abiword-${MAJORVER}/
lib/abiword-${MAJORVER}/plugins/
@comment lib/abiword-${MAJORVER}/plugins/opendocument.a
@comment lib/abiword-${MAJORVER}/plugins/opendocument.la
+lib/abiword-${MAJORVER}/plugins/openxml.a
+lib/abiword-${MAJORVER}/plugins/openxml.la
lib/libabiword-${MAJORVER}.a
lib/libabiword-${MAJORVER}.la
lib/pkgconfig/