aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ptoc/Makefile
blob: 57a12e0aafc1257542c5c87013d26d35fbebb66f (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
49
50
51
52
53
# Created by: Andrey Zakhvatov
# $FreeBSD$

PORTNAME=   ptoc
PORTVERSION=    3.58
CATEGORIES= lang
MASTER_SITES=   http://www.garret.ru/

MAINTAINER= osa@FreeBSD.org
COMMENT=    ANSI/Turbo Pascal to C/C++ converter

WRKSRC=     ${WRKDIR}/${PORTNAME}

USE_XORG=   x11
USES=       bison

EXAMPLES=   arr.pas bgidemo.pas ccall.pas coord.txt dos.h dos.pas \
        func.pas hello.pas impact.pas lister.pas makefile.bsd \
        nested.pas objpas.pas polut2.pas printer.pas q2.txt \
        random.txt rename.cxx rename.pas set.pas str.pas test.c \
        test.cxx test.pas test.txt tpascal.pas trinor.pas \
        vibrkinp.pas vibrkinp.txt vibrtabl.pas war2.pas war2.txt \
        xy2.txt xy2orig.txt

NO_STAGE=   yes
pre-build:
    @${LN} -sf makefile.bsd ${WRKSRC}/Makefile
    @${LN} -sf makefile.bsd ${WRKSRC}/Xbgi/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/cganal ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/ptoc ${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/ptoc.cfg ${PREFIX}/etc
    ${INSTALL_DATA} ${WRKSRC}/libptoc.a ${PREFIX}/lib
    ${INSTALL_DATA} ${WRKSRC}/libXbgi.a ${PREFIX}/lib
    @${MKDIR} ${PREFIX}/include/ptoc
.for f in array.h graph.h io.h paslib.h ptoc.h set.h
    ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/include/ptoc
.endfor
    @${MKDIR} ${DATADIR}
.for f in graph.pas ptoc.pas tptoc.pas
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}
.endfor
    @${MKDIR} ${EXAMPLESDIR}
.for f in ${EXAMPLES}
    ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${EXAMPLESDIR}
.endfor
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/Readme.htm ${DOCSDIR}
.endif

.include <bsd.port.mk>