aboutsummaryrefslogtreecommitdiff
path: root/editors/tea
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2005-03-20 12:11:23 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2005-03-20 12:11:23 +0000
commit676e5a403cdd812908053c83043212d1be054661 (patch)
tree413e315387a6af5422e58c36b7cdfc3f0946ae51 /editors/tea
parent5642f6dd7e5786e7e1904e2696d18ec31158eb48 (diff)
Notes
Diffstat (limited to 'editors/tea')
-rw-r--r--editors/tea/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/editors/tea/Makefile b/editors/tea/Makefile
index 31f16ca2c687..4c500c5e31db 100644
--- a/editors/tea/Makefile
+++ b/editors/tea/Makefile
@@ -14,10 +14,6 @@ DISTNAME= ${PORTNAME}
MAINTAINER= jylefort@brutele.be
COMMENT= A simple and powerful GTK+ text editor
-.if defined(WITH_ASPELL)
-LIB_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell
-.endif
-
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_X_PREFIX= yes
@@ -29,13 +25,16 @@ USE_GNOME= gtk20
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-pre-everything::
-.if !defined(WITH_ASPELL)
- @${ECHO_MSG} "Define WITH_ASPELL to build with aspell support"
+OPTIONS= ASPELL "Build with GNU aspell support" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_ASPELL)
+LIB_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/tea/doc/|/doc/tea/|' \
${WRKSRC}/src/tea_defs.h
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>