1997-09-10 02:52:02 -04:00
|
|
|
# New ports collection makefile for: Wnn for Japanese
|
1994-11-22 18:37:45 -05:00
|
|
|
# Version required: 4.2
|
1997-09-10 02:52:02 -04:00
|
|
|
# Date created: 20 July 1997
|
|
|
|
# Whom: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
|
1994-11-22 18:37:45 -05:00
|
|
|
#
|
1997-09-22 22:18:00 -04:00
|
|
|
# $Id: Makefile,v 1.18 1997/09/19 09:34:31 asami Exp $
|
1994-11-22 18:37:45 -05:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= Wnn4.2
|
1997-09-19 05:34:33 -04:00
|
|
|
PKGNAME?= ja-Wnn-4.2
|
1997-09-10 02:52:02 -04:00
|
|
|
CATEGORIES?= japanese
|
|
|
|
MASTER_SITES= ftp://ftp.u-tokyo.ac.jp/pub/Japanese/Wnn/ \
|
|
|
|
ftp://ports.jp.FreeBSD.org/pub/incoming/distfiles/
|
|
|
|
DISTFILES= Wnn4.2.tar.gz Wnn4.2.patch.tar.gz
|
1995-04-07 01:48:11 -04:00
|
|
|
|
1997-09-10 02:52:02 -04:00
|
|
|
MAINTAINER= taoka@infonets.hiroshima-u.ac.jp
|
1995-04-07 01:48:11 -04:00
|
|
|
|
1997-09-10 02:52:02 -04:00
|
|
|
EXTRACT_ONLY= Wnn4.2.tar.gz
|
|
|
|
PATCHDIR= ${.CURDIR}/../../japanese/Wnn/patches
|
|
|
|
FILESDIR= ${.CURDIR}/../../japanese/Wnn/files
|
|
|
|
PKGDIR= ${.CURDIR}/../../japanese/Wnn/pkg
|
1994-11-22 18:37:45 -05:00
|
|
|
WRKSRC= ${WRKDIR}/Xsi
|
|
|
|
|
1997-09-19 05:34:33 -04:00
|
|
|
.if (${PKGNAME} == ja-Wnn-4.2)
|
|
|
|
PORT_DOCDIR= ${PREFIX}/share/doc/ja-Wnn
|
1997-09-10 02:52:02 -04:00
|
|
|
DOC_FROM= ${WRKSRC}/Wnn
|
1997-09-22 22:18:00 -04:00
|
|
|
.elif (${PKGNAME} == zh-Wnn-4.2)
|
|
|
|
PORT_DOCDIR= ${PREFIX}/share/doc/zh-Wnn
|
1997-09-10 02:52:02 -04:00
|
|
|
DOC_FROM= ${WRKSRC}/cWnn
|
|
|
|
.endif # kWnn has no manual.
|
|
|
|
|
1997-06-19 07:26:08 -04:00
|
|
|
post-extract:
|
1997-09-10 02:52:02 -04:00
|
|
|
${EXTRACT_CMD} -C ${WRKSRC} ${EXTRACT_BEFORE_ARGS} \
|
|
|
|
${_DISTDIR}/Wnn4.2.patch.tar.gz
|
1997-06-19 07:26:08 -04:00
|
|
|
/bin/ln -sf Project.tmpl ${WRKSRC}/config/X11.tmpl
|
|
|
|
|
1997-09-10 02:52:02 -04:00
|
|
|
pre-patch:
|
|
|
|
cd ${WRKSRC}; ${PATCH} ${PATCH_DIST_ARGS} < ${WRKSRC}/Wnn4.2.patch
|
|
|
|
|
|
|
|
# Applying a patch for depending on language
|
|
|
|
post-patch:
|
|
|
|
case ${PKGNAME} in \
|
1997-09-19 05:34:33 -04:00
|
|
|
ja-Wnn-4.2) \
|
1997-09-10 02:52:02 -04:00
|
|
|
LANG_PATCH=${FILESDIR}/patch-for-japanese;; \
|
1997-09-22 22:18:00 -04:00
|
|
|
zh-Wnn-4.2) \
|
1997-09-10 02:52:02 -04:00
|
|
|
LANG_PATCH=${FILESDIR}/patch-for-chinese;; \
|
1997-09-22 22:18:00 -04:00
|
|
|
ko-Wnn-4.2) \
|
1997-09-10 02:52:02 -04:00
|
|
|
LANG_PATCH=${FILESDIR}/patch-for-korean;; \
|
|
|
|
esac; \
|
|
|
|
(cd ${_DISTDIR}; \
|
|
|
|
${PATCH} ${PATCH_DIST_ARGS} < $${LANG_PATCH})
|
|
|
|
|
|
|
|
# for PREFIX
|
|
|
|
pre-build:
|
|
|
|
for file in ${WRKSRC}/config/Project.tmpl \
|
|
|
|
${WRKSRC}/Contrib/dic/gerodic/Makefile; do \
|
1997-09-19 05:34:33 -04:00
|
|
|
${MV} $$file $$file.orig2; \
|
|
|
|
${SED} 's!^\([ ]*PREFIX = \).*$$!\1${PREFIX}!' \
|
1997-09-10 02:52:02 -04:00
|
|
|
$$file.orig2 > $$file; \
|
|
|
|
done
|
|
|
|
|
1994-11-22 18:37:45 -05:00
|
|
|
# These are necesary because this package uses a different Makefile for
|
|
|
|
# building and installing etc.
|
1995-04-23 22:22:49 -04:00
|
|
|
do-build:
|
1997-09-10 02:52:02 -04:00
|
|
|
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} Makefile.inst World)
|
|
|
|
|
|
|
|
pre-install:
|
1997-09-19 05:34:33 -04:00
|
|
|
@${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL
|
1994-11-22 18:37:45 -05:00
|
|
|
|
1995-04-20 14:05:40 -04:00
|
|
|
post-install:
|
1994-11-22 18:37:45 -05:00
|
|
|
# This package uses imake's "install.man" target to install man pages but
|
|
|
|
# I can't define USE_IMAKE because it doesn't involve xmkmf
|
|
|
|
@(cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install.man)
|
1997-09-19 05:34:33 -04:00
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} \
|
|
|
|
${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
|
1997-09-10 02:52:02 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
.if defined(PORT_DOCDIR)
|
|
|
|
${MKDIR} ${PORT_DOCDIR}
|
|
|
|
@(cd ${DOC_FROM}; tar cvf - manual manual.en | \
|
|
|
|
(cd ${PORT_DOCDIR}; tar xf -))
|
|
|
|
@chown -R bin.bin ${PORT_DOCDIR}
|
|
|
|
.endif
|
|
|
|
.endif
|
1994-11-22 18:37:45 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|