1998-06-01 14:48:57 +00:00
|
|
|
# New ports collection makefile for: netscape3.language
|
|
|
|
# Version required: 3.04
|
|
|
|
# Date created: 17 November 1997
|
1998-12-10 15:10:20 +00:00
|
|
|
# Whom: SADA Kenji <sada@FreeBSD.ORG>
|
1998-06-01 14:48:57 +00:00
|
|
|
#
|
1998-12-10 15:10:20 +00:00
|
|
|
# $Id: Makefile,v 1.3 1998/11/23 07:51:07 asami Exp $
|
1998-06-01 14:48:57 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= ja-netscape-3.04
|
|
|
|
CATEGORIES= japanese www
|
|
|
|
MASTER_SITES= http://www.bpel.tutics.tut.ac.jp/~take/Netscape/etc/ \
|
|
|
|
http://www.bpel.tutics.tut.ac.jp/~take/Netscape/resources/
|
|
|
|
DISTFILES= NLS.tar.gz \
|
|
|
|
Netscape-JPfont \
|
|
|
|
Netscape-v301-ja_euc.ad.gz
|
|
|
|
|
1998-12-10 15:10:20 +00:00
|
|
|
MAINTAINER= sada@FreeBSD.ORG
|
1998-06-01 14:48:57 +00:00
|
|
|
|
1998-12-10 15:10:20 +00:00
|
|
|
RUN_DEPENDS= \
|
|
|
|
${PREFIX}/bin/netscape:${PORTSDIR}/www/netscape3 \
|
|
|
|
${PKG_DBDIR}/ja-netscape-fonts-1.0:${PORTSDIR}/japanese/netscape-fonts
|
1998-06-01 14:48:57 +00:00
|
|
|
|
1998-11-23 07:51:09 +00:00
|
|
|
DIST_SUBDIR= netscape3
|
1998-06-01 14:48:57 +00:00
|
|
|
NO_WRKSUBDIR= YES
|
|
|
|
NO_BUILD= YES
|
|
|
|
|
|
|
|
# This directory is hard-coded into the netscape binary
|
|
|
|
LIBDIR= /usr/local/lib/netscape
|
|
|
|
|
|
|
|
BINDIR= ${PREFIX}/bin
|
|
|
|
NLSDIR= ${LIBDIR}/nls
|
|
|
|
RESSUB= ja_JP.EUC
|
|
|
|
RESDIR= ${LIBDIR}/${RESSUB}
|
|
|
|
|
|
|
|
STARTFILE= netscape.sh
|
|
|
|
STARTFILE_SRC= ${FILESDIR}/netscape.sh
|
|
|
|
|
|
|
|
# no distfile to fetch
|
|
|
|
#do-fetch:
|
|
|
|
|
|
|
|
do-extract:
|
|
|
|
@${MKDIR} ${WRKDIR}
|
1998-11-23 07:51:09 +00:00
|
|
|
@${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DIST_SUBDIR}/NLS.tar.gz -C ${WRKDIR}
|
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/Netscape-JPfont ${WRKDIR}
|
|
|
|
@${CAT} ${DISTDIR}/${DIST_SUBDIR}/Netscape-v301-ja_euc.ad.gz \
|
1998-06-01 14:48:57 +00:00
|
|
|
| ${GUNZIP_CMD} > ${WRKDIR}/Netscape.jp.ad
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@${SED} -e "s;@X11BASE@;${X11BASE};g" -e "s;@PREFIX@;${PREFIX};g" \
|
|
|
|
${STARTFILE_SRC} >${WRKDIR}/${STARTFILE}
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
-@${MV} ${BINDIR}/netscape ${BINDIR}/netscape.orig
|
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/${STARTFILE} ${BINDIR}/netscape
|
|
|
|
@${MKDIR} ${NLSDIR}/local_im_tbl
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/nls/*.* ${LIBDIR}/nls
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/nls/C ${LIBDIR}/nls
|
|
|
|
@${RM} -f ${LIBDIR}/nls/*.orig
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/nls/local_im_tbl/* ${LIBDIR}/nls/local_im_tbl
|
|
|
|
@${MKDIR} ${RESDIR}
|
|
|
|
.if defined(ENGLISH)
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/Netscape.ad ${RESDIR}/Netscape
|
|
|
|
@${CAT} ${WRKSRC}/Netscape-JPfont >> ${RESDIR}/Netscape
|
|
|
|
.else
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/Netscape.jp.ad ${RESDIR}/Netscape
|
|
|
|
.endif
|
|
|
|
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/${DISTNAME}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/${PKGNAME}
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/setup.doc ${PREFIX}/share/doc/${PKGNAME}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/setup.doc ${DOCDIR}
|
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGDIR}/DESCR
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
|
|
|
|
|
|
|
.SILENT:
|
|
|
|
|
|
|
|
# cf. <http://www.bpel.tutics.tut.ac.jp/~take/>
|
|
|
|
|
|
|
|
# This port is based on 'russian/netscape3.language(ru-netscape-3.01)'
|
|
|
|
# by asami@FreeBSD.ORG
|