# New ports collection makefile for:   coco
# Date created:     2 December 2001
# Whom:             Teruaki Ata <PFA03027@nifty.ne.jp>
#
# $FreeBSD$
#

PORTNAME=       coco
PORTVERSION=    ${MULE_VERSION}
PORTREVISION=	1
CATEGORIES=     textproc
MASTER_SITES=	ftp://ftp.m17n.org/pub/mule/ \
		ftp://ftp.jaist.ac.jp/pub/GNU/mule/ \
		http://www.infonets.hiroshima-u.ac.jp/~taoka/FreeBSD/mule/
DISTFILES=	mule-${MULE_VERSION}-${EMACS_VERSION}.tar.gz \
		mule-${MULE_VERSION}-${EMACS_VERSION}.patch-981002.tar.gz

MAINTAINER=     PFA03027@nifty.ne.jp
COMMENT=	Code converter for any of Mule's code

MAN1=           coco.1 m2ps.1
MANCOMPRESSED=  no

WRKSRC=		${WRKDIR}/mule-${MULE_VERSION}-${EMACS_VERSION}
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
EMACS_PREFIX=	mule
MULE_VERSION=	2.3
EMACS_VERSION=	19.34

INSTALL_TARGET=	install-coco install-m2ps

.include <bsd.port.pre.mk>

.if ${ARCH} != "i386"
BROKEN=		"Does not compile on !i386"
.endif

# extract patches for mule2.3 based on emacs-19.34b
post-extract:
	${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/mule-${MULE_VERSION}-${EMACS_VERSION}.patch-981002.tar.gz ${EXTRACT_AFTER_ARGS} -C ${WRKDIR}
	${CP} ${FILESDIR}/unexfreebsd.c ${WRKSRC}/src

# apply patches to mule2.3 before appling FreeBSD patches
pre-patch:
	cd ${WRKSRC}; ${PATCH} --forward --quiet -E -p0 < ${WRKDIR}/Mule-${MULE_VERSION}-${EMACS_VERSION}.patch

# delete dust files before build
pre-build:
	${FIND} ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
	${RM} -f ${WRKSRC}/etc/DOC* ${WRKSRC}/src/emacs ${WRKSRC}/src/emacs-${EMACS_VERSION}.*

.include <bsd.port.post.mk>
devel/electron4/files/bl-1.2.3</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/elliptic-6.5.3'>dependabot/npm_and_yarn/devel/electron4/files/elliptic-6.5.3</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/elliptic-6.5.4'>dependabot/npm_and_yarn/devel/electron4/files/elliptic-6.5.4</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/ini-1.3.7'>dependabot/npm_and_yarn/devel/electron4/files/ini-1.3.7</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19'>dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/lodash.merge-4.6.2'>dependabot/npm_and_yarn/devel/electron4/files/lodash.merge-4.6.2</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.2'>dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.2</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.3'>dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.3</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/node-fetch-2.6.1'>dependabot/npm_and_yarn/devel/electron4/files/node-fetch-2.6.1</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/serve-10.1.2'>dependabot/npm_and_yarn/devel/electron4/files/serve-10.1.2</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/y18n-3.2.2'>dependabot/npm_and_yarn/devel/electron4/files/y18n-3.2.2</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3'>dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.4'>dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.4</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8'>dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/lodash-4.17.19'>dependabot/npm_and_yarn/devel/electron6/files/lodash-4.17.19</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/lodash.merge-4.6.2'>dependabot/npm_and_yarn/devel/electron6/files/lodash.merge-4.6.2</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/node-fetch-2.6.1'>dependabot/npm_and_yarn/devel/electron6/files/node-fetch-2.6.1</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/serve-10.1.2'>dependabot/npm_and_yarn/devel/electron6/files/serve-10.1.2</option>
<option value='gnome-3.22'>gnome-3.22</option>
<option value='gnome-3.24'>gnome-3.24</option>
<option value='gnome-3.26'>gnome-3.26</option>
<option value='gnome-3.28'>gnome-3.28</option>
<option value='gnome-3.32'>gnome-3.32</option>
<option value='gnome-3.36'>gnome-3.36</option>
<option value='gstreamer'>gstreamer</option>
<option value='gstreamer-1.16'>gstreamer-1.16</option>
<option value='gstreamer0.10-removal' selected='selected'>gstreamer0.10-removal</option>
<option value='main'>main</option>
<option value='master'>master</option>
<option value='mate-1.16'>mate-1.16</option>
<option value='mate-1.18'>mate-1.18</option>
<option value='mate-1.20'>mate-1.20</option>
<option value='mate-1.22'>mate-1.22</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/about/?h=gstreamer0.10-removal'>about</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/?h=gstreamer0.10-removal'>summary</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/refs/?h=gstreamer0.10-removal&amp;id=c6bcad0bccaed035e2549fb75032022bf18a96c4'>refs</a><a class='active' href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/sysutils/enteruser?h=gstreamer0.10-removal'>log</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/tree/sysutils/enteruser?h=gstreamer0.10-removal&amp;id=c6bcad0bccaed035e2549fb75032022bf18a96c4'>tree</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/sysutils/enteruser?h=gstreamer0.10-removal&amp;id=c6bcad0bccaed035e2549fb75032022bf18a96c4'>commit</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/diff/sysutils/enteruser?h=gstreamer0.10-removal&amp;id=c6bcad0bccaed035e2549fb75032022bf18a96c4'>diff</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/stats/sysutils/enteruser?h=gstreamer0.10-removal'>stats</a></td><td class='form'><form class='right' method='get' action='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/sysutils/enteruser'>
<input type='hidden' name='h' value='gstreamer0.10-removal'/><input type='hidden' name='id' value='c6bcad0bccaed035e2549fb75032022bf18a96c4'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/?h=gstreamer0.10-removal&amp;id=c6bcad0bccaed035e2549fb75032022bf18a96c4'>root</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/sysutils?h=gstreamer0.10-removal&amp;id=c6bcad0bccaed035e2549fb75032022bf18a96c4'>sysutils</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/sysutils/enteruser?h=gstreamer0.10-removal&amp;id=c6bcad0bccaed035e2549fb75032022bf18a96c4'>enteruser</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/sysutils/enteruser?h=gstreamer0.10-removal&amp;id=c6bcad0bccaed035e2549fb75032022bf18a96c4&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Age</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/sysutils/enteruser?h=gstreamer0.10-removal&amp;id=88c8ebb578c87cdeac75f79f319d9f57f1990ce8'>Support STAGEDIR.</a></td><td>vanilla</td><td><span title='2013-11-09 13:55:32 +0800'>2013-11-09</span></td><td>2</td><td><span class='deletions'>-5</span>/<span class='insertions'>+3</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/sysutils/enteruser?h=gstreamer0.10-removal&amp;id=3cc71fd1c319ccf30e263f2ae10fb269f9a03dc3'>Add NO_STAGE all over the place in preparation for the staging support (cat: ...</a></td><td>bapt</td><td><span title='2013-09-21 07:05:58 +0800'>2013-09-21</span></td><td>1</td><td><span class='deletions'>-0</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/sysutils/enteruser?h=gstreamer0.10-removal&amp;id=f8d84df2018f0071d586d8c74fe89b3ebe61cbfc'>- Convert to new perl framework</a></td><td>az</td><td><span title='2013-08-03 16:45:51 +0800'>2013-08-03</span></td><td>1</td><td><span class='deletions'>-2</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/sysutils/enteruser?h=gstreamer0.10-removal&amp;id=92984c31a9d248748d28c2814972837159fa5861'>- Convert to use shebangfix USES flag</a></td><td>ehaupt</td><td><span title='2013-05-07 18:00:57 +0800'>2013-05-07</span></td><td>1</td><td><span class='deletions'>-10</span>/<span class='insertions'>+6</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/sysutils/enteruser?h=gstreamer0.10-removal&amp;id=bff37e0d2c02f2985df12f18eee7642763170d04'>Remove WWW entries from unmaintained ports that return 404 or where the domain</a></td><td>ehaupt</td><td><span title='2011-08-03 04:58:23 +0800'>2011-08-03</span></td><td>1</td><td><span class='deletions'>-2</span>/<span class='insertions'>+0</span></td></tr>