Date: 15 Jun 2002 19:01:27 -0000 From: Joe Kelsey <joe@zircon.seattle.wa.us> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/39342: Add automatic truetype support to Mozilla build Message-ID: <20020615190127.596.qmail@zircon.seattle.wa.us>
next in thread | raw e-mail | index | archive | help
>Number: 39342 >Category: ports >Synopsis: Add automatic truetype support to Mozilla build >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jun 15 12:10:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Joe Kelsey >Release: FreeBSD 4.6-RC i386 >Organization: >Environment: System: FreeBSD zircon.zircon.seattle.wa.us 4.6-RC FreeBSD 4.6-RC #34: Fri Jun 7 16:34:04 PDT 2002 root@zircon.zircon.seattle.wa.us:/usr/obj/usr/src/sys/ZIRCON i386 >Description: Add automatic setting of TrueType fonts to Mozilla build >How-To-Repeat: Mozilla build does not automatically set TrueType prefs in unix.js if truetype fonts are present on the system. Add a new Makefile parameter, WITH_TRUETYPE_FONTS=path to allow setting Truetype fonts during install step. path can be a single directory or a list of directories separated by :. >Fix: Modify Makefile to call files/truetype.sh if WITH_TRUETYPE_FONTS is set during install step. --- Makefile.old Thu Jun 6 18:07:59 2002 +++ Makefile Sat Jun 15 11:56:11 2002 @@ -120,5 +120,8 @@ ${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 +.if defined(WITH_TRUETYPE_FONTS) + files/truetype.sh +.endif .include <bsd.port.post.mk> files/truetype.sh: #!/bin/sh # Allow passing truetype font list as parameter or in # variable WITH_TRUETYPE_FONTS if [ -n "$1" ] then WITH_TRUETYPE_FONTS=$1 fi # If called from ports Makefile, PREFIX will be /usr/X11R6. # MOZILLA_FIVE_HOME may or may not be set. UNIXJS=${MOZILLA_FIVE_HOME:-${PREFIX:-/usr/X11R6}/lib/mozilla}/defaults/pref/unix.js # We just append new pref settings to unix.js. # Turn truetype fonts on echo 'pref("font.FreeType2.enable", true);' >> $UNIXJS # If WITH_TRUETYPE_FONTS contains a colon, do special loop ifsSave="$IFS" if [ $WITH_TRUETYPE_FONTS = *:* ] then n=1 IFS=: for i in $WITH_TRUETYPE_FONTS do IFS="$ifsSave" echo 'pref("font.directory.truetype.'$n'","'$i'");' >> $UNIXJS n=$(($n+1)) done IFS="$ifsSave" # Otherwise, single font directory. else echo 'pref("font.directory.truetype.1","'$WITH_TRUETYPE_FONTS'");' >> $UNIXJS fi >Release-Note: >Audit-Trail: >Unformatted: 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?20020615190127.596.qmail>