2002-02-28 23:16:14 -05:00
|
|
|
# New ports collection makefile for: coco
|
|
|
|
# Date created: 2 December 2001
|
|
|
|
# Whom: Teruaki Ata <PFA03027@nifty.ne.jp>
|
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
|
|
|
#
|
|
|
|
|
2002-02-28 23:16:14 -05:00
|
|
|
PORTNAME= coco
|
|
|
|
PORTVERSION= ${MULE_VERSION}
|
|
|
|
CATEGORIES= textproc
|
2001-12-03 09:02:22 -05:00
|
|
|
MASTER_SITES= ftp://ftp.m17n.org/pub/mule/ \
|
|
|
|
ftp://ftp.jaist.ac.jp/pub/GNU/mule/ \
|
1998-10-07 04:11:41 -04:00
|
|
|
http://www.infonets.hiroshima-u.ac.jp/~taoka/FreeBSD/mule/
|
2001-12-03 09:02:22 -05:00
|
|
|
DISTFILES= mule-${MULE_VERSION}-${EMACS_VERSION}.tar.gz \
|
2000-04-14 12:47:49 -04:00
|
|
|
mule-${MULE_VERSION}-${EMACS_VERSION}.patch-981002.tar.gz
|
1998-10-07 04:11:41 -04:00
|
|
|
|
2002-02-28 23:16:14 -05:00
|
|
|
MAINTAINER= PFA03027@nifty.ne.jp
|
2003-02-21 08:42:50 -05:00
|
|
|
COMMENT= Code converter for any of Mule's code
|
1997-09-10 04:51:26 -04:00
|
|
|
|
2002-02-28 23:16:14 -05:00
|
|
|
MAN1= coco.1 m2ps.1
|
|
|
|
MANCOMPRESSED= no
|
1999-07-01 19:15:54 -04:00
|
|
|
|
2001-12-03 09:02:22 -05:00
|
|
|
WRKSRC= ${WRKDIR}/mule-${MULE_VERSION}-${EMACS_VERSION}
|
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
|
2002-02-28 23:16:14 -05:00
|
|
|
MULE_VERSION= 2.3
|
|
|
|
EMACS_VERSION= 19.34
|
1997-09-10 04:51:26 -04:00
|
|
|
|
2002-02-28 23:16:14 -05:00
|
|
|
INSTALL_TARGET= install-coco install-m2ps
|
1998-12-02 02:57:11 -05:00
|
|
|
|
2002-02-28 23:16:14 -05:00
|
|
|
# extract patches for mule2.3 based on emacs-19.34b
|
1997-09-10 04:51:26 -04:00
|
|
|
post-extract:
|
2002-02-28 23:16:14 -05: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
|
|
|
|
2002-02-28 23:16:14 -05:00
|
|
|
# apply patches to mule2.3 before appling FreeBSD patches
|
|
|
|
pre-patch:
|
2000-04-14 12:47:49 -04:00
|
|
|
cd ${WRKSRC}; ${PATCH} --forward --quiet -E -p0 < ${WRKDIR}/Mule-${MULE_VERSION}-${EMACS_VERSION}.patch
|
1997-09-10 04:51:26 -04:00
|
|
|
|
2002-02-28 23:16:14 -05:00
|
|
|
# delete dust files before build
|
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
|
|
|
|
2002-02-28 23:16:14 -05:00
|
|
|
.include <bsd.port.mk>
|