Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 2000 23:53:55 +0800 (CST)
From:      keith@freebsd.sinica.edu.tw
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/22479: New port: chinese/XFree86-aoutlibs
Message-ID:  <200011011553.XAA26888@freebsd.sinica.edu.tw>

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

>Number:         22479
>Category:       ports
>Synopsis:       New port: chinese/XFree86-aoutlibs
>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:   Wed Nov 01 08:00:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jing-Tang Keith Jang
>Release:        FreeBSD 4.0-20000406-STABLE i386
>Organization:
>Environment:

Tested under both 4-stable and 5-current.

>Description:

x11/XFree86-aoutlibs doesn't support Big5 encoding, so Big5 users
can't input Chinese using XIM in aout applications like Netscape.
This port installs 3.3.6 aout library binaries distributed by XFree86,
which solves the problem

Since x11/XFree86/scripts/configure mentioned that Netscape works
best with older 3.3.3 aout libs, it seems reasonable not to upgrade
x11/XFree86-aoutlibs, but create another chinese/XFree86-aoutlibs
port.

>How-To-Repeat:

Please commit the following port, 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:
#
#	XFree86-aoutlibs
#	XFree86-aoutlibs/files
#	XFree86-aoutlibs/files/INSTALL.in
#	XFree86-aoutlibs/distinfo
#	XFree86-aoutlibs/pkg-descr
#	XFree86-aoutlibs/Makefile
#	XFree86-aoutlibs/pkg-req
#	XFree86-aoutlibs/pkg-plist
#	XFree86-aoutlibs/pkg-comment
#
echo c - XFree86-aoutlibs
mkdir -p XFree86-aoutlibs > /dev/null 2>&1
echo c - XFree86-aoutlibs/files
mkdir -p XFree86-aoutlibs/files > /dev/null 2>&1
echo x - XFree86-aoutlibs/files/INSTALL.in
sed 's/^X//' >XFree86-aoutlibs/files/INSTALL.in << 'END-of-XFree86-aoutlibs/files/INSTALL.in'
X#!/bin/sh
X# an installation script for zh-XFree86-aoutlibs
X
Xif [ "$2" != "PRE-INSTALL" ]; then
X  exit 0
Xfi
X
Xif [ ! -f @PREFIX@/lib/aout/zh-XFree86-aoutlibs-3.3.6 ] && \
X     [ -f @PREFIX@/lib/aout/libX11.so.6.1 ]; then
X  echo ----------------------------------------------------
X  echo You have XFree86-aoutlibs installed!
X  echo Please remove it before install zh-XFree86-aoutlibs.
X  echo ----------------------------------------------------
X  exit 1
Xfi
X
Xexit 0
END-of-XFree86-aoutlibs/files/INSTALL.in
echo x - XFree86-aoutlibs/distinfo
sed 's/^X//' >XFree86-aoutlibs/distinfo << 'END-of-XFree86-aoutlibs/distinfo'
XMD5 (Xbin336aout.tgz) = a788bf7af2732eaf2a4a71550680f590
END-of-XFree86-aoutlibs/distinfo
echo x - XFree86-aoutlibs/pkg-descr
sed 's/^X//' >XFree86-aoutlibs/pkg-descr << 'END-of-XFree86-aoutlibs/pkg-descr'
XThis is a compatability package for the XFree86 a.out format libraries.
X
XIt is only needed for ports which use X and are compiled in a.out format,
Xsuch as Nescape.  Long live Mozilla...
END-of-XFree86-aoutlibs/pkg-descr
echo x - XFree86-aoutlibs/Makefile
sed 's/^X//' >XFree86-aoutlibs/Makefile << 'END-of-XFree86-aoutlibs/Makefile'
X# New ports collection makefile for:	XFree86 3.3.6 aout libs
X# Date created:		31 Oct 2000
X# Whom:			Jing-Tang Keith Jang <keith@freebsd.sinica.edu.tw>
X#
X# $FreeBSD$
X#
X
X# The file is identical to
X# ftp://ftp.xfree86.org/pub/XFree86/3.3.6/binaries/FreeBSD-2.2.x/Xbin.tgz
X# Renamed to avoid distfiles conflict with x11/XFree86-aoutlibs.
X
XPORTNAME=	XFree86-aoutlibs
XPORTVERSION= 	3.3.6
XCATEGORIES=	x11
XMASTER_SITES=	ftp://freebsd.sinica.edu.tw/pub/keith/
XDISTNAME=	Xbin336aout
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	keith@freebsd.sinica.edu.tw
X
XONLY_FOR_ARCHS=	i386
X
XWRKSRC=		${WRKDIR}/lib
XNO_BUILD=	yes
XPORTOBJFORMAT=	aout
X
XUSE_X_PREFIX=	yes
XPKGINSTALL=	${WRKDIR}/pkg-install
X
Xpre-configure:
X	@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGREQ} ${PKGNAME} INSTALL
X	@${SED} -e "s;@PREFIX@;${PREFIX};g" ${FILESDIR}/INSTALL.in > ${WRKDIR}/pkg-install
X
Xpre-install:
X	@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/lib/aout
X	cd ${WRKSRC}; \
X	for l in $$(ls lib*); do \
X		${SETENV} OBJFORMAT=${PORTOBJFORMAT} \
X		${INSTALL_PROGRAM} $$l ${PREFIX}/lib/aout; \
X	done
X	${TOUCH} ${PREFIX}/lib/aout/zh-XFree86-aoutlibs-3.3.6
X	${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib/aout
X
X.include <bsd.port.mk>
END-of-XFree86-aoutlibs/Makefile
echo x - XFree86-aoutlibs/pkg-req
sed 's/^X//' >XFree86-aoutlibs/pkg-req << 'END-of-XFree86-aoutlibs/pkg-req'
X#!/bin/sh
Xenv=/usr/bin/env
Xfgrep=/usr/bin/fgrep
Xldconfig=/sbin/ldconfig
Xld_so=/usr/libexec/ld.so
Xif [ x$2 = xINSTALL ]; then
X	$env OBJFORMAT=aout $ldconfig -r | $fgrep -q -e '-lc.3'
X	if [ $? -ne 0 -o ! -x $ld_so ]; then
X		cat <<END
X*********************************************************************
X
X    There do not appear to be any a.out libraries on this
X    machine.  Please install the compat22 distribution (via
X    /stand/sysinstall) or build it as part of your 'make world'
X    (see /etc/make.conf).
X
X*********************************************************************
XEND
X		exit 1
X	fi
Xfi
Xexit 0;
END-of-XFree86-aoutlibs/pkg-req
echo x - XFree86-aoutlibs/pkg-plist
sed 's/^X//' >XFree86-aoutlibs/pkg-plist << 'END-of-XFree86-aoutlibs/pkg-plist'
Xlib/aout/libX11.so.6.1
Xlib/aout/liboldX.so.6.0
Xlib/aout/libICE.so.6.3
Xlib/aout/libSM.so.6.0
Xlib/aout/libXext.so.6.3
Xlib/aout/libXt.so.6.0
Xlib/aout/libXmu.so.6.0
Xlib/aout/libXaw.so.6.1
Xlib/aout/libXIE.so.6.0
Xlib/aout/libXi.so.6.0
Xlib/aout/libXtst.so.6.1
Xlib/aout/libPEX5.so.6.0
Xlib/aout/libXp.so.6.2
Xlib/aout/zh-XFree86-aoutlibs-3.3.6
X@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
X@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
END-of-XFree86-aoutlibs/pkg-plist
echo x - XFree86-aoutlibs/pkg-comment
sed 's/^X//' >XFree86-aoutlibs/pkg-comment << 'END-of-XFree86-aoutlibs/pkg-comment'
XXFree86 a.out compatability libraries
END-of-XFree86-aoutlibs/pkg-comment
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?200011011553.XAA26888>