From owner-freebsd-ports@freebsd.org Sun Oct 15 12:09:59 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B1C92E42107 for ; Sun, 15 Oct 2017 12:09:59 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-it0-x235.google.com (mail-it0-x235.google.com [IPv6:2607:f8b0:4001:c0b::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7FF8774DCB for ; Sun, 15 Oct 2017 12:09:59 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-it0-x235.google.com with SMTP id n195so16114078itg.0 for ; Sun, 15 Oct 2017 05:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=0oKIAbWxeFJc7vVLldvSNM7UL19IGBznbHXTAQ9iI1U=; b=j6h73Z+AiwQPLHQdXNnHrP1MCCC7IlbZU1LvJGNQIl8W/322EXjqeTkz+LREek08QH Ius5PkPLOm6aRIFs4BJGOmtEXXxXvHDsphBE0EkWBxB8Pbi9vI0j3VX80p4DqPcivg2L wUVpgunyzp8SFnOqHgQMitG7rYnwYRy6O5BMRHXr7qIKGnhRdXVa9ZCmAkM63PfwMA7y 5j7Ml1kuvx7lGEzpAE/n6a91WLgvtN0Dw1X4mF01UMyAuhzfqOGhFxpwDiY9ie/hxEJ2 cRUVRubnqsyQmSzMFalBl6DoPljBq8jt9cGVYNeC5mwbdIf0idWut9wY3Wp8SL3zXRFs mPAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=0oKIAbWxeFJc7vVLldvSNM7UL19IGBznbHXTAQ9iI1U=; b=QLAOPGyazFt+9mRLjlGM0ezkCHT7HkAkweSyb6XwyXU/YrOmZesjy92D0sn9g8GjsQ wGttJ9UAI6k+IDX9o5z1W8iYNZmw6AVGH+T04VTqLy0KWxxhqUqAAd+JVCZB7EV0gNGY CtGNwk1YGTe0Ra072E+MN+uBzmcWJYOo0RMavNxJHhpaYzeDgxqKHMR2AXB4i2PE2fJ7 FZUyC8JXE/6FUYC1uOWWtyGG/iI/v8TY8onEirJMg2s+isbD8Ew03d3+vHWq/mkZJn/X l7NL/xA0Xqv4HjJJr02aFEu+2aR/O4GT5rntna3uFarh8fcz2ovNFfeWcpvj4Xrj9jSI CuGA== X-Gm-Message-State: AMCzsaVO92Nk5eMg5muAghh57gY4qnsIOCOAzQMXvphIvmtYJ70MSgIF B/fHZNyDivsDrRmu2nbOKRKvzOFmkZ92mJNs6ww= X-Google-Smtp-Source: ABhQp+SrpHe/TEkP5//xhy7+FrO+o9l3io71UykjlX1/stN4TJwmIa7MwE1VeahT7kCg0s6fMvS/8DceoKWWW97+1qI= X-Received: by 10.36.64.19 with SMTP id n19mr8713486ita.119.1508069398679; Sun, 15 Oct 2017 05:09:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.8.66 with HTTP; Sun, 15 Oct 2017 05:09:58 -0700 (PDT) In-Reply-To: <20171015113021.GA8564@blogreen.org> References: <20171015113021.GA8564@blogreen.org> From: blubee blubeeme Date: Sun, 15 Oct 2017 20:09:58 +0800 Message-ID: Subject: Re: Porting github code to FreeBSD [configure] To: blubee blubeeme , FreeBSD Ports Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Oct 2017 12:09:59 -0000 Hey That was cool and solved the issue real fast! Thanks you On Sun, Oct 15, 2017 at 7:30 PM, Romain Tarti=C3=A8re = wrote: > On Sun, Oct 15, 2017 at 07:23:49PM +0800, blubee blubeeme wrote: > > trigger happy missed sending the error: > > > > format=3D`echo tmp/tag.hpp | sed 's|.*\.\([^.]*\)$|\1|'`; \ > > sed -n \ > > -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=3D`echo lib/tag.cpp | sed 's|.*\.\([^.]*\)$|\1|'`; \ > > sed -n \ > > -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=3Drevision&revision=3D451772 > > -- > Romain Tarti=C3=A8re http://people.FreeBSD.org/~rom= ain/ > pgp: 8234 9A78 E7C0 B807 0B59 80FF BA4D 1D95 5112 336F (ID: 0x5112336F) > (plain text =3Dnon-HTML=3D PGP/GPG encrypted/signed e-mail much appreciat= ed) >