Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2002 11:08:41 -0700
From:      Joe Kelsey <joek@mail.flyingcroc.net>
To:        Maxim Sobolev <sobomax@FreeBSD.org>
Cc:        Joe Kelsey <joek@mail.flyingcroc.net>, freebsd-ports@FreeBSD.org
Subject:   Re: Mozilla and TrueType
Message-ID:  <3CE3F5A9.2090809@flyingcroc.net>
References:  <3CE29AEF.6090807@flyingcroc.net> <3CE2A40D.50DB6E61@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------050609080904090403020502
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: 7bit

Maxim Sobolev wrote:

>I do not see any problems if you would supply a working patch for
>doing that.
>
I'll try it again with attachments, since Mozilla mail corrupts tabs...

/Joe


--------------050609080904090403020502
Content-Type: text/plain;
 name="Makefile.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Makefile.diff"

--- Makefile.orig	Tue May 14 20:57:17 2002
+++ Makefile	Thu May 16 09:37:13 2002
@@ -85,6 +85,18 @@
 BROKEN="You must upgrade your freetype port to 1.3.1_2 or higher before installing Mozilla.  If you have 1.3.1_2 installed, please remove ${LOCALBASE}/include/freetype, then build Mozilla"
 .endif
 
+# x11-servers/xfstt creates this directory...
+.if exists($(PREFIX)/lib/X11/fonts/TrueType)
+WITH_TRUETYPE_DIR=$(PREFIX)/lib/X11/fonts/TrueType
+.endif
+
+pre-everything:
+.if !defined(WITH_TRUETYPE_DIR)
+	@$(ECHO_MSG) "You can enable TrueType font support by defining"
+	@$(ECHO_MSG) "WITH_TRUETYPE_DIR=/usr/X11R6/lib/X11/fonts/TrueType"
+	@$(ECHO_MSG) "(or whereever your TrueType fonts are)."
+.endif
+
 post-build:
 	${SED} -e "s;@PREFIX@;${PREFIX};g" \
 		${FILESDIR}/mozilla.sh >${WRKSRC}/mozilla
@@ -104,5 +116,10 @@
 	${INSTALL_SCRIPT} ${WRKSRC}/mozilla ${PREFIX}/bin
 	${LN} -sf ${LOCALBASE}/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so \
 		${PREFIX}/lib/mozilla/plugins/libjavaplugin_oji.so
+
+post-install:
+.if defined(WITH_TRUETYPE_DIR)
+	sh files/sed-freetype.sh
+.endif
 
 .include <bsd.port.post.mk>

--------------050609080904090403020502
Content-Type: text/plain;
 name="sed-freetype.sh"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="sed-freetype.sh"

#!/bin/sh
if [ x$WITH_TRUETYPE_DIR != x ]; then
    UNIX_JS=$PREFIX/lib/mozilla/defaults/pref/unix.js
    mv $UNIX_JS $UNIX_JS.orig
    sed -e '/font.FreeType2.enable/s/false/true/' \
	-e "/font.directory.truetype.1/{
s;^//;;
s;/u/sam/tt_font;$WITH_TRUETYPE_DIR;
}" <$UNIX_JS.orig >$UNIX_JS
fi

--------------050609080904090403020502--


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?3CE3F5A9.2090809>