blob: 9a84eca7db84f529b57cca705ca1ddf45d0b5ec1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
PORTNAME= cocor
PORTVERSION= 1.7
PORTREVISION= 3
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/.//}
MAINTAINER= ports@FreeBSD.org
COMMENT= Compiler generator that combines the functionality of lex and yacc
NO_WRKSUBDIR= yes
USES= dos2unix tar:tgz
MAKE_ENV= CRFRAMES="${WRKSRC}/frames"
MAKEFILE= unix.mk
ALL_TARGET= all1
OPTIONS_DEFINE= DOCS EXAMPLES
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} ${WRKSRC}/${i}/unix.mk.*
.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/docs/${PORTNAME}.1 \
${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "cplus2 taste taste_cp" \
${STAGEDIR}${PREFIX}/lib/${PORTNAME})
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC}/frames && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
.for f in xref pretty taste
${CHMOD} u+w ${STAGEDIR}${PREFIX}/lib/cocor/taste/${f}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/cocor/taste/${f}
${CHMOD} u-w ${STAGEDIR}${PREFIX}/lib/cocor/taste/${f}
${CHMOD} u+w ${STAGEDIR}${PREFIX}/lib/cocor/taste_cp/${f}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/cocor/taste_cp/${f}
${CHMOD} u-w ${STAGEDIR}${PREFIX}/lib/cocor/taste_cp/${f}
.endfor
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/coco.use ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/cocol ${STAGEDIR}${DOCSDIR}
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/samples/*.atg ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/samples/*.inp ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
|