1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

PR: 22479

Submitted by:	Jing-Tang Keith Jang <keith@freebsd.sinica.edu.tw>
Introduce zh-XFree86-aoutlibs port.
From the description of the originator:

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.
This commit is contained in:
Foxfair Hu 2000-11-02 06:59:37 +00:00
parent 33c4872163
commit 84fe7cc5ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34622
7 changed files with 109 additions and 0 deletions

View File

@ -0,0 +1,47 @@
# New ports collection makefile for: XFree86 3.3.6 aout libs
# Date created: 31 Oct 2000
# Whom: Jing-Tang Keith Jang <keith@freebsd.sinica.edu.tw>
#
# $FreeBSD: /tmp/pcvs/ports/chinese/XFree86-aoutlibs/Attic/Makefile,v 1.1 2000-11-02 06:59:33 foxfair Exp $
#
# The file is identical to
# ftp://ftp.xfree86.org/pub/XFree86/3.3.6/binaries/FreeBSD-2.2.x/Xbin.tgz
# Renamed to avoid distfiles conflict with x11/XFree86-aoutlibs.
PORTNAME= XFree86-aoutlibs
PORTVERSION= 3.3.6
CATEGORIES= x11
MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/keith/
DISTNAME= Xbin336aout
EXTRACT_SUFX= .tgz
MAINTAINER= keith@freebsd.sinica.edu.tw
ONLY_FOR_ARCHS= i386
WRKSRC= ${WRKDIR}/lib
NO_BUILD= yes
PORTOBJFORMAT= aout
USE_X_PREFIX= yes
PKGINSTALL= ${WRKDIR}/pkg-install
pre-configure:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGREQ} ${PKGNAME} INSTALL
@${SED} -e "s;@PREFIX@;${PREFIX};g" ${FILESDIR}/INSTALL.in > ${WRKDIR}/pkg-install
pre-install:
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
do-install:
@${MKDIR} ${PREFIX}/lib/aout
cd ${WRKSRC}; \
for l in $$(ls lib*); do \
${SETENV} OBJFORMAT=${PORTOBJFORMAT} \
${INSTALL_PROGRAM} $$l ${PREFIX}/lib/aout; \
done
${TOUCH} ${PREFIX}/lib/aout/zh-XFree86-aoutlibs-3.3.6
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib/aout
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (Xbin336aout.tgz) = a788bf7af2732eaf2a4a71550680f590

View File

@ -0,0 +1,17 @@
#!/bin/sh
# an installation script for zh-XFree86-aoutlibs
if [ "$2" != "PRE-INSTALL" ]; then
exit 0
fi
if [ ! -f @PREFIX@/lib/aout/zh-XFree86-aoutlibs-3.3.6 ] && \
[ -f @PREFIX@/lib/aout/libX11.so.6.1 ]; then
echo ----------------------------------------------------
echo You have XFree86-aoutlibs installed!
echo Please remove it before install zh-XFree86-aoutlibs.
echo ----------------------------------------------------
exit 1
fi
exit 0

View File

@ -0,0 +1 @@
Chinese XFree86 a.out compatability libraries

View File

@ -0,0 +1,5 @@
This is a compatability package for the XFree86 a.out format libraries,
especially for Chinese application.
It is only needed for ports which use X and are compiled in a.out format,
such as Nescape. Long live Mozilla...

View File

@ -0,0 +1,16 @@
lib/aout/libX11.so.6.1
lib/aout/liboldX.so.6.0
lib/aout/libICE.so.6.3
lib/aout/libSM.so.6.0
lib/aout/libXext.so.6.3
lib/aout/libXt.so.6.0
lib/aout/libXmu.so.6.0
lib/aout/libXaw.so.6.1
lib/aout/libXIE.so.6.0
lib/aout/libXi.so.6.0
lib/aout/libXtst.so.6.1
lib/aout/libPEX5.so.6.0
lib/aout/libXp.so.6.2
lib/aout/zh-XFree86-aoutlibs-3.3.6
@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R

View File

@ -0,0 +1,22 @@
#!/bin/sh
env=/usr/bin/env
fgrep=/usr/bin/fgrep
ldconfig=/sbin/ldconfig
ld_so=/usr/libexec/ld.so
if [ x$2 = xINSTALL ]; then
$env OBJFORMAT=aout $ldconfig -r | $fgrep -q -e '-lc.3'
if [ $? -ne 0 -o ! -x $ld_so ]; then
cat <<END
*********************************************************************
There do not appear to be any a.out libraries on this
machine. Please install the compat22 distribution (via
/stand/sysinstall) or build it as part of your 'make world'
(see /etc/make.conf).
*********************************************************************
END
exit 1
fi
fi
exit 0;