summaryrefslogtreecommitdiff
path: root/editors/koffice-kde4
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2004-04-04 06:59:01 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2004-04-04 06:59:01 +0000
commit3db468a2134248d2b8102e2ad1f4d0bd286f7288 (patch)
tree435366058e07c9ee81c41f6f44cdebcd74b50add /editors/koffice-kde4
parent- include dependecy to mathlib (diff)
Convert to OPTIONS.
Notes
Notes: svn path=/head/; revision=106098
Diffstat (limited to 'editors/koffice-kde4')
-rw-r--r--editors/koffice-kde4/Makefile20
1 files changed, 5 insertions, 15 deletions
diff --git a/editors/koffice-kde4/Makefile b/editors/koffice-kde4/Makefile
index b3170dd4562b..7de7d3d50fe8 100644
--- a/editors/koffice-kde4/Makefile
+++ b/editors/koffice-kde4/Makefile
@@ -41,26 +41,16 @@ GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3
+OPTIONS= WV2 "Build with Microsoft Word import filter" off
+
.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
.include <bsd.port.pre.mk>
-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)
+.elseif defined(WITHOUT_WV2)
+CONFIGURE_ARGS+=--without-libwv2
+.endif
.include <bsd.port.post.mk>