svn commit: r307633 - head/x11/xkbset

Stephen Montgomery-Smith stephen at FreeBSD.org
Thu Nov 22 03:25:09 UTC 2012


Author: stephen
Date: Thu Nov 22 03:25:08 2012
New Revision: 307633
URL: http://svnweb.freebsd.org/changeset/ports/307633

Log:
  - Use new options framework.
  
  Feature safe:	yes

Modified:
  head/x11/xkbset/Makefile

Modified: head/x11/xkbset/Makefile
==============================================================================
--- head/x11/xkbset/Makefile	Thu Nov 22 02:13:14 2012	(r307632)
+++ head/x11/xkbset/Makefile	Thu Nov 22 03:25:08 2012	(r307633)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	xkbset
-# Date created:		12 May 2001
-# Whom:			Stephen Montgomery-Smith <stephen at math.missouri.edu>
-#
+# Created by: Stephen Montgomery-Smith <stephen at math.missouri.edu>
 # $FreeBSD$
-#
 
 PORTNAME=	xkbset
 PORTVERSION=	0.5
@@ -22,11 +18,12 @@ MAKE_ARGS=	X11BASE="${LOCALBASE}" X11PRE
 		INSTALL_DATA="${INSTALL_DATA}" \
 		INSTALL_PROGRAM="${INSTALL_PROGRAM}"
 
-OPTIONS=	GUI "Install Tk GUI" off
+OPTIONS_DEFINE=	GUI
+GUI_DESC=	Install Tk GUI
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if defined(WITH_GUI)
+.if ${PORT_OPTIONS:MGUI}
 RUN_DEPENDS+=	p5-Tk>=0:${PORTSDIR}/x11-toolkits/p5-Tk
 PLIST_SUB=	GUI=""
 MAKE_ARGS+=	INSTALL_SCRIPT="${INSTALL_SCRIPT}"
@@ -38,4 +35,4 @@ MAKE_ARGS+=	INSTALL_SCRIPT=:
 post-build:
 	@${REINPLACE_CMD} "s%#!/usr/bin/perl%#!${PERL}%" ${WRKSRC}/xkbset-gui
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


More information about the svn-ports-head mailing list