From 9256f627177ddee2fc4f26a5d4fca693905f5fe7 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Thu, 31 Aug 2006 19:48:38 +0000 Subject: - Add option to build XCurses version PR: ports/101529 Submitted by: User1001 --- editors/the/Makefile | 26 +++++++++++++++++++++++++- editors/the/pkg-plist | 3 ++- 2 files changed, 27 insertions(+), 2 deletions(-) (limited to 'editors') 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 + +.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 +.include 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 -- cgit v1.2.3