From owner-freebsd-gnome Sun May 19 20: 9:11 2002 Delivered-To: freebsd-gnome@freebsd.org Received: from gyros.marcuscom.com (rdu57-17-158.nc.rr.com [66.57.17.158]) by hub.freebsd.org (Postfix) with ESMTP id 58A6137B406 for ; Sun, 19 May 2002 20:09:07 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by gyros.marcuscom.com (8.12.3/8.12.3) with ESMTP id g4K38e0f000785; Sun, 19 May 2002 23:08:40 -0400 (EDT) (envelope-from marcus@marcuscom.com) Subject: Re: libiconv-1.7 Makefile problem From: Joe Marcus Clarke To: Reinier Post Cc: gnome@FreeBSD.ORG In-Reply-To: <20020519165448.A5426@win.tue.nl> References: <20020519165448.A5426@win.tue.nl> Content-Type: multipart/mixed; boundary="=-woIdLVlmRA9H/ISPCsc6" X-Mailer: Ximian Evolution 1.0.5 Date: 19 May 2002 23:08:40 -0400 Message-Id: <1021864120.304.5.camel@gyros.marcuscom.com> Mime-Version: 1.0 Sender: owner-freebsd-gnome@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-woIdLVlmRA9H/ISPCsc6 Content-Type: text/plain Content-Transfer-Encoding: 7bit On Sun, 2002-05-19 at 10:54, Reinier Post wrote: > Hi, > > Trying to compile the GNU gettext port on my FreeBSD 4.2-RELEASE system, > I encountered a problem in libiconv: it calls /usr/bin/gperf with -L, > but my /usr/bin/gperf doesn't support that option. /usr/local/bin/gperf, > from the gperf port, does support the option. > > Attached is what I did to fix it; there should probably be something > that tries both. > > I haven't checked if this has been reported before. Thanks for the report. Can you try this patch, and let me know if it works for you? Joe > > Thanks for the port, > > -- > Reinier Post > ---- > > --- Makefile.orig Thu May 2 04:13:52 2002 > +++ Makefile Sun May 19 16:22:43 2002 > @@ -24,6 +24,6 @@ > MAN3= iconv.3 iconv_open.3 iconv_close.3 > > pre-build: > - @cd ${WRKSRC} ; /usr/bin/gperf -t -L ANSI-C -H aliases_hash -N aliases_lookup -7 -C -k '1,3-11,$$' -i 1 lib/aliases.gperf > lib/aliases.h > + @cd ${WRKSRC} ; /usr/local/bin/gperf -t -L ANSI-C -H aliases_hash -N aliases_lookup -7 -C -k '1,3-11,$$' -i 1 lib/aliases.gperf > lib/aliases.h > > .include -- PGP Key: http://www.marcuscom.com/pgp.asc --=-woIdLVlmRA9H/ISPCsc6 Content-Disposition: attachment; filename=libiconv.diff Content-Transfer-Encoding: quoted-printable Content-Type: text/x-patch; name=libiconv.diff; charset=ISO8859-1 diff -ruN libiconv.orig/Makefile libiconv/Makefile --- converters/libiconv.orig/Makefile Sun May 19 23:07:38 2002 +++ converters/libiconv/Makefile Sun May 19 23:05:27 2002 @@ -15,6 +15,14 @@ =20 MAINTAINER=3D gnome@FreeBSD.org =20 +.include + +GPERF=3D /usr/bin/gperf +.if ${OSVERSION} < 430000 +BUILD_DEPENDS=3D ${LOCALBASE}/bin/gperf:${PORTSDIR}/devel/gperf +GPERF=3D ${LOCALBASE}/bin/gperf +.endif + USE_LIBTOOL=3D yes LIBTOOLFILES=3D configure libcharset/configure CONFIGURE_ARGS=3D --enable-static @@ -24,6 +32,6 @@ MAN3=3D iconv.3 iconv_open.3 iconv_close.3 =20 pre-build: - @cd ${WRKSRC} ; /usr/bin/gperf -t -L ANSI-C -H aliases_hash -N aliases_lo= okup -7 -C -k '1,3-11,$$' -i 1 lib/aliases.gperf > lib/aliases.h + @cd ${WRKSRC} ; ${GPERF} -t -L ANSI-C -H aliases_hash -N aliases_lookup -= 7 -C -k '1,3-11,$$' -i 1 lib/aliases.gperf > lib/aliases.h =20 -.include +.include --=-woIdLVlmRA9H/ISPCsc6-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-gnome" in the body of the message