From 2515b7580d9f46ab7bdbdc7cb2abca21a1e6b21c Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Thu, 11 Oct 2007 16:58:36 +0000 Subject: [PATCH] Implement options. PR: 115888 Submitted by: original patch by Edwin Groothuis --- sysutils/screen/Makefile | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/sysutils/screen/Makefile b/sysutils/screen/Makefile index d6a3acb88007..b88302fabe25 100644 --- a/sysutils/screen/Makefile +++ b/sysutils/screen/Makefile @@ -17,19 +17,25 @@ MASTER_SITE_SUBDIR= screen MAINTAINER= cy@FreeBSD.org COMMENT= A multi-screen window manager +OPTIONS= CJK "Treat CJK ambiguous characters as full width" OFF \ + INFO "Build and install info documentation" ON \ + MAN "Build and install man pages" ON \ + NETHACK "Enable nethack-style messages" ON \ + XTERM_256 "Enable support for 256 colour xterm" OFF + GNU_CONFIGURE= yes -.if defined(NO_MAN) -MAKE_ARGS+= -DNO_MAN -.else +.if defined(WITH_MAN) MAN1= screen.1 -.endif -.if defined(NO_INFO) -MAKE_ARGS+= -DNO_INFO .else +MAKE_ARGS+= -DNO_MAN +.endif +.if defined(WITH_INFO) .if !exists(/usr/bin/install-info) RUN_DEPENDS+= install-info:${PORTSDIR}/print/texinfo .endif INFO= screen +.else +MAKE_ARGS+= -DNO_INFO .endif NO_PACKAGE= Tends to loop using 100% CPU when used from package - perhaps it hard-codes information about the build host @@ -48,7 +54,7 @@ CFLAGS+= -O0 CFLAGS+= -DCOLORS256 .endif -.if defined(WITHOUT_NETHACK) +.if !defined(WITH_NETHACK) CFLAGS+= -DNONETHACK .endif