Porting github code to FreeBSD [configure]

Romain Tartière romain at FreeBSD.org
Sun Oct 15 11:30:23 UTC 2017


On Sun, Oct 15, 2017 at 07:23:49PM +0800, blubee blubeeme wrote:
> trigger happy missed sending the error:
> 
> format=`echo tmp/tag.hpp | sed 's|.*\.\([^.]*\)$|\1|'`; \
> sed -n \
>     -e "/^<!--/s/\.xml ::/.$format --/" \
>     -e '/^<!--/,/-->/{ /-->/d; s|^$|//|p; s|^....|//|p; }' lib/tag.xml >
> tmp/tag.hpp; \
> xsltproc --stringparam format $format ./lib/tag.xsl lib/tag.xml >>
> tmp/tag.hpp
> format=`echo lib/tag.cpp | sed 's|.*\.\([^.]*\)$|\1|'`; \
> sed -n \
>     -e "/^<!--/s/\.xml ::/.$format --/" \
>     -e '/^<!--/,/-->/{ /-->/d; s|^$|//|p; s|^....|//|p; }' lib/tag.xml >
> lib/tag.cpp; \
> xsltproc --stringparam format $format ./lib/tag.xsl lib/tag.xml >>
> lib/tag.cpp
> sed -i 's/SEC_N_("%1%")/"%1%"/' tmp/tag.hpp
> sed -i 's/SEC_N_("%1%")/"%1%"/' lib/tag.cpp
> sed: 1: "tmp/tag.hpp": invalid command code u
> sed: 1: "lib/tag.cpp": extra characters at the end of l command
> 
> You can see the FreeBSD version of sed failing on the commands, If I
> remember correctly this requires gnu sed to work properly.
> 
> How can I set that in my Makefile?

The easiest way could be BINARY_ALIAS introducted a few days ago:
https://svnweb.freebsd.org/ports?view=revision&revision=451772

-- 
Romain Tartière <romain at FreeBSD.org>  http://people.FreeBSD.org/~romain/
pgp: 8234 9A78 E7C0 B807 0B59  80FF BA4D 1D95 5112 336F (ID: 0x5112336F)
(plain text =non-HTML= PGP/GPG encrypted/signed e-mail much appreciated)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20171015/8b5569b2/attachment.sig>


More information about the freebsd-ports mailing list