aboutsummaryrefslogtreecommitdiff
path: root/editors/openoffice-3/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'editors/openoffice-3/Makefile')
-rw-r--r--editors/openoffice-3/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/editors/openoffice-3/Makefile b/editors/openoffice-3/Makefile
index 6e7df75bdf72..bbfc4d4863a1 100644
--- a/editors/openoffice-3/Makefile
+++ b/editors/openoffice-3/Makefile
@@ -119,9 +119,19 @@ LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo \
hunspell-1.3.0:${PORTSDIR}/textproc/hunspell \
poppler-glib.8:${PORTSDIR}/graphics/poppler-glib \
rdf.0:${PORTSDIR}/textproc/redland \
- textcat.0:${PORTSDIR}/textproc/libtextcat \
freetype.9:${PORTSDIR}/print/freetype2
+.if exists(${LOCALBASE}/include/libexttextcat/textcat.h)
+.if exists(${LOCALBASE}/include/textcat.h)
+LIB_DEPENDS+= exttextcat-1.0.0:${PORTSDIR}/textproc/libexttextcat
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libexttextcat-lingucomponent
+.else
+IGNORE= textproc/libexttextcat needs COMPAT_TEXTCAT enabled
+.endif
+.else
+LIB_DEPENDS+= textcat.0:${PORTSDIR}/textproc/libtextcat
+.endif
+
BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip \
${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip \
gpatch:${PORTSDIR}/devel/patch \