svn commit: r323836 - in head/devel: . arm-eabi-binutils arm-eabi-binutils/files

Baptiste Daroussin bapt at FreeBSD.org
Mon Jul 29 06:09:27 UTC 2013


On Sun, Jul 28, 2013 at 08:52:30PM -0700, Tim Kientzle wrote:
> 
> On Jul 28, 2013, at 12:09 PM, Jason Helfman wrote:
> 
> > On Sun, Jul 28, 2013 at 9:45 AM, Tim Kientzle <kientzle at freebsd.org> wrote:
> > Author: kientzle (src committer)
> > Date: Sun Jul 28 16:45:22 2013
> > New Revision: 323836
> > URL: http://svnweb.freebsd.org/changeset/ports/323836
> > 
> > Log:
> >   Add arm-eabi-binutils cross-tools.
> > 
> >   Approved by:  db
> > 
> > Added: head/devel/arm-eabi-binutils/Makefile
> > ==============================================================================
> > --- /dev/null   00:00:00 1970   (empty, because file is newly added)
> > +++ head/devel/arm-eabi-binutils/Makefile       Sun Jul 28 16:45:22 2013        (r323836)
> > @@ -0,0 +1,47 @@
> > +# $FreeBSD$
> > +
> > +PORTNAME=      binutils
> > +PORTVERSION=   2.23.2
> > +CATEGORIES=    devel
> > +MASTER_SITES=  ${MASTER_SITE_SOURCEWARE}
> > +MASTER_SITE_SUBDIR=    binutils/releases
> > +PKGNAMEPREFIX= arm-eabi-
> > +
> > +MAINTAINER=    kientzle at gmail.com
> > +COMMENT=       GNU binutils for vanilla ARM cross-development
> > +
> > +.if !defined(WITHOUT_NLS)
> > +USE_GETTEXT=   yes
> > +PLIST_SUB+=    NLS=""
> > +.else
> > +CONFIGURE_ARGS+=       --disable-nls
> > +PLIST_SUB+=    NLS="@comment "
> > +.endif
> > +USE_BZIP2=     yes
> > +USE_GMAKE=     yes
> > +USES=          gettext
> > +GNU_CONFIGURE= yes
> > 
> > 
> > Is there any particular reason that bsd.port.options.mk wasn't included here?
> > 
> > USE_GETTEXT is deprecated, and should be using the USES framework to bring in the dependency. The only reason this dependency is working is that it is unconditionally brought in with the USES framework later in the Makefile.
> > 
> > To this affect, if NLS is disabled, it brings in gettext dependency. Can it be disabled?
> > 
> > USE_GMAKE can be converted, as well, to the USES framework. (USES= gmake)
> > 
> > .include <bsd.port.options.mk>
> > 
> > .if ${PORT_OPTIONS:MNLS}
> > USES+= gettext
> > ...
> > .endif 
> 
> Jason,
> 
> Please take a look at this updated version and let me know if
> it addresses your concerns:
> 
> https://redports.org/browser/kientzle/devel/arm-eabi-binutils/Makefile
> 
> 

Can be simplified:
http://people.freebsd.org/~bapt/Makefile.txt

In this version I use the options help to reduce complexity (yes the options
helpers are not yet documented :()

OPTIONS_SUB will convert anything in OPTIONS_DEFINE into the PLIST_SUB
approriated.

NLS_USES will add to USES its content only if NLS is on
NLS_CONFIGURE_ENABLE will do the --enable/--disable configure args dancing.

CFLAGS are automatically appended to CONFIGURE_ENV so just define properly the
macro is enough.

regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20130729/bda1fcbd/attachment.sig>


More information about the svn-ports-all mailing list