Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Oct 2012 04:31:14 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305426 - head/devel/binutils
Message-ID:  <201210070431.q974VEtl016700@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sun Oct  7 04:31:13 2012
New Revision: 305426
URL: http://svn.freebsd.org/changeset/ports/305426

Log:
  Convert to OptionsNG
  
  PR:		ports/172422
  Submitted by:	Michael Gmelin <freebsd@grem.de>

Modified:
  head/devel/binutils/Makefile

Modified: head/devel/binutils/Makefile
==============================================================================
--- head/devel/binutils/Makefile	Sun Oct  7 03:55:19 2012	(r305425)
+++ head/devel/binutils/Makefile	Sun Oct  7 04:31:13 2012	(r305426)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	binutils
-# Date created:		9 July 2009
-# Whom:			Martin Matuska <mm@FreeBSD.org>
-#
+# Created by: Martin Matuska <mm@FreeBSD.org>
 # $FreeBSD$
-#
 
 PORTNAME=	binutils
 PORTVERSION=	2.22
@@ -23,7 +19,7 @@ BUILD_DEPENDS=	${LOCALBASE}/lib/libgmp.s
 
 CONFLICTS=	libbfd-[0-9]*
 
-OPTIONS=	NLS "Enable National Language Support" off
+OPTIONS_DEFINE=	NLS
 
 LICENSE_FILE_GPLv3=	${WRKSRC}/COPYING3
 LICENSE_FILE_LGPL3=	${WRKSRC}/COPYING3.LIB
@@ -69,7 +65,7 @@ INFO=		as \
 		configure \
 		ld
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 # Actual earliest version may differ slightly
 .if ${OSVERSION} >= 900044
@@ -79,7 +75,7 @@ PLIST_SUB+=	GOLD=""
 PLIST_SUB+=	GOLD="@comment "
 .endif
 
-.if defined(WITH_NLS)
+.if ${PORT_OPTIONS:MNLS}
 USE_GETTEXT=	yes
 PLIST_SUB+=	NLS=""
 .else
@@ -100,4 +96,4 @@ post-install:
 	@${FIND} -ds ${PREFIX}/${CONFIGURE_TARGET} -type d | \
 		${SED} -e 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210070431.q974VEtl016700>