ports/59254: ports that write something after bsd.port.mk

Sergei Kolobov sergei at FreeBSD.org
Mon Dec 1 07:20:57 PST 2003


On 2003-11-16 at 00:37 +0100, Oliver Eikemeier wrote:
> How about doing something like
> cd ${CONFIGURE_WRKSRC} && ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} --version 
> | sed -ne 's/.*autoconf version \([0-9.]*\).*/\1/p'

I took slightly different approach:

CONFIGURE_VERSION!= ${AWK} '/Generated by GNU Autoconf/ {print $$6;}' \
                    ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
.if ${CONFIGURE_VERSION} == "2.13" 
CONFIGURE_TARGET?= ${MACHINE_ARCH}-portbld-freebsd${OSREL}
else
CONFIGURE_TARGET?= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.endif

Now, equivalent of this should be included in do-configure target, 
but I have difficult time figuring out how to rewrite it 
so it would do the awk call, etc.  only at the do-configure time, 
but not every time bsd.port.mk is sourced. 
Anyone?

Sergei
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20031201/c82a456b/attachment.bin


More information about the freebsd-ports mailing list