From owner-svn-ports-all@FreeBSD.ORG Sun Oct 7 04:39:13 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3621D1065670; Sun, 7 Oct 2012 04:39:13 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 164148FC17; Sun, 7 Oct 2012 04:39:13 +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 q974dCxn018170; Sun, 7 Oct 2012 04:39:12 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q974dCfr018168; Sun, 7 Oct 2012 04:39:12 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201210070439.q974dCfr018168@svn.freebsd.org> From: Eitan Adler Date: Sun, 7 Oct 2012 04:39:12 +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: r305428 - head/x11-toolkits/tk86 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: Sun, 07 Oct 2012 04:39:13 -0000 Author: eadler Date: Sun Oct 7 04:39:12 2012 New Revision: 305428 URL: http://svn.freebsd.org/changeset/ports/305428 Log: Convert to OptionsNG PR: ports/172432 Submitted by: Michael Gmelin Modified: head/x11-toolkits/tk86/Makefile Modified: head/x11-toolkits/tk86/Makefile ============================================================================== --- head/x11-toolkits/tk86/Makefile Sun Oct 7 04:34:42 2012 (r305427) +++ head/x11-toolkits/tk86/Makefile Sun Oct 7 04:39:12 2012 (r305428) @@ -1,9 +1,5 @@ -# New ports collection makefile for: tk -# Date created: 17 January 2007 -# Whom: Martin Matuska -# +# Created by: Martin Matuska # $FreeBSD$ -# PORTNAME= tk PORTVERSION= 8.6.b.2 @@ -37,9 +33,10 @@ SUB_FILES= pkgIndex.tcl .if !defined(BUILDING_TK_THREADS) USE_TCL= ${SHORT_TK_VER} -OPTIONS= TK86_MAN "Install tk 8.6 function manpages" off \ - XFT "Use Xft fonts" on \ - DEMOS "Install demos" off +OPTIONS_DEFINE= DEMOS TK86_MAN XFT +OPTIONS_DEFAULT=XFT +TK86_MAN_DESC= Install tk 8.6 function manpages +DEMOS_DESC= Install demos .else USE_TK= ${SHORT_TK_VER} PLIST= ${PKGDIR}/pkg-plist.threads @@ -50,11 +47,11 @@ LIB_DEPENDS= tcl${SHORT_TK_VER}${THREADS SUB_LIST+= THREADS_SUFFIX="${THREADS_SUFFIX}" \ TCLPATCHLEVEL="8.6b1" -.include +.include DATADIR= ${PREFIX}/share/${PORTNAME}${TCL_VER} -.if !defined(WITHOUT_XFT) +.if ${PORT_OPTIONS:MXFT} CONFIGURE_ARGS+= --enable-xft LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft .else @@ -77,14 +74,14 @@ CONFIGURE_ARGS+= --disable-threads --wit SUB_LIST+= TK_PROVIDE="" -.if defined(WITH_DEMOS) +.if ${PORT_OPTIONS:MDEMOS} INSTALL_TARGET+= install install-demos PLIST_SUB+= DEMOS="" .else PLIST_SUB+= DEMOS="@comment " .endif -.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TK86_MAN) +.if !defined(NO_INSTALL_MANPAGES) && ${PORT_OPTIONS:MTK86_MAN} MAN3= 3DBorder.3 AddOption.3 BindTable.3 CanvPsY.3 CanvTkwin.3 \ CanvTxtInfo.3 Clipboard.3 ClrSelect.3 ConfigWidg.3 ConfigWind.3 \ @@ -401,7 +398,7 @@ MLINKS= 3DBorder.3 Tk_Alloc3DBorderFromO text.n tk_textCut.n \ text.n tk_textPaste.n -.endif #!defined(NO_INSTALL_MANPAGES) && !defined(WITH_TK86_MAN) +.endif #!defined(NO_INSTALL_MANPAGES) && !${PORT_OPTIONS:MTK86_MAN} .endif # defined(BUILDING_TK_THREADS) @@ -454,13 +451,13 @@ post-install: .if !defined(NO_INSTALL_MANPAGES) ${MKDIR} ${MANPREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/../doc/wish.1 ${MANPREFIX}/man/man1/wish${TCL_VER}${THREADS_SUFFIX}.1 -.if !defined(BUILDING_TK_THREADS) && defined(WITH_TK86_MAN) +.if !defined(BUILDING_TK_THREADS) && ${PORT_OPTIONS:MTK86_MAN} . for mp in ${MAN3} ${MANN} @${REINPLACE_CMD} -e 's|^.so man.macros|.so ${DATADIR}/man.macros|' \ ${WRKSRC}/../doc/${mp} . endfor @cd ${WRKSRC} && ${MAKE} -f Makefile install-doc ${MAKE_ENV} -.endif # !defined(BUILDING_TK_THREADS) && defined(WITH_TK86_MAN) +.endif # !defined(BUILDING_TK_THREADS) && ${PORT_OPTIONS:MTK86_MAN} .endif # !defined(NO_INSTALL_MANPAGES) @@ -469,4 +466,4 @@ regression-test: build ${ECHO_CMD} "package require Tk" | tclsh${TK_VER} ${ECHO_CMD} "load libtk${SHORT_TK_VER}.so" | tclsh${TK_VER} -.include +.include