1998-10-07 08:11:41 +00:00
|
|
|
# New ports collection makefile for: mule 2.3@19.34
|
|
|
|
# Version required: 2.3@19.34
|
1997-09-10 08:51:26 +00:00
|
|
|
# Date created: 6 July 1997
|
1999-05-01 04:03:48 +00:00
|
|
|
# Whom: Satoshi Taoka <taoka@FreeBSD.org>
|
1994-11-22 23:59:14 +00:00
|
|
|
#
|
1999-05-01 04:03:48 +00:00
|
|
|
# $Id: Makefile,v 1.37 1999/03/08 07:28:24 asami Exp $
|
1994-11-22 23:59:14 +00:00
|
|
|
#
|
|
|
|
|
1995-09-15 01:41:34 +00:00
|
|
|
DISTNAME= mule-2.3
|
1997-09-10 08:51:26 +00:00
|
|
|
PKGNAME?= mule-2.3
|
|
|
|
CATEGORIES?= editors
|
|
|
|
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 08:11:41 +00:00
|
|
|
http://www.infonets.hiroshima-u.ac.jp/~taoka/FreeBSD/mule/
|
|
|
|
DISTFILES= emacs-19.34b.tar.gz mule-2.3-19.34.patch-981002.tar.gz
|
|
|
|
|
|
|
|
PATCH_SITES= ftp://etlport.etl.go.jp/pub/mule/
|
|
|
|
PATCHFILES= mule-23-1934-alpha01.diff.gz
|
|
|
|
PATCH_DIST_STRIP= -p1
|
1995-03-28 06:21:05 +00:00
|
|
|
|
1999-05-01 04:03:48 +00:00
|
|
|
MAINTAINER?= taoka@FreeBSD.org
|
1995-04-09 06:11:17 +00:00
|
|
|
|
1998-10-07 08:11:41 +00:00
|
|
|
RUN_DEPENDS= ${PREFIX}/share/${EMACS_PREFIX}/19.34/lisp/mule.el:${PORTSDIR}/editors/mule-common
|
1997-09-10 08:51:26 +00:00
|
|
|
LIB_DEPENDS= ${LIB_INPUT_METHOD}
|
|
|
|
BUILD_DEPENDS= ${BUILD_INPUT_METHOD}
|
|
|
|
|
1998-12-02 08:40:00 +00:00
|
|
|
USE_XLIB= yes
|
1998-10-07 08:11:41 +00:00
|
|
|
EXTRACT_ONLY= emacs-19.34b.tar.gz
|
|
|
|
WRKSRC= ${WRKDIR}/emacs-19.34
|
1997-09-10 08:51:26 +00:00
|
|
|
PATCHDIR= ${.CURDIR}/../../editors/mule-common/patches
|
|
|
|
FILESDIR= ${.CURDIR}/../../editors/mule-common/files
|
|
|
|
SCRIPTDIR= ${.CURDIR}/../../editors/mule-common/scripts
|
|
|
|
PLIST= ${.CURDIR}/../../editors/mule/pkg/PLIST
|
|
|
|
INSTALL_COOKIE= ${WRKDIR}/.install_done-${PKGNAME}
|
|
|
|
PACKAGE_COOKIE= ${WRKDIR}/.package_done-${PKGNAME}
|
1996-08-16 09:43:57 +00:00
|
|
|
GNU_CONFIGURE= yes
|
1995-04-09 06:11:17 +00:00
|
|
|
USE_GMAKE= yes
|
1998-10-07 08:11:41 +00:00
|
|
|
MAKE_ENV= LIBDIR="${LIBDIR}"
|
|
|
|
# /usr/bin/sed should be used because configure script includes 'Ctrl-L'
|
|
|
|
CONFIGURE_ENV= PATH=/usr/bin:$$PATH
|
|
|
|
EMACS_PREFIX= mule
|
|
|
|
EMACS_EXECUTABLE = mule
|
1999-03-08 07:28:36 +00:00
|
|
|
CONFIGURE_ARGS= --with-executable=${EMACS_EXECUTABLE} \
|
1998-10-07 08:11:41 +00:00
|
|
|
--with-emacs-prefix=${EMACS_PREFIX} \
|
|
|
|
--with-terminal-face \
|
1997-09-10 08:51:26 +00:00
|
|
|
--x-includes=${X11BASE}/include --x-libraries=${X11BASE}/lib \
|
|
|
|
${WITH_INPUT_METHOD} ${WITH_DIALOGS}
|
1995-04-09 06:11:17 +00:00
|
|
|
STRIP=
|
1997-09-10 08:51:26 +00:00
|
|
|
|
|
|
|
INSTALL_TARGET= install-arch-dep
|
|
|
|
|
|
|
|
.if defined(CANNA)
|
1998-09-21 22:33:26 +00:00
|
|
|
LIB_INPUT_METHOD+= canna.1:${PORTSDIR}/japanese/Canna
|
1998-10-07 08:11:41 +00:00
|
|
|
WITH_INPUT_METHOD+= --with-canna --with-canna-libraries=${PREFIX}/lib \
|
|
|
|
--with-canna-includes=${PREFIX}/include
|
1997-09-10 08:51:26 +00:00
|
|
|
.endif
|
|
|
|
.if defined(SJ3)
|
|
|
|
BUILD_INPUT_METHOD+=sj3serv:${PORTSDIR}/japanese/sj3
|
1998-10-07 08:11:41 +00:00
|
|
|
WITH_INPUT_METHOD+= --with-sj3
|
1997-09-10 08:51:26 +00:00
|
|
|
.endif
|
|
|
|
.if defined(WNN4)
|
|
|
|
BUILD_INPUT_METHOD+=${PREFIX}/bin/Wnn4/jserver:${PORTSDIR}/japanese/Wnn
|
1998-10-07 08:11:41 +00:00
|
|
|
WITH_INPUT_METHOD+= --with-wnn4 --with-wnn-libraries=${X11BASE}/lib \
|
|
|
|
--with-wnn-includes=${X11BASE}/include/wnn
|
1997-09-10 08:51:26 +00:00
|
|
|
.elif defined(CWNN4)
|
|
|
|
BUILD_INPUT_METHOD+=${PREFIX}/bin/cWnn4/cserver:${PORTSDIR}/chinese/Wnn
|
1998-10-07 08:11:41 +00:00
|
|
|
WITH_INPUT_METHOD+= --with-wnn4 --with-wnn-libraries=${X11BASE}/lib/libcwnn.a \
|
|
|
|
--with-wnn-includes=${X11BASE}/include/cwnn
|
1997-09-10 08:51:26 +00:00
|
|
|
.elif defined(KWNN4)
|
|
|
|
BUILD_INPUT_METHOD+=${PREFIX}/bin/kWnn4/kserver:${PORTSDIR}/korean/Wnn
|
1998-10-07 08:11:41 +00:00
|
|
|
WITH_INPUT_METHOD+= --with-wnn4 --with-wnn-libraries=${X11BASE}/lib/libkwnn.a \
|
|
|
|
--with-wnn-includes=${X11BASE}/include/kwnn
|
1997-09-10 08:51:26 +00:00
|
|
|
.elif defined(WNN6)
|
|
|
|
BUILD_INPUT_METHOD+=${PREFIX}/include/wnn/jlib.h:${PORTSDIR}/japanese/Wnn6-lib
|
1998-10-07 08:11:41 +00:00
|
|
|
WITH_INPUT_METHOD+= --with-wnn6 --with-wnn-libraries=${PREFIX}/lib/libwnn.a \
|
|
|
|
--with-wnn-includes=${PREFIX}/include/wnn
|
1997-09-10 08:51:26 +00:00
|
|
|
.endif
|
1998-10-07 08:11:41 +00:00
|
|
|
COMP_ELC= egg.elc wnn-egg.elc sj3-client.elc sj3-egg.elc canna.elc
|
|
|
|
ELC_DIR= ../lisp
|
1997-09-10 08:51:26 +00:00
|
|
|
|
|
|
|
WITH_DIALOGS= --with-x-toolkit
|
|
|
|
|
1998-10-07 08:11:41 +00:00
|
|
|
SITE_START=${PREFIX}/share/${EMACS_PREFIX}/19.34/site-lisp/site-start.el
|
1997-09-10 08:51:26 +00:00
|
|
|
|
1998-10-07 08:11:41 +00:00
|
|
|
# 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 08:51:26 +00:00
|
|
|
post-extract:
|
1999-02-03 11:12:01 +00:00
|
|
|
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/mule-2.3-19.34.patch-981002.tar.gz ${EXTRACT_AFTER_ARGS} -C ${WRKDIR}
|
1998-10-07 08:11:41 +00:00
|
|
|
${CP} ${FILESDIR}/unexfreebsd.c ${WRKSRC}/src
|
|
|
|
.if !defined(ORIGINAL) && !defined(MEW_ORG_PATCH)
|
1999-02-03 11:12:01 +00:00
|
|
|
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKDIR}/takana-19.34.tar.gz ${EXTRACT_AFTER_ARGS} -C ${WRKDIR}
|
1998-10-07 08:11:41 +00:00
|
|
|
${MKDIR} ${WRKSRC}/lisp/its
|
|
|
|
${CP} ${WRKDIR}/lisp/its/* ${WRKSRC}/lisp/its/
|
|
|
|
.endif
|
1997-09-10 08:51:26 +00:00
|
|
|
|
1998-10-07 08:11:41 +00:00
|
|
|
.if !defined(ORIGINAL)
|
1997-09-10 08:51:26 +00:00
|
|
|
post-patch:
|
1998-10-07 08:11:41 +00:00
|
|
|
.if !defined(MEW_ORG_PATCH)
|
|
|
|
cd ${WRKSRC}; ${PATCH} --forward --quiet -E -p0 < ${WRKDIR}/patch-19.34
|
|
|
|
cd ${WRKSRC}; ${PATCH} --forward --quiet -E -p0 < ${WRKDIR}/Mule-2.3-19.34.patch
|
|
|
|
cd ${WRKSRC}; ${PATCH} --forward --quiet -E -p0 < ${WRKDIR}/extra.patch
|
|
|
|
.if defined(MEW_PATCH)
|
|
|
|
cd ${WRKSRC}/lisp; ${PATCH} --forward --quiet -E -p0 < ${WRKDIR}/mew/egg.el-19.34.patch-for_katayama
|
|
|
|
.endif
|
|
|
|
.else
|
|
|
|
cd ${WRKSRC}/lisp; ${PATCH} --forward --quiet -E -p0 < ${WRKDIR}/mew/egg.el-19.34.patch
|
|
|
|
.endif
|
|
|
|
.if defined(MEW_PATCH) || defined(MEW_ORG_PATCH)
|
|
|
|
cd ${WRKSRC}/lisp; ${PATCH} --forward --quiet -E -p0 < ${WRKDIR}/mew/canna.el-19.34.patch
|
|
|
|
cd ${WRKSRC}/lisp; ${PATCH} --forward --quiet -E -p0 < ${WRKDIR}/mew/sj3-egg.el.patch
|
|
|
|
.endif
|
|
|
|
.endif
|
1995-04-09 06:11:17 +00:00
|
|
|
|
1995-04-20 18:23:12 +00:00
|
|
|
pre-build:
|
1997-09-10 08:51:26 +00:00
|
|
|
find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
|
1998-10-07 08:11:41 +00:00
|
|
|
${RM} -f ${WRKSRC}/etc/DOC* ${WRKSRC}/src/emacs ${WRKSRC}/src/emacs-19.34.*
|
|
|
|
|
|
|
|
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
|
1994-11-22 23:59:14 +00:00
|
|
|
|
1998-05-02 21:07:10 +00:00
|
|
|
# If site-start.el exists, you should run below when you install by
|
|
|
|
# this port
|
|
|
|
pre-install:
|
|
|
|
@if [ -f ${SITE_START} ]; then \
|
|
|
|
${MV} ${SITE_START} ${SITE_START}.orig ; \
|
1998-10-07 08:11:41 +00:00
|
|
|
${SED} -e '/;; BEGIN mule-family/,/;; END mule-family/d' \
|
|
|
|
${SITE_START}.orig > ${SITE_START}; \
|
|
|
|
fi
|
1998-05-02 21:07:10 +00:00
|
|
|
|
1995-04-22 12:39:19 +00:00
|
|
|
post-install:
|
1998-10-07 08:11:41 +00:00
|
|
|
strip ${PREFIX}/bin/${EMACS_EXECUTABLE}-19.34
|
1997-09-10 08:51:26 +00:00
|
|
|
# for wnn4+sj3 or wnn6+sj3
|
|
|
|
@if [ -e ${PKGDIR}/INSTALL ]; then \
|
|
|
|
${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL; \
|
1997-05-21 07:24:28 +00:00
|
|
|
fi
|
1997-09-10 08:51:26 +00:00
|
|
|
# Installing site-start.el
|
|
|
|
# (we redefun set-korean-environment etc)
|
|
|
|
.if defined(CWNN4)
|
1998-10-07 08:11:41 +00:00
|
|
|
${SED} -e 's/;;\(.*\);;CHINESE$$/\1;;CHINESE/' \
|
1997-09-10 08:51:26 +00:00
|
|
|
-e 's/;;\(.*\);;not KOREAN$$/\1;;not KOREAN/' \
|
1998-10-07 08:11:41 +00:00
|
|
|
-e 's,%%X11BASE%%,${X11BASE},' \
|
|
|
|
-e 's,%%LOCALBASE%%,${LOCALBASE},' \
|
|
|
|
${FILESDIR}/site-start.el.tmpl >> ${SITE_START}
|
1997-09-10 08:51:26 +00:00
|
|
|
.elif defined(KWNN4)
|
1998-10-07 08:11:41 +00:00
|
|
|
${SED} -e 's/;;\(.*\);;KOREAN$$/\1;;KOREAN/' \
|
|
|
|
-e 's,%%X11BASE%%,${X11BASE},' \
|
|
|
|
-e 's,%%LOCALBASE%%,${LOCALBASE},' \
|
|
|
|
${FILESDIR}/site-start.el.tmpl >> ${SITE_START}
|
1997-09-10 08:51:26 +00:00
|
|
|
.else
|
1998-10-07 08:11:41 +00:00
|
|
|
${SED} -e 's/;;\(.*\);;not KOREAN$$/\1;;not KOREAN/' \
|
|
|
|
-e 's,%%X11BASE%%,${X11BASE},' \
|
|
|
|
-e 's,%%LOCALBASE%%,${LOCALBASE},' \
|
|
|
|
${FILESDIR}/site-start.el.tmpl >> ${SITE_START}
|
1997-09-10 08:51:26 +00:00
|
|
|
.endif
|
1998-10-07 08:11:41 +00:00
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
|
1997-09-10 08:51:26 +00:00
|
|
|
|
|
|
|
post-package:
|
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${PACKAGE_COOKIE}
|
1995-04-22 12:39:19 +00:00
|
|
|
|
1994-11-22 23:59:14 +00:00
|
|
|
.include <bsd.port.mk>
|