--- Makefile.orig 2012-10-21 00:39:06.000000000 +0200 +++ Makefile 2012-10-21 00:39:38.000000000 +0200 @@ -2,6 +2,7 @@ PORTNAME= xterm PORTVERSION= 284 +PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= ftp://invisible-island.net/xterm/ \ CRITICAL @@ -17,18 +18,19 @@ GNU_CONFIGURE= yes CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib" -CONFIGURE_ARGS+= --with-utempter --enable-narrowproto --enable-256-color +CONFIGURE_ARGS+= --with-utempter --enable-narrowproto CPPFLAGS+= -I${LOCALBASE}/include -OPTIONS_DEFINE= WCHAR LUIT DECTERM PCRE GNOME DABBREV +OPTIONS_DEFINE= WCHAR LUIT DECTERM PCRE GNOME DABBREV 256COLOR DABBREV_DESC= Enable support for dabbrev-expand DECTERM_DESC= Enable DECterm Locator support LUIT_DESC= Use LUIT for locale convertion from/to UTF-8 WCHAR_DESC= Enable wide-character support +256COLOR_DESC= Enable 256-color support -OPTIONS_DEFAULT=WCHAR LUIT +OPTIONS_DEFAULT=WCHAR LUIT 256COLOR .include @@ -54,6 +56,10 @@ CONFIGURE_ARGS+= --enable-dabbrev .endif +.if ${PORT_OPTIONS:M256COLOR} +CONFIGURE_ARGS+= --enable-256-color +.endif + .if ${PORT_OPTIONS:MGNOME} USE_GNOME= desktopfileutils PLIST_SUB+= GNOME=""