summaryrefslogtreecommitdiff
path: root/editors/the
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-08-31 19:48:38 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-08-31 19:48:38 +0000
commit9256f627177ddee2fc4f26a5d4fca693905f5fe7 (patch)
treec13aabe9b1db2e68f924d91b7a1c38fd97e72d58 /editors/the
parentBROKEN: Depends on incompatible versions of libnet (diff)
- Add option to build XCurses version
PR: ports/101529 Submitted by: User1001 <supraexpress@globaleyes.net>
Notes
Notes: svn path=/head/; revision=171756
Diffstat (limited to 'editors/the')
-rw-r--r--editors/the/Makefile26
-rw-r--r--editors/the/pkg-plist3
2 files changed, 27 insertions, 2 deletions
diff --git a/editors/the/Makefile b/editors/the/Makefile
index f9a2d2141a1a..aacdf0b9a3c9 100644
--- a/editors/the/Makefile
+++ b/editors/the/Makefile
@@ -27,6 +27,26 @@ ALL_TARGET= all html
MAN1= the.1
+OPTIONS= XAW3D "Enable Xaw3D" off \
+ XCURSES "Build XCurses (X11) version" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_XAW3D)
+CONFIGURE_ARGS+=--with-xaw3d
+LIB_DEPENDS+= Xaw3d.8:${PORTSDIR}/x11-toolkits/Xaw3d
+.endif
+
+.if defined(WITH_XCURSES)
+CONFIGURE_ARGS+=--with-xcurses \
+ --with-cursesincdir=${LOCALBASE}/include \
+ --with-curseslibdir=${LOCALBASE}/lib
+LIB_DEPENDS+= XCurses.2:${PORTSDIR}/devel/pdcurses
+PLIST_SUB= XCURSES="" NCURSES="@comment "
+.else
+PLIST_SUB= XCURSES="@comment " NCURSES=""
+.endif
+
.if defined(WITH_REXX_REGINA)
BUILD_DEPENDS+= regina:${PORTSDIR}/lang/rexx-regina
RUN_DEPENDS+= regina:${PORTSDIR}/lang/rexx-regina
@@ -38,10 +58,14 @@ CONFIGURE_ARGS+= --with-rexx=rexximc
.endif
post-install:
+.if defined(WITH_XCURSES)
+ @${LN} -sf xthe ${PREFIX}/bin/the
+.else
@${LN} -sf nthe ${PREFIX}/bin/the
+.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/THE
${INSTALL_DATA} ${WRKSRC}/*.html ${PREFIX}/share/doc/THE
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/editors/the/pkg-plist b/editors/the/pkg-plist
index 1c80f9570ca2..c815d6fb09ea 100644
--- a/editors/the/pkg-plist
+++ b/editors/the/pkg-plist
@@ -1,5 +1,6 @@
-bin/nthe
+%%NCURSES%%bin/nthe
bin/the
+%%XCURSES%%bin/xthe
share/THE/THE_Help.txt
share/THE/abf.tld
share/THE/append.the