summaryrefslogtreecommitdiff
path: root/editors/koffice-kde4/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'editors/koffice-kde4/Makefile')
-rw-r--r--editors/koffice-kde4/Makefile40
1 files changed, 32 insertions, 8 deletions
diff --git a/editors/koffice-kde4/Makefile b/editors/koffice-kde4/Makefile
index 42d180cd6f86..c430678a15c5 100644
--- a/editors/koffice-kde4/Makefile
+++ b/editors/koffice-kde4/Makefile
@@ -7,26 +7,32 @@
#
PORTNAME= koffice
-PORTVERSION= 1.2.1
-PORTREVISION= 2
+PORTVERSION= 1.3
PORTEPOCH= 1
CATEGORIES= editors kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTNAME}-${PORTVERSION}/src
DIST_SUBDIR= KDE/koffice
-PATCH_SITES= http://www.fruitsalad.org/patches/
-PATCHFILES= 1.2.1_kword_crashes.diff
-
MAINTAINER= kde@FreeBSD.org
COMMENT= Office Suite for KDE3
-LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv \
- art_lgpl_2.5:${PORTSDIR}/graphics/libart_lgpl2
+BUILD_DEPENDS= Magick-config:${PORTSDIR}/graphics/ImageMagick \
+ dot:${PORTSDIR}/graphics/graphviz
+LIB_DEPENDS= art_lgpl_2.5:${PORTSDIR}/graphics/libart_lgpl2 \
+ aspell:${PORTSDIR}/textproc/aspell \
+ fontconfig:${PORTSDIR}/x11-fonts/fontconfig \
+ freetype:${PORTSDIR}/print/freetype2 \
+ iconv.3:${PORTSDIR}/converters/libiconv \
+ paper.2:${PORTSDIR}/print/libpaper \
+ xml2:${PORTSDIR}/textproc/libxml2 \
+ xslt:${PORTSDIR}/textproc/libxslt
+RUN_DEPENDS= wn:${PORTSDIR}/textproc/wordnet
USE_KDELIBS_VER= 3
PREFIX= ${KDE_PREFIX}
+KDE_BUILD_PLIST= yes
USE_BZIP2= yes
USE_GMAKE= yes
USE_PYTHON= yes
@@ -36,11 +42,29 @@ INSTALLS_SHLIB= yes
LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3
.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
-
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64" || ${ARCH} == "amd64"
CFLAGS+= -fPIC
.endif
+WV2_CONFIG= ${LOCALBASE}/bin/wv2-config
+
+.if exists(${WV2_CONFIG})
+WITH_WV2?= yes
+.endif # exists(${WV2_CONFIG})
+
+.if defined(WITH_WV2)
+LIB_DEPENDS+= wv2:${PORTSDIR}/textproc/wv2
+PLIST_APPEND+= plist.wv2
+.else
+pre-everything::
+ @${ECHO_MSG}
+ @${ECHO_MSG} "============================================================"
+ @${ECHO_MSG} "If you want to compile with support for MS Word/Excel,"
+ @${ECHO_MSG} "documents, hit Ctrl-C right now and use \"make WITH_WV2=yes\""
+ @${ECHO_MSG} "============================================================"
+ @${ECHO_MSG}
+.endif # defined(WITH_WV2)
+
.include <bsd.port.post.mk>