Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Oct 2000 14:34:58 +0800 (CST)
From:      keith@freebsd.sinica.edu.tw
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/22341: New port: chinese/netscape47-communicator
Message-ID:  <200010270634.OAA04301@freebsd.sinica.edu.tw>

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

>Number:         22341
>Category:       ports
>Synopsis:       New port: chinese/netscape47-communicator
>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:   Thu Oct 26 23:40:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jing-Tang Keith Jang
>Release:        FreeBSD 4.0-20000406-STABLE i386
>Organization:
>Environment:

Tested under both 4-stable & 5-current, with many Taiwan users' help.

>Description:

A zh-L10N Netscape communicator with Big5-ized resources, such as Big5
menus, toolbars, messages, and help contents.

This port is the master port for all FreeBSD zh-L10N Netscape native
ports(not linux-netscape), including future GB-ized ones, if anybody
is interested. :-)

>How-To-Repeat:

Please commit, thanks.

>Fix:


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	netscape47-communicator
#	netscape47-communicator/files
#	netscape47-communicator/files/DEINSTALL.in
#	netscape47-communicator/files/INSTALL.in
#	netscape47-communicator/files/MESSAGE.in
#	netscape47-communicator/files/message.nolib
#	netscape47-communicator/files/patch-aa
#	netscape47-communicator/files/patch-ab
#	netscape47-communicator/files/start.sh.in
#	netscape47-communicator/pkg-comment
#	netscape47-communicator/pkg-descr
#	netscape47-communicator/pkg-plist
#	netscape47-communicator/distinfo
#	netscape47-communicator/Makefile
#
echo c - netscape47-communicator
mkdir -p netscape47-communicator > /dev/null 2>&1
echo c - netscape47-communicator/files
mkdir -p netscape47-communicator/files > /dev/null 2>&1
echo x - netscape47-communicator/files/DEINSTALL.in
sed 's/^X//' >netscape47-communicator/files/DEINSTALL.in << 'END-of-netscape47-communicator/files/DEINSTALL.in'
X#!/bin/sh
XCLASSDIR=@NDIR@/java/classes
XXLOCALEDIR=@X11BASE@/lib/X11/locale/zh_TW.Big5
X
Xif [ "$2" = "DEINSTALL" ]; then
X  exit 0;
Xfi
X
X#
X# Restore font.properties.zh_GB2312, font.properties.zh_TW_Big5
X# and XLC_LOCALE.
X#
Xif [ -f ${CLASSDIR}/font.properties.zh_GB2312.orig ]; then
X  mv -f ${CLASSDIR}/font.properties.zh_GB2312.orig ${CLASSDIR}/font.properties.zh_GB2312
Xfi
Xif [ -f ${CLASSDIR}/font.properties.zh_TW_Big5.orig ]; then
X  mv -f ${CLASSDIR}/font.properties.zh_TW_Big5.orig ${CLASSDIR}/font.properties.zh_TW_Big5
Xfi
Xif [ -f ${XLOCALEDIR}/XLC_LOCALE.orig ]; then
X  mv -f ${XLOCALEDIR}/XLC_LOCALE.orig ${XLOCALEDIR}/XLC_LOCALE
Xfi
X
END-of-netscape47-communicator/files/DEINSTALL.in
echo x - netscape47-communicator/files/INSTALL.in
sed 's/^X//' >netscape47-communicator/files/INSTALL.in << 'END-of-netscape47-communicator/files/INSTALL.in'
X#!/bin/sh
XCLASSDIR=@NDIR@/java/classes
XXLOCALEDIR=@X11BASE@/lib/X11/locale/zh_TW.Big5
X
Xif [ "$2" = "POST-INSTALL" ]; then
X  exit 0;
Xfi
X
X#
X# Backup font.properties.zh_GB2312, font.properties.zh_TW_Big5,
X# and XLC_LOCALE.
X#
Xif [ "$2" = "PRE-INSTALL" ]; then
X  cp -f ${CLASSDIR}/font.properties.zh_GB2312 ${CLASSDIR}/font.properties.zh_GB2312.orig
X  cp -f ${CLASSDIR}/font.properties.zh_TW_Big5 ${CLASSDIR}/font.properties.zh_TW_Big5.orig
X  cp -f ${XLOCALEDIR}/XLC_LOCALE ${XLOCALEDIR}/XLC_LOCALE.orig
Xfi
X
END-of-netscape47-communicator/files/INSTALL.in
echo x - netscape47-communicator/files/MESSAGE.in
sed 's/^X//' >netscape47-communicator/files/MESSAGE.in << 'END-of-netscape47-communicator/files/MESSAGE.in'
X--------------------------------------------------------------------
XCheck the following files if you want to modify some X resources to
Xsuit your personal settings, like a wheel mouse or XIM input styles:
X@NDIR@/@LOCALE@/Netscape.WheelMouse
X@NDIR@/@LOCALE@/Netscape
X
XIf your want to modify and redistriute this program, see
X@NDIR@/@LOCALE@/BDP_LICENSE.
X--------------------------------------------------------------------
END-of-netscape47-communicator/files/MESSAGE.in
echo x - netscape47-communicator/files/message.nolib
sed 's/^X//' >netscape47-communicator/files/message.nolib << 'END-of-netscape47-communicator/files/message.nolib'
X===
XYou couldn't build this port for lack of aout csu library files.
XYou could prepare them as:
X
X1. extract /usr/src/lib (distribution files: src/slib.??)
X2. cd /usr/src/lib/csu/i386
X3. make depend
X4. make OBJFORMAT=aout clean all install cleandir
X===
END-of-netscape47-communicator/files/message.nolib
echo x - netscape47-communicator/files/patch-aa
sed 's/^X//' >netscape47-communicator/files/patch-aa << 'END-of-netscape47-communicator/files/patch-aa'
X--- Imakefile.orig	Fri Jul  2 02:43:02 1999
X+++ Imakefile	Fri Jul  2 02:46:50 1999
X@@ -18,8 +18,9 @@
X #endif
X #endif
X 
X-        SUBDIRS = include config lib $(NLSSUBDIR) \
X-                  programs $(FONTSDIR) $(DOCSDIR)
X+#        SUBDIRS = include config lib $(NLSSUBDIR) \
X+#                  programs $(FONTSDIR) $(DOCSDIR)
X+        SUBDIRS = include config lib
X   LNINSTALLDIRS = lib
X 
X #if HasParallelMake
X
X--- Makefile.orig	Fri Jul  2 02:43:02 1999
X+++ Makefile	Fri Jul  2 02:46:50 1999
X@@ -64,7 +64,8 @@
X 	$(MAKE_CMD) $(MFLAGS) clean BOOTSTRAPSUBDIRS=
X 	$(MAKE_CMD) $(MFLAGS) includes
X 	$(MAKE_CMD) $(MFLAGS) depend
X-	$(MAKE_CMD) $(MFLAGS) $(WORLDOPTS) World
X+	if [ ! -d exports/lib ]; then mkdir exports/lib; fi
X+#	$(MAKE_CMD) $(MFLAGS) $(WORLDOPTS) World
X 	@echo ""
X 	@date
X 	@echo ""
END-of-netscape47-communicator/files/patch-aa
echo x - netscape47-communicator/files/patch-ab
sed 's/^X//' >netscape47-communicator/files/patch-ab << 'END-of-netscape47-communicator/files/patch-ab'
Xdiff -ur /usr/ports/x11/XFree86/work/xc/config/cf/FreeBSD.cf config/cf/FreeBSD.cf
X--- /usr/ports/x11/XFree86/work/xc/config/cf/FreeBSD.cf	Sun Nov  8 11:19:10 1998
X+++ config/cf/FreeBSD.cf	Tue Dec  8 10:10:06 1998
X@@ -282,7 +282,12 @@
X # define AsmDefines		AsmElfDefines
X #endif
X 
X+#ifdef i386Architecture
X #define ServerExtraDefines GccGasOption XFree86ServerDefines
X+#endif
X+#ifdef AlphaArchitecture
X+#define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64
X+#endif
X 
X #define StandardDefines	-DCSRG_BASED
X 
X@@ -314,7 +319,7 @@
X #ifdef i386Architecture
X # define OptimizedCDebugFlags DefaultGcc2i386Opt
X #else
X-# define OptimizedCDebugFlags -O2
X+# define OptimizedCDebugFlags -O
X #endif
X 
X #ifndef PreIncDir
X@@ -423,14 +428,18 @@
X #define DlLibrary		/**/
X #endif
X 
X+#ifdef AlphaArchitecture
X+#define IoLibrary		-lio
X+#else
X+#define IoLibrary		/**/
X+#endif
X+
X #if BuildDynamicLoading
X-#define ServerExtraSysLibs	DlLibrary
X+#define ServerExtraSysLibs	DlLibrary IoLibrary
X #else
X-#define ServerExtraSysLibs	/**/
X+#define ServerExtraSysLibs	IoLibrary
X #endif
X 
X #include <bsdLib.rules>
X 
X-#ifdef i386Architecture
X #include <xfree86.cf>
X-#endif
Xdiff -ur /usr/ports/x11/XFree86/work/xc/config/cf/Imake.cf config/cf/Imake.cf
X--- /usr/ports/x11/XFree86/work/xc/config/cf/Imake.cf	Fri Nov 13 14:10:12 1998
X+++ config/cf/Imake.cf	Tue Dec  8 10:05:49 1998
X@@ -160,6 +160,11 @@
X #  define i386Architecture
X #  undef i386
X # endif
X+# ifdef __alpha__
X+#  define AlphaBsdArchitecture
X+#  define AlphaArchitecture
X+#  undef __alpha__
X+# endif
X #endif /* __FreeBSD__ */
X 
X #ifdef AMOEBA
Xdiff -ur /usr/ports/x11/XFree86/work/xc/config/cf/xfree86.cf config/cf/xfree86.cf
X--- /usr/ports/x11/XFree86/work/xc/config/cf/xfree86.cf	Sun Nov  8 11:19:11 1998
X+++ config/cf/xfree86.cf	Tue Dec  8 10:05:55 1998
X@@ -853,7 +853,7 @@
X #endif
X 
X #ifndef XFree86ConsoleDefines
X-#ifdef i386BsdArchitecture
X+#if defined(i386BsdArchitecture) || defined(AlphaBsdArchitecture)
X #define XFree86ConsoleDefines	-DPCCONS_SUPPORT -DSYSCONS_SUPPORT -DPCVT_SUPPORT
X #else
X #define XFree86ConsoleDefines	/**/
END-of-netscape47-communicator/files/patch-ab
echo x - netscape47-communicator/files/start.sh.in
sed 's/^X//' >netscape47-communicator/files/start.sh.in << 'END-of-netscape47-communicator/files/start.sh.in'
X#!/bin/sh
Xif [ ! -d $HOME/.netscape ]; then
X	mkdir -m 700 $HOME/.netscape
X	cp @RDIR@/@LOCALE@/preferences.js $HOME/.netscape
X	chmod 644 $HOME/.netscape/preferences.js
Xfi
Xexport LANG=@LOCALE@
Xexport LC_ALL=${LANG}
Xexport LC_CTYPE=${LANG}
Xexport MOZILLA_HOME=@NDIR@
Xexport CLASSPATH=.:${MOZILLA_HOME}
Xexport NS_NETHELP_PATH=${MOZILLA_HOME}/${LANG}
Xexport XKEYSYMDB=@X11BASE@/lib/X11/XKeysymDB
Xexport XAPPLRESDIR=@RDIR@
Xexport XCMSDB=/dev/null
Xulimit -c 0
X
Xexport LD_PRELOAD; LD_PRELOAD=@LOCALBASE@/lib/aout/libxpg4-ns.so.2.0:@NDIR@/@LOCALE@/libX11-ns.so.6.1
X
Xexec ${MOZILLA_HOME}/@BROWSER_BIN@ "$@"
END-of-netscape47-communicator/files/start.sh.in
echo x - netscape47-communicator/pkg-comment
sed 's/^X//' >netscape47-communicator/pkg-comment << 'END-of-netscape47-communicator/pkg-comment'
XBig5 localized Netscape
END-of-netscape47-communicator/pkg-comment
echo x - netscape47-communicator/pkg-descr
sed 's/^X//' >netscape47-communicator/pkg-descr << 'END-of-netscape47-communicator/pkg-descr'
XThis port provides a Big5 localized Netscape, including menus,
Xtoolbars, error messages and many others. It also contains a
XlibX11 fix, which allows Netscape to show Big5 buttons in html
Xdocuments.
X
XThe patches are mainly contributed by thhsieh@linux.org.tw &
Xhcchu@r350.ee.ntu.edu.tw. The localized Netscape.Big5 is
Xtranslated by Antony Shen <u8618806@cc.nctu.edu.tw>, with some
Xmodifications.
X
XJing-Tang Keith Jang <keith@freebsd.sinica.edu.tw>
END-of-netscape47-communicator/pkg-descr
echo x - netscape47-communicator/pkg-plist
sed 's/^X//' >netscape47-communicator/pkg-plist << 'END-of-netscape47-communicator/pkg-plist'
Xbin/%%REGION%%-%%BROWSER%%-%%VER%%
X@exec ln -sf %f %B/netscape.run
X@unexec rm -f %B/netscape.run
X%%NSUBDIR%%/java/classes/font.properties.zh_GB2312
X%%NSUBDIR%%/java/classes/font.properties.zh_TW_Big5
X%%NSUBDIR%%/%%LOCALE%%/BDP_LICENSE
X%%NSUBDIR%%/%%LOCALE%%/Netscape
X%%NSUBDIR%%/%%LOCALE%%/Netscape.WheelMouse
X%%NSUBDIR%%/%%LOCALE%%/libX11-ns.so.6.1
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Back_dep.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Back_dis.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Back_sel.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Back_up.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Blank.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Button.js
X%%NSUBDIR%%/%%LOCALE%%/nethelp/CntData.js
X%%NSUBDIR%%/%%LOCALE%%/nethelp/CntTool.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/CntTool.js
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Exit_dep.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Exit_sel.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Exit_up.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Forw_dep.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Forw_dis.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Forw_sel.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Forw_up.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Header.js
X%%NSUBDIR%%/%%LOCALE%%/nethelp/IdxData.js
X%%NSUBDIR%%/%%LOCALE%%/nethelp/IdxFill.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/IdxKey.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/IdxTool.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/IdxTopic.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Local-1.js
X%%NSUBDIR%%/%%LOCALE%%/nethelp/NSHIfrm.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/NavUI.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/NoJSerr.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Prnt_dep.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Prnt_sel.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Prnt_up.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Stack.js
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Status.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/System.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/System.js
X%%NSUBDIR%%/%%LOCALE%%/nethelp/ToolUI.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Tool_dep.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Tool_sel.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Tool_up.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Topic.js
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Utility.js
X%%NSUBDIR%%/%%LOCALE%%/nethelp/Wait.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/collabra/coll.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/collabra/collHdr.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/collabra/collabra.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/collabra/discgrps.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/collabra/help.hpf
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/collabra/mailbox2.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/composer/comp.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/composer/compHdr.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/composer/composer.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/composer/comtlbr2.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/composer/fmtlbr3.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/composer/help.hpf
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/composer/tagicon2.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/home/help.hpf
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/home/home.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/home/home.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/home/homeHdr.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/messengr/abook.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/messengr/compbar.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/messengr/help.hpf
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/messengr/mailbox.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/messengr/mailbox2.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/messengr/mess.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/messengr/messHdr.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/messengr/messengr.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/messengr/mpctrl.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/messengr/newsgrp.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/messengr/tabs.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/navigatr/help.hpf
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/navigatr/nav.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/navigatr/navHdr.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/navigatr/navigatr.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/news/abook.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/news/collabra.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/news/compbar.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/news/discgrps.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/news/help.hpf
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/news/mailbox2.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/news/news.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/news/newsgrp.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/shared/NetHelpm.css
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/shared/NetHelpu.css
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/shared/NetHelpw.css
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/shared/admnIcon.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/shared/calIcon.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/shared/collIcon.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/shared/commIcon.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/shared/compIcon.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/shared/confIcon.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/shared/ibmIcon.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/shared/messIcon.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/shared/navIcon.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/shared/netIcon.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/trouble/help.hpf
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/trouble/trouble.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/netwatch.gif
X%%NSUBDIR%%/%%LOCALE%%/nethelp/picsfail.htm
X%%NSUBDIR%%/%%LOCALE%%/nethelp/picsfail.jar
X%%NSUBDIR%%/%%LOCALE%%/preferences.js
X@dirrm %%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/collabra
X@dirrm %%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/composer
X@dirrm %%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/home
X@dirrm %%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/messengr
X@dirrm %%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/navigatr
X@dirrm %%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/news
X@dirrm %%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/shared
X@dirrm %%NSUBDIR%%/%%LOCALE%%/nethelp/netscape/trouble
X@dirrm %%NSUBDIR%%/%%LOCALE%%/nethelp/netscape
X@dirrm %%NSUBDIR%%/%%LOCALE%%/nethelp
X@dirrm %%NSUBDIR%%/%%LOCALE%%
X@cwd %%X11BASE%%
Xlib/X11/locale/zh_TW.Big5/XLC_LOCALE
X@cwd /
Xusr/lib/X11/%%LOCALE%%/app-defaults/netscape.cfg
Xusr/lib/X11/%%LOCALE%%/app-defaults/netscape.jsc
X@unexec rmdir /usr/lib/X11/%%LOCALE%%/app-defaults 2>/dev/null || true
X@unexec rmdir /usr/lib/X11/%%LOCALE%% 2>/dev/null || true
X@unexec rmdir /usr/lib/X11 2>/dev/null || true
END-of-netscape47-communicator/pkg-plist
echo x - netscape47-communicator/distinfo
sed 's/^X//' >netscape47-communicator/distinfo << 'END-of-netscape47-communicator/distinfo'
XMD5 (xc/X336src-1.tgz) = bbfa360d10ce91ab37f24f197a31b485
XMD5 (xc/tw-nskit-4.75.tar.gz) = 22cec1862946c56bf67333a6c63b78c0
END-of-netscape47-communicator/distinfo
echo x - netscape47-communicator/Makefile
sed 's/^X//' >netscape47-communicator/Makefile << 'END-of-netscape47-communicator/Makefile'
X# New ports collection makefile for:	zh Big5/GB-ized Netscape
X# Date created:		11 Mar 2000
X# Whom:			Jing-Tang Keith Jang <keith@freebsd.sinica.edu.tw>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	${REGION}-netscape-${BROWSER_ARC}
XPORTVERSION=	${BROWSER_VERSION}
XCATEGORIES=	chinese www
XMASTER_SITES=	ftp://freebsd.sinica.edu.tw/pub/keith/ \
X		ftp://xfree86.cdrom.com/pub/XFree86/3.3.6/source/ \
X		${MASTER_SITE_XFREE}/${MASTER_SITE_SUBDIR}
XMASTER_SITE_SUBDIR=	3.3.6/source
XDISTFILES=	${X11SRC} ${NSKIT}
X
XMAINTAINER=	keith@freebsd.sinica.edu.tw
X
X# ?= is for ports that include this Makefile.
X# LIB_DEPENDS can't handle aout lib version in elf environment.
X# We need Arphic because there's no font with all sizes to deal with Java.
XRUN_DEPENDS?=	\
X		${LOCALBASE}/bin/${BROWSER_ARC}-${BROWSER_VERSION}:${PORTSDIR}/www/netscape${BROWSER_VER}-${BROWSER} \
X		${LOCALBASE}/lib/aout/libxpg4-ns.so.2.0:${PORTSDIR}/www/libxpg4-ns \
X		${X11BASE}/lib/X11/locale/zh_TW.Big5/XLC_LOCALE:${PORTSDIR}/x11/XFree86 \
X		${X11BASE}/lib/X11/fonts/TrueType/bsmi00lp.ttf:${PORTSDIR}/chinese/arphicttf \
X		${X11BASE}/lib/aout/libX11.so.6.1:${PORTSDIR}/x11/XFree86-aoutlibs \
X		xcin2.5:${PORTSDIR}/chinese/xcin25
X
X# These variables can be defined in ports that include this Makefile.
XLOCALE?=		zh_TW.Big5
XREGION?=		tw
XBROWSER?=		communicator
XBROWSER_VER?=		47
XBROWSER_VERSION?=	4.75
XBROWSER_ARC?=		${BROWSER}
XBROWSER_BIN?=		${BROWSER_ARC}-${BROWSER_VERSION}.bin
XBROWSER_CMD?=		${REGION}-${BROWSER_ARC}-${BROWSER_VER}
XNSUBDIR?=		lib/netscape
X
X# XFree86-aoutlibs's libX11 still has problems with Big5, so we have to
X# build aout libX11.so.6.1 ourselves.
X# This will be removed once XFree86-4 becomes the default X.
XDIST_SUBDIR=	xc
XX11SRC=		X336src-1.tgz
XWRKSRC=		${WRKDIR}/xc
XPORTOBJFORMAT=	aout
XNSKIT=		${REGION}-nskit-${BROWSER_VERSION}.tar.gz
XNSKITDIR=	${WRKDIR}/${REGION}-nskit-${BROWSER_VERSION}
XNDIR=		${PREFIX}/${NSUBDIR}
XPLIST_SUB=	BROWSER=${BROWSER_ARC} VER=${BROWSER_VER} NSUBDIR=${NSUBDIR} LOCALE=${LOCALE} REGION=${REGION} X11BASE=${X11BASE}
XPKGINSTALL=	${WRKDIR}/pkg-install
XPKGDEINSTALL=	${WRKDIR}/pkg-deinstall
XPKGMESSAGE=	${WRKDIR}/pkg-message
X# RDIR is the resource directory.
XMAKESCRIPT=	${SED} -e "s;@X11BASE@;${X11BASE};g" \
X			-e "s;@LOCALBASE@;${LOCALBASE};g" \
X			-e "s;@PREFIX@;${PREFIX};g" \
X			-e "s;@NDIR@;${NDIR};g" \
X			-e "s;@RDIR@;${NDIR};g" \
X			-e "s;@BROWSER_BIN@;${BROWSER_BIN};g" \
X			-e "s;@LOCALE@;${LOCALE};g"
XSTART_SCRIPT?=	${FILESDIR}/start.sh.in
X
X.include <bsd.port.pre.mk>
X
Xpre-extract:
X.if !exists(/usr/lib/aout/c++rt0.o)
X	@${CAT} ${FILESDIR}/message.nolib
X	${FALSE}
X.endif
X
Xdo-extract:
X	${RM} -rf ${WRKDIR}
X	${MKDIR} ${WRKDIR}
X	(cd ${WRKDIR} && ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${NSKIT})
X	(cd ${WRKDIR} && ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${X11SRC} \
X	xc/Makefile \
X	xc/Imakefile \
X	xc/config \
X	xc/include \
X	xc/lib)
X
Xpost-extract:
X	${MAKESCRIPT} ${START_SCRIPT} > ${WRKDIR}/${BROWSER_CMD}
X	${MAKESCRIPT} ${FILESDIR}/INSTALL.in > ${WRKDIR}/pkg-install
X	${MAKESCRIPT} ${FILESDIR}/MESSAGE.in > ${WRKDIR}/pkg-message
X	${MAKESCRIPT} ${FILESDIR}/DEINSTALL.in > ${WRKDIR}/pkg-deinstall
X.if (${BROWSER} == navigator)
X	${SED} "s/Communicator/Navigator/g" ${NSKITDIR}/Netscape.ad \
X	 > ${NSKITDIR}/Netscape
X.else
X	${CP} ${NSKITDIR}/Netscape.ad ${NSKITDIR}/Netscape
X.endif
X
Xdo-build:
X.if exists(${X11BASE}/lib/X11/config/site.def)
X	${CP} $(X11BASE)/lib/X11/config/site.def ${WRKSRC}/config/cf
X.endif
X	${ECHO} "#define BuildAoutLibraries YES" >> ${WRKSRC}/config/cf/site.def
X	(cd ${WRKSRC}; ${MAKE} World)
X	(cd ${WRKSRC}/lib/X11; ${MAKE} aout/libX11.so.6.1)
X
Xpre-install:
X	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
X
Xdo-install:
X	${INSTALL_DATA} ${NSKITDIR}/XLC_LOCALE.Big5 ${X11BASE}/lib/X11/locale/zh_TW.Big5/XLC_LOCALE
X	${INSTALL_SCRIPT} ${WRKDIR}/${BROWSER_CMD} ${PREFIX}/bin/
X	${LN} -sf ${BROWSER_CMD} ${PREFIX}/bin/netscape.run
X.for f in font.properties.zh_GB2312 font.properties.zh_TW_Big5
X	${INSTALL_DATA} ${NSKITDIR}/$f ${NDIR}/java/classes
X.endfor
X	${MKDIR} ${NDIR}/${LOCALE}
X	${INSTALL_DATA} ${WRKSRC}/lib/X11/aout/libX11.so.6.1 ${NDIR}/${LOCALE}/libX11-ns.so.6.1
X	${CP} -R ${NSKITDIR}/nethelp ${NDIR}/${LOCALE}/
X.for f in BDP_LICENSE Netscape Netscape.WheelMouse
X	${INSTALL_DATA} ${NSKITDIR}/$f ${NDIR}/${LOCALE}/
X.endfor
X	${INSTALL_DATA} ${NSKITDIR}/preferences.js ${NDIR}/${LOCALE}
X# I know Japanese & Korean's netscape ports all install netscape.cfg
X# in ${NSUBDIR}, but then only a single locale's netscape.cfg is available
X# to all users, which is unreasonable.
X	${MKDIR} /usr/lib/X11/${LOCALE}/app-defaults
X.for f in netscape.cfg netscape.jsc
X	${INSTALL_DATA} ${NSKITDIR}/$f /usr/lib/X11/${LOCALE}/app-defaults
X.endfor
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-netscape47-communicator/Makefile
exit


>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?200010270634.OAA04301>