Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2002 13:21:55 +0900
From:      MANTANI Nobutaka <nobutaka@nobutaka.com>
To:        ports@freebsd.org
Subject:   Re: Mozilla 0.9.9 won't build
Message-ID:  <86ofhtdrmk.wl@excalibur.nobutaka.com>
In-Reply-To: <1015973629.291.19.camel@ergo.dhs.org>
References:  <1015973629.291.19.camel@ergo.dhs.org>

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

At 12 Mar 2002 17:53:43 -0500,
Muhannad Asfour wrote:
> 
> I receive the following error when trying to build mozilla 0.9.9, any
> help would be greatly appreciated:
> 
> In file included from ../x11shared/nsAntiAliasedGlyph.h:9,
>                  from nsAntiAliasedGlyph.cpp:47:
> /usr/local/include/freetype2/freetype/ftglyph.h:104: syntax error before
> `;'
> [snip]

This error is caused by including header files of freetype-1.x and
freetype-2.x jumblingly.

Setting the include path ${LOCALBASE}/include/freetype2 prior to
${LOCALBASE}/include can avoid the error.

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/mozilla/Makefile,v
retrieving revision 1.83
diff -u -r1.83 Makefile
--- Makefile	12 Mar 2002 18:16:06 -0000	1.83
+++ Makefile	13 Mar 2002 04:06:42 -0000
@@ -72,6 +72,9 @@
 		MOZ_INTERNAL_LIBART_LGPL=1
 ALL_TARGET=	default
 
+post-patch:
+	${PERL} -pi -e "s,%%LOCALBASE%%,${LOCALBASE}," ${WRKSRC}/config/config.mk
+
 post-build:
 	${SED} -e "s;@PREFIX@;${PREFIX};g" \
 		${FILESDIR}/mozilla.sh >${WRKSRC}/mozilla
Index: files/patch-config::config.mk
===================================================================
RCS file: files/patch-config::config.mk
diff -N files/patch-config::config.mk
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-config::config.mk	13 Mar 2002 04:06:42 -0000
@@ -0,0 +1,11 @@
+--- config/config.mk.orig	Wed Mar 13 06:36:07 2002
++++ config/config.mk	Wed Mar 13 06:42:18 2002
+@@ -503,7 +503,7 @@
+ 
+ REQ_INCLUDES	= $(foreach d,$(REQUIRES),-I$(DIST)/include/$d)
+ 
+-INCLUDES	= $(LOCAL_INCLUDES) $(REQ_INCLUDES) -I$(PUBLIC) -I$(DIST)/include $(OS_INCLUDES)
++INCLUDES	= -I%%LOCALBASE%%/include/freetype2 $(LOCAL_INCLUDES) $(REQ_INCLUDES) -I$(PUBLIC) -I$(DIST)/include $(OS_INCLUDES)
+ 
+ LIBNT		= $(DIST)/lib/libnt.$(LIB_SUFFIX)
+ LIBAWT		= $(DIST)/lib/libawt.$(LIB_SUFFIX)


--
MANTANI Nobutaka
nobutaka@FreeBSD.org, nobutaka@nobutaka.com

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




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