From owner-freebsd-ports Sat Jun 15 12:11:13 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D86DA37B415 for ; Sat, 15 Jun 2002 12:10:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5FJA1n55419; Sat, 15 Jun 2002 12:10:01 -0700 (PDT) (envelope-from gnats) Received: from zircon.seattle.wa.us (sense-sea-CovadSub-0-80.oz.net [216.39.147.80]) by hub.freebsd.org (Postfix) with SMTP id CE7B837B41C for ; Sat, 15 Jun 2002 12:01:27 -0700 (PDT) Received: (qmail 597 invoked by uid 1001); 15 Jun 2002 19:01:27 -0000 Message-Id: <20020615190127.596.qmail@zircon.seattle.wa.us> Date: 15 Jun 2002 19:01:27 -0000 From: Joe Kelsey Reply-To: Joe Kelsey To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/39342: Add automatic truetype support to Mozilla build Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 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