svn commit: r340026 - head/net-im/libpurple

Baptiste Daroussin bapt at FreeBSD.org
Fri Jan 17 12:54:29 UTC 2014


On Fri, Jan 17, 2014 at 01:45:21PM +0100, Pietro Cerutti wrote:
> On 2014-Jan-17, 11:47, Mathieu Arnold wrote:
> > +--On 17 janvier 2014 10:33:09 +0000 Pietro Cerutti <gahr at FreeBSD.org>
> > wrote:
> > |  .if ${PORT_OPTIONS:MTCLTK}
> > | -USE_TK=			yes
> > | -CFLAGS+=		-I${LOCALBASE}/include/tk${TK_VER}
> > | -I${LOCALBASE}/include/tcl${TCL_VER} -CONFIGURE_ARGS+=
> > | 	--with-tclconfig=${LOCALBASE}/lib/tcl${TCL_VER} \ -
> > | 	--with-tkconfig=${LOCALBASE}/lib/tk${TK_VER}
> > | +USES+=			tk
> > | +CFLAGS+=		-I${TK_INCLUDEDIR} -I${TCL_INCLUDEDIR}
> > | +CONFIGURE_ARGS+=	--with-tclconfig=${TCL_LIBDIR} \
> > | +			--with-tkconfig=${TK_LIBDIR}
> > 
> > Which is way better written as :
> > 
> > TCLTK_USES=             tk
> > TCLTK_CFLAGS=		-I${TK_INCLUDEDIR} -I${TCL_INCLUDEDIR}
> > TCLTK_CONFIGURE_ON=	--with-tclconfig=${TCL_LIBDIR} \
> > 			--with-tkconfig=${TK_LIBDIR}
> 
> Nice framework. But given that I have to enclose stuff in
> .if ${PORT_OPTIONS:MTCLTK} 
> anyway because of PLIST_SUB and CONFIGURE_ARGS, what's the benefit?
> 
No you don't
CONFIGURE_ARGS is TCLTK_CONFIGURE_*
PLIST_SUB  can be replaced by OPTIONS_SUB (which will create all the need
@comment

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/20140117/517abde1/attachment.sig>


More information about the svn-ports-all mailing list