aboutsummaryrefslogtreecommitdiffstats
path: root/news/pan2
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-04-12 05:03:37 +0800
committermarcus <marcus@FreeBSD.org>2004-04-12 05:03:37 +0800
commit730818e5d539951a83065ea16ee82961980f4680 (patch)
treec96d34ebd7a108a210d5b7545836e9385ece8f8d /news/pan2
parent4687953c0ea8455246505dab1f54b41694629afd (diff)
downloadfreebsd-ports-graphics-730818e5d539951a83065ea16ee82961980f4680.tar.gz
freebsd-ports-graphics-730818e5d539951a83065ea16ee82961980f4680.tar.zst
freebsd-ports-graphics-730818e5d539951a83065ea16ee82961980f4680.zip
Make gtkspell support optional (defaults to on), and add OPTIONS support.
Based on patch by: Herbert J. Skuhra <herbert.skuhra@gmx.at>
Diffstat (limited to 'news/pan2')
-rw-r--r--news/pan2/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/news/pan2/Makefile b/news/pan2/Makefile
index 65b8c22e1ec..548dc2856e3 100644
--- a/news/pan2/Makefile
+++ b/news/pan2/Makefile
@@ -17,8 +17,7 @@ DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= Threaded GNOME 2 newsreader based on Agent for Windows
-LIB_DEPENDS= gtkspell.0:${PORTSDIR}/textproc/gtkspell2 \
- gnet-2.0.0:${PORTSDIR}/net/gnet2
+LIB_DEPENDS= gnet-2.0.0:${PORTSDIR}/net/gnet2
USE_BZIP2= yes
USE_X_PREFIX= yes
@@ -28,4 +27,14 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LIBS="-L${LOCALBASE}/lib -lgnuregex -lcompat"
-.include <bsd.port.mk>
+OPTIONS= GTKSPELL "Enable spell checking support" on
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITHOUT_GTKSPELL)
+CONFIGURE_ARGS+= --disable-gtkspell
+.else
+LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell2
+.endif
+
+.include <bsd.port.post.mk>