blob: 231565789a95b11e8afc85a0a668fc1e3335435e (
plain) (
blame)
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
|
# Created by: jmz
# $FreeBSD$
PORTNAME= p2c
PORTVERSION= 2.01
CATEGORIES= lang
MASTER_SITES= https://schneider.ncifcrf.gov/p2c/
MAINTAINER= ports@FreeBSD.org
COMMENT= Pascal to C translator
LICENSE= GPLv2
WRKSRC_SUBDIR= src
USES= perl5 shebangfix
SHEBANG_FILES= p2cc.perl
perl_OLD_CMD= /bin/perl
USE_PERL5= run
ALL_TARGET= all p2cc
pre-build:
@${RM} -f ${WRKSRC}/p2c.man.inst
post-build:
@${LN} -sf p2c.man.inst ${WRKSRC}/p2c.1
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} p2c \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC} && ${INSTALL_SCRIPT} p2cc \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC} && ${INSTALL_DATA} libp2c.a \
${STAGEDIR}${PREFIX}/lib)
@${MKDIR} ${STAGEDIR}${PREFIX}/include/p2c
(cd ${WRKSRC} && ${INSTALL_DATA} p2c.h \
${STAGEDIR}${PREFIX}/include/p2c)
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/p2c
(cd ${WRKSRC} && ${INSTALL_DATA} sys.p2crc \
${STAGEDIR}${PREFIX}/lib/p2c/p2crc)
.for i in loc.p2crc system.imp system.m2 turbo.imp string.pas
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} \
${STAGEDIR}${PREFIX}/lib/p2c)
.endfor
(cd ${WRKSRC} && ${INSTALL_MAN} p2c.1 \
${STAGEDIR}${MANPREFIX}/man/man1)
.include <bsd.port.mk>
|