Skip site navigation (1)Skip section navigation (2)
Date:      19 May 2002 23:08:40 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Reinier Post <rp@win.tue.nl>
Cc:        gnome@FreeBSD.ORG
Subject:   Re: libiconv-1.7 Makefile problem
Message-ID:  <1021864120.304.5.camel@gyros.marcuscom.com>
In-Reply-To: <20020519165448.A5426@win.tue.nl>
References:  <20020519165448.A5426@win.tue.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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 <bsd.port.mk>
-- 
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 <bsd.port.pre.mk>
+
+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 <bsd.port.mk>
+.include <bsd.port.post.mk>

--=-woIdLVlmRA9H/ISPCsc6--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1021864120.304.5.camel>