diff options
author | asami <asami@FreeBSD.org> | 1997-09-10 14:52:02 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1997-09-10 14:52:02 +0800 |
commit | 17e8f268e19a8c0bbfa524d57648842ce310c331 (patch) | |
tree | 2b8bd09726cdedf95211136203a7a850b374aefe /japanese/FreeWnn-server/Makefile | |
parent | 5847a72d1e067e5755bdcc8342dd735d0b7619ec (diff) | |
download | freebsd-ports-gnome-17e8f268e19a8c0bbfa524d57648842ce310c331.tar.gz freebsd-ports-gnome-17e8f268e19a8c0bbfa524d57648842ce310c331.tar.zst freebsd-ports-gnome-17e8f268e19a8c0bbfa524d57648842ce310c331.zip |
Fix many bugs. Share files that can be shared.
PR: 4409
Submitted by: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
Diffstat (limited to 'japanese/FreeWnn-server/Makefile')
-rw-r--r-- | japanese/FreeWnn-server/Makefile | 71 |
1 files changed, 62 insertions, 9 deletions
diff --git a/japanese/FreeWnn-server/Makefile b/japanese/FreeWnn-server/Makefile index bafef6824aba..3d3042e83374 100644 --- a/japanese/FreeWnn-server/Makefile +++ b/japanese/FreeWnn-server/Makefile @@ -1,32 +1,85 @@ -# New ports collection makefile for: Wnn +# New ports collection makefile for: Wnn for Japanese # Version required: 4.2 -# Date created: 22 November 1994 -# Whom: asami +# Date created: 20 July 1997 +# Whom: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp> # -# $Id: Makefile,v 1.15 1997/04/16 05:00:02 asami Exp $ +# $Id: Makefile,v 1.16 1997/06/19 11:26:07 asami Exp $ # DISTNAME= Wnn4.2 -PKGNAME= jp-Wnn-4.2 -CATEGORIES= japanese -MASTER_SITES= ftp://ftp.u-tokyo.ac.jp/pub/Japanese/Wnn/ +PKGNAME?= jp-Wnn-4.2 +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 -MAINTAINER= asami@FreeBSD.ORG +MAINTAINER= taoka@infonets.hiroshima-u.ac.jp +EXTRACT_ONLY= Wnn4.2.tar.gz +PATCHDIR= ${.CURDIR}/../../japanese/Wnn/patches +FILESDIR= ${.CURDIR}/../../japanese/Wnn/files +PKGDIR= ${.CURDIR}/../../japanese/Wnn/pkg WRKSRC= ${WRKDIR}/Xsi IS_INTERACTIVE= yes # needs "wnn" user +.if (${PKGNAME} == jp-Wnn-4.2) +PORT_DOCDIR= ${PREFIX}/share/doc/jp-Wnn +DOC_FROM= ${WRKSRC}/Wnn +.elif (${PKGNAME} == cn-Wnn-4.2) +PORT_DOCDIR= ${PREFIX}/share/doc/cn-Wnn +DOC_FROM= ${WRKSRC}/cWnn +.endif # kWnn has no manual. + post-extract: + ${EXTRACT_CMD} -C ${WRKSRC} ${EXTRACT_BEFORE_ARGS} \ + ${_DISTDIR}/Wnn4.2.patch.tar.gz /bin/ln -sf Project.tmpl ${WRKSRC}/config/X11.tmpl +pre-patch: + cd ${WRKSRC}; ${PATCH} ${PATCH_DIST_ARGS} < ${WRKSRC}/Wnn4.2.patch + +# Applying a patch for depending on language +post-patch: + case ${PKGNAME} in \ + jp-Wnn-4.2) \ + LANG_PATCH=${FILESDIR}/patch-for-japanese;; \ + cn-Wnn-4.2) \ + LANG_PATCH=${FILESDIR}/patch-for-chinese;; \ + kr-Wnn-4.2) \ + 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 \ + mv $$file $$file.orig2; \ + sed 's!^\([ ]*PREFIX = \).*$$!\1${PREFIX}!' \ + $$file.orig2 > $$file; \ + done + # These are necesary because this package uses a different Makefile for # building and installing etc. do-build: - @(cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} Makefile.inst World) + @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} Makefile.inst World) + +pre-install: + @${SH} ${PKGDIR}/REQ ${PKGNAME} INSTALL post-install: # 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) + @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL +.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 .include <bsd.port.mk> |