2000-09-17 11:29:20 -04:00
|
|
|
# New ports collection makefile for: files except executables for mule
|
1997-09-10 04:51:26 -04:00
|
|
|
# Date created: 7 July 1997
|
1999-05-01 00:03:48 -04:00
|
|
|
# Whom: Satoshi Taoka <taoka@FreeBSD.org>
|
1994-11-22 18:59:14 -05:00
|
|
|
#
|
1999-08-25 01:57:29 -04:00
|
|
|
# $FreeBSD$
|
1994-11-22 18:59:14 -05:00
|
|
|
#
|
|
|
|
|
2000-04-14 02:21:02 -04:00
|
|
|
PORTNAME= mule-common
|
2000-04-14 12:47:49 -04:00
|
|
|
PORTVERSION= ${MULE_VERSION}
|
1998-10-07 04:11:41 -04:00
|
|
|
CATEGORIES= editors japanese
|
1997-09-10 04:51:26 -04:00
|
|
|
MASTER_SITES= ftp://etlport.etl.go.jp/pub/mule/ \
|
|
|
|
ftp://ftp.mei.co.jp/archive/free/gnu/emacs/Mule/ \
|
|
|
|
ftp://ftp.iij.ad.jp/pub/misc/mule/ \
|
1998-10-07 04:11:41 -04:00
|
|
|
http://www.infonets.hiroshima-u.ac.jp/~taoka/FreeBSD/mule/
|
2000-04-14 12:47:49 -04:00
|
|
|
DISTFILES= emacs-${EMACS_VERSION}b${EXTRACT_SUFX} \
|
|
|
|
mule-${MULE_VERSION}-${EMACS_VERSION}.patch-981002.tar.gz
|
1998-10-07 04:11:41 -04:00
|
|
|
|
|
|
|
PATCH_SITES= ftp://etlport.etl.go.jp/pub/mule/
|
2000-04-14 12:47:49 -04:00
|
|
|
PATCHFILES= mule-${MULE_VERSION:S/.//}-${EMACS_VERSION:S/.//}-alpha01.diff.gz
|
1998-10-07 04:11:41 -04:00
|
|
|
PATCH_DIST_STRIP= -p1
|
1995-03-28 01:21:05 -05:00
|
|
|
|
1999-05-01 00:03:48 -04:00
|
|
|
MAINTAINER= taoka@FreeBSD.org
|
1997-09-10 04:51:26 -04:00
|
|
|
|
2000-04-14 12:47:49 -04:00
|
|
|
MULE_VERSION= 2.3
|
|
|
|
EMACS_VERSION= 19.34
|
|
|
|
|
1999-07-01 19:15:54 -04:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-04-14 12:47:49 -04:00
|
|
|
WRKDIRBASE= ${WRKDIRPREFIX}${.CURDIR:S,/editors/mule-common$,,}
|
1999-07-01 19:15:54 -04:00
|
|
|
|
2000-09-17 11:29:20 -04:00
|
|
|
.for dir in chinese/mule-freewnn \
|
1998-10-07 04:11:41 -04:00
|
|
|
editors/mule \
|
2000-10-03 11:22:18 -04:00
|
|
|
japanese/mule-canna \
|
|
|
|
japanese/mule-canna+freewnn \
|
2000-09-17 11:29:20 -04:00
|
|
|
japanese/mule-canna+freewnn+sj3 \
|
1998-10-07 04:11:41 -04:00
|
|
|
japanese/mule-canna+sj3+wnn6 \
|
|
|
|
japanese/mule-canna+sj3 \
|
|
|
|
japanese/mule-canna+wnn6 \
|
2000-10-03 11:22:18 -04:00
|
|
|
japanese/mule-freewnn \
|
2000-09-17 11:29:20 -04:00
|
|
|
japanese/mule-freewnn+sj3 \
|
1998-10-07 04:11:41 -04:00
|
|
|
japanese/mule-sj3 \
|
2000-10-03 11:22:18 -04:00
|
|
|
japanese/mule-sj3+wnn6 \
|
1998-10-07 04:11:41 -04:00
|
|
|
japanese/mule-wnn6 \
|
2000-09-17 11:29:20 -04:00
|
|
|
korean/mule-freewnn
|
1999-07-01 19:15:54 -04:00
|
|
|
.if exists(${WRKDIRBASE}/${dir}/work/.install_done)
|
|
|
|
WRKDIR= ${WRKDIRBASE}/${dir}/work
|
|
|
|
.elif exists(${WRKDIRBASE}/${dir}/work/.build_done)
|
|
|
|
WRKDIR?= ${WRKDIRBASE}/${dir}/work
|
1997-09-10 04:51:26 -04:00
|
|
|
.endif
|
|
|
|
.endfor
|
2000-04-14 12:47:49 -04:00
|
|
|
WRKSRC= ${WRKDIR}/emacs-${EMACS_VERSION}
|
1998-10-07 04:11:41 -04:00
|
|
|
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/mule.sh
|
1997-09-10 04:51:26 -04:00
|
|
|
|
1998-12-02 02:57:11 -05:00
|
|
|
.if !defined(WRKDIR)
|
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
# XXX
|
1999-07-01 19:15:54 -04:00
|
|
|
WRKDIR= ${WRKDIRBASE}/editors/mule/work
|
1998-12-02 02:57:11 -05:00
|
|
|
pre-build:
|
|
|
|
@cd ${.CURDIR}/../mule; make
|
|
|
|
.else
|
2000-06-23 11:37:57 -04:00
|
|
|
BROKEN= First you should build install a port for mule except mule-common
|
1997-09-10 04:51:26 -04:00
|
|
|
.endif
|
1998-12-02 02:57:11 -05:00
|
|
|
.endif
|
1997-09-10 04:51:26 -04:00
|
|
|
|
|
|
|
INSTALL_COOKIE= ${WRKDIR}/.install_done-${PKGNAME}
|
|
|
|
PACKAGE_COOKIE= ${WRKDIR}/.package_done-${PKGNAME}
|
1998-10-07 04:11:41 -04:00
|
|
|
TMPPLIST= ${WRKDIR}/.PLIST.mktmp-${PKGNAME}
|
2000-04-14 12:47:49 -04:00
|
|
|
PLIST_SUB= EMACS_VERSION=${EMACS_VERSION} EMACS_ARCH=${CONFIGURE_TARGET}
|
1997-09-10 04:51:26 -04:00
|
|
|
|
1998-12-02 02:57:11 -05:00
|
|
|
USE_XLIB= yes
|
1996-08-16 05:43:57 -04:00
|
|
|
GNU_CONFIGURE= yes
|
1995-04-09 02:11:17 -04:00
|
|
|
USE_GMAKE= yes
|
1998-10-07 04:11:41 -04:00
|
|
|
EMACS_PREFIX= mule
|
|
|
|
EMACS_EXECUTABLE = mule
|
1999-03-08 02:28:36 -05:00
|
|
|
CONFIGURE_ARGS= --with-executable=${EMACS_EXECUTABLE} \
|
1998-10-07 04:11:41 -04:00
|
|
|
--with-emacs-prefix=${EMACS_PREFIX} \
|
|
|
|
--with-terminal-face \
|
1998-10-21 05:58:29 -04:00
|
|
|
--x-includes=${X11BASE}/include --x-libraries=${X11BASE}/lib
|
1995-04-09 02:11:17 -04:00
|
|
|
STRIP=
|
1998-10-07 04:11:41 -04:00
|
|
|
MAN1= coco.1 ctags.1 etags.1 m2ps.1 emacs.1 mule.1
|
1995-04-09 02:11:17 -04:00
|
|
|
|
1997-09-10 04:51:26 -04:00
|
|
|
INSTALL_TARGET= install-arch-indep
|
|
|
|
|
1998-12-02 02:57:11 -05:00
|
|
|
COMP_ELC= egg.elc wnn-egg.elc sj3-client.elc sj3-egg.elc canna.elc
|
|
|
|
ELC_DIR= ../lisp
|
|
|
|
|
|
|
|
# ORIGINAL, MEW_ORG_PATCH and MEW_PATCH are used for debugging.
|
|
|
|
#
|
|
|
|
# ORIGINAL: original mule 2.3 based on emacs 19.34
|
|
|
|
# MEW_ORG_PATCH: apply mew's patches to original mule (http://www.mew.org)
|
|
|
|
# MEW_PATCH: apply mew's patch after apply Mr. Katayama's patches
|
1997-09-10 04:51:26 -04:00
|
|
|
post-extract:
|
2000-04-14 12:47:49 -04:00
|
|
|
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/mule-${MULE_VERSION}-${EMACS_VERSION}.patch-981002.tar.gz ${EXTRACT_AFTER_ARGS} -C ${WRKDIR}
|
1998-10-07 04:11:41 -04:00
|
|
|
${CP} ${FILESDIR}/unexfreebsd.c ${WRKSRC}/src
|
1998-12-02 02:57:11 -05:00
|
|
|
.if !defined(ORIGINAL) && !defined(MEW_ORG_PATCH)
|
2000-04-14 12:47:49 -04:00
|
|
|
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKDIR}/takana-${EMACS_VERSION}.tar.gz ${EXTRACT_AFTER_ARGS} -C ${WRKDIR}
|
1998-12-02 02:57:11 -05:00
|
|
|
${MKDIR} ${WRKSRC}/lisp/its
|
|
|
|
${CP} ${WRKDIR}/lisp/its/* ${WRKSRC}/lisp/its/
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(ORIGINAL)
|
|
|
|
post-patch:
|
|
|
|
.if !defined(MEW_ORG_PATCH)
|
2000-04-14 12:47:49 -04:00
|
|
|
cd ${WRKSRC}; ${PATCH} --forward --quiet -E -p0 < ${WRKDIR}/patch-${EMACS_VERSION}
|
|
|
|
cd ${WRKSRC}; ${PATCH} --forward --quiet -E -p0 < ${WRKDIR}/Mule-${MULE_VERSION}-${EMACS_VERSION}.patch
|
1998-12-02 02:57:11 -05:00
|
|
|
cd ${WRKSRC}; ${PATCH} --forward --quiet -E -p0 < ${WRKDIR}/extra.patch
|
|
|
|
.if defined(MEW_PATCH)
|
2000-04-14 12:47:49 -04:00
|
|
|
cd ${WRKSRC}/lisp; ${PATCH} --forward --quiet -E -p0 < ${WRKDIR}/mew/egg.el-${EMACS_VERSION}.patch-for_katayama
|
1998-12-02 02:57:11 -05:00
|
|
|
.endif
|
|
|
|
.else
|
2000-04-14 12:47:49 -04:00
|
|
|
cd ${WRKSRC}/lisp; ${PATCH} --forward --quiet -E -p0 < ${WRKDIR}/mew/egg.el-${EMACS_VERSION}.patch
|
1998-12-02 02:57:11 -05:00
|
|
|
.endif
|
|
|
|
.if defined(MEW_PATCH) || defined(MEW_ORG_PATCH)
|
2000-04-14 12:47:49 -04:00
|
|
|
cd ${WRKSRC}/lisp; ${PATCH} --forward --quiet -E -p0 < ${WRKDIR}/mew/canna.el-${EMACS_VERSION}.patch
|
1998-12-02 02:57:11 -05:00
|
|
|
cd ${WRKSRC}/lisp; ${PATCH} --forward --quiet -E -p0 < ${WRKDIR}/mew/sj3-egg.el.patch
|
|
|
|
.endif
|
|
|
|
.endif
|
1997-09-10 04:51:26 -04:00
|
|
|
|
1995-04-20 14:23:12 -04:00
|
|
|
pre-build:
|
1997-09-10 04:51:26 -04:00
|
|
|
find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
|
2000-04-14 12:47:49 -04:00
|
|
|
${RM} -f ${WRKSRC}/etc/DOC* ${WRKSRC}/src/emacs ${WRKSRC}/src/emacs-${EMACS_VERSION}.*
|
1994-11-22 18:59:14 -05:00
|
|
|
|
1998-12-02 02:57:11 -05:00
|
|
|
post-build:
|
|
|
|
# bytecompile elisps for Japanese input method
|
|
|
|
for file in ${COMP_ELC}; do \
|
|
|
|
target="$$target ${ELC_DIR}/$$file"; \
|
|
|
|
done; \
|
|
|
|
cd ${WRKSRC}/src; \
|
|
|
|
./temacs -batch -l mule-inst.el $$target
|
|
|
|
|
1995-04-22 08:39:19 -04:00
|
|
|
post-install:
|
2000-06-23 11:37:57 -04:00
|
|
|
# DOC* must be installed by a port for mule except mule-common
|
|
|
|
${RM} ${PREFIX}/share/mule/19.34/etc/DOC
|
|
|
|
${RM} ${PREFIX}/share/mule/19.34/etc/DOC-19.34.1
|
1998-10-07 04:11:41 -04:00
|
|
|
# note that any2ps rcs-checkin are scripts
|
|
|
|
.for file in b2m coco ctags emacsclient etags m2ps
|
|
|
|
strip ${PREFIX}/bin/${file}
|
|
|
|
.endfor
|
2000-04-14 12:47:49 -04:00
|
|
|
if [ ! -f ${PREFIX}/share/mule/${EMACS_VERSION}/info/dir ]; then \
|
|
|
|
${MKDIR} ${PREFIX}/share/mule/${EMACS_VERSION}/info; \
|
1998-10-07 04:11:41 -04:00
|
|
|
fi
|
|
|
|
.for info in emacs vip viper forms gnus mh-e cl sc dired-x ediff ccmode message
|
1997-05-21 03:24:28 -04:00
|
|
|
install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir
|
|
|
|
.endfor
|
|
|
|
# Our makeinfo can't handle files with Japanese characters. :<
|
|
|
|
install-info --section="The Emacs editor and associated tools" --entry="* Antenews-jp: (antenews-jp). Version 19 Antenews. (Japanese)" ${PREFIX}/info/antenews-jp ${PREFIX}/info/dir
|
1997-06-08 08:55:04 -04:00
|
|
|
install-info --section="The Emacs editor and associated tools" --entry="* Mule: (mule). Multilingual Enhancement to GNU Emacs." ${PREFIX}/info/mule ${PREFIX}/info/dir
|
|
|
|
install-info --section="The Emacs editor and associated tools" --entry="* Mule-jp: (mule-jp). Multilingual Enhancement to GNU Emacs. (Japanese)" ${PREFIX}/info/mule-jp ${PREFIX}/info/dir
|
|
|
|
install-info --section="The Emacs editor and associated tools" --entry="* Egg-jp: (egg-jp). Japanese/Chinese Inputting Method. (Japanese)" ${PREFIX}/info/egg-jp ${PREFIX}/info/dir
|
|
|
|
install-info --section="The Emacs editor and associated tools" --entry="* Canna-jp: (canna-jp). Another Japanese Inputting Method. (Japanese)" ${PREFIX}/info/canna-jp ${PREFIX}/info/dir
|
2000-10-08 06:23:48 -04:00
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
1997-09-10 04:51:26 -04:00
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
|
1998-10-07 04:11:41 -04:00
|
|
|
if [ ! -f ${STARTUP_SCRIPT} ]; then \
|
|
|
|
${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \
|
2000-07-09 06:26:22 -04:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/mule.sh ${STARTUP_SCRIPT}; \
|
1998-10-07 04:11:41 -04:00
|
|
|
fi
|
1997-09-10 04:51:26 -04:00
|
|
|
|
|
|
|
post-package:
|
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${PACKAGE_COOKIE}
|
1995-04-22 08:39:19 -04:00
|
|
|
|
1999-07-01 19:15:54 -04:00
|
|
|
.include <bsd.port.post.mk>
|