From owner-svn-ports-all@FreeBSD.ORG Sat Sep 8 09:41:17 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19E421065672; Sat, 8 Sep 2012 09:41:17 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 04B768FC17; Sat, 8 Sep 2012 09:41:17 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q889fGSB060993; Sat, 8 Sep 2012 09:41:16 GMT (envelope-from ehaupt@svn.freebsd.org) Received: (from ehaupt@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q889fGnR060991; Sat, 8 Sep 2012 09:41:16 GMT (envelope-from ehaupt@svn.freebsd.org) Message-Id: <201209080941.q889fGnR060991@svn.freebsd.org> From: Emanuel Haupt Date: Sat, 8 Sep 2012 09:41:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r303884 - head/x11/xterm X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Sep 2012 09:41:17 -0000 Author: ehaupt Date: Sat Sep 8 09:41:16 2012 New Revision: 303884 URL: http://svn.freebsd.org/changeset/ports/303884 Log: - Use OPTIONSng - As an ongoing effort to sanitize build options, build 256 color support by default and remove it as an option; this change comes with no price, no additional dependencies - Bump PORTREVISION due to the above mentioned default options change - Remove deprecated header information Modified: head/x11/xterm/Makefile Modified: head/x11/xterm/Makefile ============================================================================== --- head/x11/xterm/Makefile Sat Sep 8 09:33:14 2012 (r303883) +++ head/x11/xterm/Makefile Sat Sep 8 09:41:16 2012 (r303884) @@ -1,12 +1,8 @@ -# New ports collection makefile for: xterm -# Date created: 24.07.2004 -# Whom: krion -# # $FreeBSD$ -# PORTNAME= xterm PORTVERSION= 281 +PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= ftp://invisible-island.net/xterm/ \ CRITICAL @@ -20,52 +16,50 @@ CONFLICTS= x11iraf-[0-9]* USE_XORG= xaw xft WANT_GNOME= desktopfileutils GNU_CONFIGURE= yes -CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib" -CONFIGURE_ARGS+=--with-utempter --enable-narrowproto -OPTIONS= WIDE_CHARS "enable wide-character support" on \ - LUIT "use LUIT for locale convertion from/to UTF-8" on \ - 256_COLOR "enable 256-color support" off \ - DEC_LOCATOR "enable DECterm Locator support" off \ - PCRE "use PCRE for regular-expressions" off \ - GNOME "include gnome support for .desktop file" off \ - DABBREV "enable support for dabbrev-expand" off +CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib" +CONFIGURE_ARGS+= --with-utempter --enable-narrowproto --enable-256-color CPPFLAGS+= -I${LOCALBASE}/include +OPTIONS_DEFINE= WCHAR LUIT DECTERM PCRE GNOME DABBREV + +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 + +OPTIONS_DEFAULT=WCHAR LUIT + .include -.if defined(WITH_LUIT) +.if ${PORT_OPTIONS:MLUIT} CONFIGURE_ARGS+= --enable-luit BUILD_DEPENDS= luit:${PORTSDIR}/x11/luit .endif -.if defined(WITH_WIDE_CHARS) +.if ${PORT_OPTIONS:MWCHAR} CONFIGURE_ARGS+= --enable-wide-chars .endif -.if defined(WITH_256_COLOR) -CONFIGURE_ARGS+= --enable-256-color -.endif - -.if defined(WITH_DEC_LOCATOR) +.if ${PORT_OPTIONS:MDECTERM} CONFIGURE_ARGS+= --enable-dec-locator .endif -.if defined(WITH_PCRE) +.if ${PORT_OPTIONS:MPCRE} CONFIGURE_ARGS+= --with-pcre -LIB_DEPENDS= pcre.1:${PORTSDIR}/devel/pcre +LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre .endif -.if defined(WITH_GNOME) -USE_GNOME= desktopfileutils -PLIST_SUB+= GNOME="" -.else -PLIST_SUB+= GNOME="@comment " +.if ${PORT_OPTIONS:MDABBREV} +CONFIGURE_ARGS+= --enable-dabbrev .endif -.if defined(WITH_DABBREV) -CONFIGURE_ARGS+= --enable-dabbrev +.if ${PORT_OPTIONS:MGNOME} +USE_GNOME= desktopfileutils +PLIST_SUB+= GNOME="" +.else +PLIST_SUB+= GNOME="@comment " .endif MAN1= resize.1 koi8rxterm.1 uxterm.1 xterm.1 @@ -73,7 +67,7 @@ MAN1= resize.1 koi8rxterm.1 uxterm.1 xt .include .if ${OSVERSION} < 900004 -LIB_DEPENDS+= utempter.0:${PORTSDIR}/sysutils/libutempter +LIB_DEPENDS+= utempter:${PORTSDIR}/sysutils/libutempter .endif post-install: @@ -82,11 +76,11 @@ post-install: .endfor @${MKDIR} ${PREFIX}/share/applications/ @${INSTALL_DATA} ${WRKSRC}/xterm.desktop ${PREFIX}/share/applications/ -.if defined(WITH_GNOME) +.if ${PORT_OPTIONS:MGNOME} @-update-desktop-database .endif -.if defined(WITH_WIDE_CHARS) +.if ${PORT_OPTIONS:MWCHAR} @${CAT} ${PKGMESSAGE} .endif