head	1.7;
access;
symbols
	RELEASE_8_3_0:1.5
	RELEASE_9_0_0:1.5
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.5
	RELEASE_8_1_0:1.5
	RELEASE_7_3_0:1.5
	RELEASE_8_0_0:1.5
	RELEASE_7_2_0:1.5
	RELEASE_7_1_0:1.4
	RELEASE_6_4_0:1.4
	RELEASE_5_EOL:1.4
	RELEASE_7_0_0:1.4
	RELEASE_6_3_0:1.4
	PRE_XORG_7:1.4
	RELEASE_4_EOL:1.4
	RELEASE_6_2_0:1.3
	RELEASE_6_1_0:1.3
	RELEASE_5_5_0:1.3
	RELEASE_6_0_0:1.3
	RELEASE_5_4_0:1.3
	RELEASE_4_11_0:1.3
	RELEASE_5_3_0:1.3
	RELEASE_4_10_0:1.3
	RELEASE_5_2_1:1.2
	RELEASE_5_2_0:1.2
	RELEASE_4_9_0:1.2
	RELEASE_5_1_0:1.2
	RELEASE_4_8_0:1.2;
locks; strict;
comment	@# @;


1.7
date	2012.11.17.05.58.48;	author svnexp;	state Exp;
branches;
next	1.6;

1.6
date	2012.11.10.12.14.49;	author pawel;	state Exp;
branches;
next	1.5;

1.5
date	2009.03.25.12.35.48;	author arved;	state Exp;
branches;
next	1.4;

1.4
date	2006.12.27.20.22.28;	author linimon;	state Exp;
branches;
next	1.3;

1.3
date	2004.02.04.05.21.32;	author marcus;	state Exp;
branches;
next	1.2;

1.2
date	2003.02.17.13.53.37;	author leeym;	state Exp;
branches;
next	1.1;

1.1
date	2003.01.18.10.12.08;	author edwin;	state Exp;
branches;
next	;


desc
@@


1.7
log
@Switch exporter over
@
text
@# Created by: Guy Antony Halse <guy@@rucus.ru.za.za>
# $FreeBSD: head/lang/cocor/Makefile 307273 2012-11-10 12:14:49Z pawel $

PORTNAME=	cocor
PORTVERSION=	1.7
PORTREVISION=	2
CATEGORIES=	lang
MASTER_SITES=	ftp://ftp.psg.com/pub/modula-2/coco/ \
		ftp://ftp.ssw.uni-linz.ac.at/pub/Coco/C/ \
		http://www.scifac.ru.ac.za/coco/
DISTNAME=	${PORTNAME}c${PORTVERSION:S/.//}
EXTRACT_SUFX=	.tgz

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Compiler generator that combines the functionality of lex and yacc

NO_WRKSUBDIR=	yes

USE_DOS2UNIX=	yes
MAKE_ENV=	CRFRAMES="${WRKSRC}/frames"
MAKEFILE=	unix.mk
ALL_TARGET=	all1
MAKE_JOBS_SAFE=	yes

MAN1=		${PORTNAME}.1

.include <bsd.port.options.mk>

post-patch:
.for i in sources/unix.mk taste/unix.mk
	@@${REINPLACE_CMD} -e 's|^CFLAGS|#CFLAGS|' ${WRKSRC}/${i}
.endfor
.for i in cplus2 taste taste_cp
	@@${RM} -f ${WRKSRC}/${i}/unix.mk.*
.endfor

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/docs/${PORTNAME}.1 ${MANPREFIX}/man/man1
	@@${MKDIR} ${PREFIX}/lib/${PORTNAME}
.for i in cplus2 taste taste_cp
	@@(cd ${WRKSRC}; ${COPYTREE_SHARE} ${i} ${PREFIX}/lib/${PORTNAME})
.endfor
	@@${MKDIR} ${DATADIR}
	@@(cd ${WRKSRC}/frames; ${COPYTREE_SHARE} . ${DATADIR})
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/coco.use ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/cocol ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
	@@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/samples/*.atg ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/samples/*.inp ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>
@


1.6
log
@SVN rev 307273 on 2012-11-10 12:14:49Z by pawel

- Update MASTER_SITES
- Support NO_WRKSUBDIR
- Support COPYTREE_SHARE
- Support PORTEXAMPLES
- Add MAKE_JOBS_SAFE

PR:		ports/172025
Submitted by:	KATO Tsuguru <tkato432@@yahoo.com>
Feature safe:	yes
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.5
log
@Fix make -j
@
text
@d1 1
a1 4
# New ports collection makefile for:	cocor
# Date Created: 			24 March 2002
# Whom: 				Guy Antony Halse <guy@@rucus.ru.za.za>
#
a2 1
#
d6 1
a6 1
PORTREVISION=	1
d8 4
a11 2
MASTER_SITES=	http://www.scifac.ru.ac.za/coco/
DISTNAME=	cocorc17
d15 1
a15 1
COMMENT=	A compiler generator that combines the functionality of lex and yacc
d17 5
a21 1
WRKSRC=		${WRKDIR}
d23 5
a27 14
MAKE_ENV+=	CRFRAMES=${WRKSRC}/frames
CFLAGS+=	-I${WRKSRC}/cplus2
PLIST_SUB+=	FRAMES=${CRFRAMES}
CRFRAMES?=	${PREFIX}/lib/cocor

MAN1=		cocor.1

post-extract:
	${LN} -s ${WRKSRC}/unix.mk ${WRKSRC}/Makefile

pre-patch:
	uudecode -p ${WRKSRC}/dos2unix.uue > ${WRKSRC}/dos2unix.sh
	${CHMOD} +x ${WRKSRC}/dos2unix.sh
	cd ${WRKSRC} && ./dos2unix.sh unix.mk && ${MAKE} -f unix.mk dos2unix
d30 6
a35 2
	${REINPLACE_CMD} -e "s,^MAKE,#MAKE," ${WRKSRC}/Makefile
	${RM} ${WRKSRC}/taste/unix.mk.orig
d38 5
a42 9
	${INSTALL_PROGRAM} ${WRKSRC}/cocor ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/docs/cocor.1 ${PREFIX}/man/man1
	${MKDIR} -m 755 ${CRFRAMES}
	${CP} -r ${WRKSRC}/frames/* ${CRFRAMES} && \
		${FIND} ${CRFRAMES} -type f -exec ${CHMOD} 644 {} \; && \
		${FIND} ${CRFRAMES} -type d -exec ${CHMOD} 755 {} \;
	${MKDIR} -m 755 ${PREFIX}/share/cocor
.for i in samples cplus2 taste taste_cp docs
	${CP} -r ${WRKSRC}/${i} ${PREFIX}/share/cocor
d44 12
a55 2
	${FIND} ${PREFIX}/share/cocor -type f -exec ${CHMOD} 644 {} \; && \
	${FIND} ${PREFIX}/share/cocor -type d -exec ${CHMOD} 755 {} \;
@


1.4
log
@Maintainer's email address bounces.

Hat:		portmgr
@
text
@a21 1
USE_GMAKE=	yes
d36 4
@


1.3
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 2)
@
text
@d16 1
a16 1
MAINTAINER=	guy-ezmlm@@rucus.ru.ac.za
@


1.2
log
@update to cocor-1.7, switch to new master site and apply COMMENT.

PR:		48380
Submitted by:	Guy Antony Halse <guy@@rucus.net>
@
text
@d10 1
@


1.1
log
@New port: lang/cocor (Coco/R, a compiler generator)

	Coco/R is a recursive decent compiler generator.  This is
	a FreeBSD port of the C/C++ version of Coco/R.

PR:		ports/36251
Submitted by:	Guy Antony Halse <guy@@rucus.ru.ac.za>
@
text
@d9 1
a9 1
PORTVERSION=	1.6
d11 2
a12 2
MASTER_SITES=	ftp://cs.ru.ac.za/pub/coco/
DISTNAME=	cocorc16
d16 1
@

