blob: 5ae7b27ba5a4ba4526bf3b71e9d18cc29af69e0a (
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
|
# New ports collection makefile for: ptoc
# Version required: 3.41
# Date created: 10 December 1997
# Whom: Andrey Zakhvatov
#
# $Id: Makefile,v 1.7 1999/02/22 04:02:44 steve Exp $
#
DISTNAME= ptoc-3.41
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
http://www.ispras.ru/~knizhnik/
MASTER_SITE_SUBDIR= devel/lang/pascal
MAINTAINER= andy@icc.surw.chel.su
BROKEN= 'ptoc_3.34.tar.gz is all that is on the distsite'
MAKEFILE= makefile
USE_XLIB= yes
WRKSRC= ${WRKDIR}/ptoc
pre-build:
@ ${MV} ${WRKSRC}/makefile.bsd ${WRKSRC}/makefile
@ ${MV} ${WRKSRC}/Xbgi/makefile.bsd ${WRKSRC}/Xbgi/makefile
@ ${MV} ${WRKSRC}/examples/makefile.bsd ${WRKSRC}/examples/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 file in array.h graph.h io.h paslib.h ptoc.h set.h
@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/include/ptoc
.endfor
@ ${MKDIR} ${PREFIX}/share/ptoc
.for file in graph.pas ptoc.pas tptoc.pas
@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/ptoc
.endfor
@ ${MKDIR} ${PREFIX}/share/examples/ptoc
@ ${INSTALL_DATA} ${WRKSRC}/examples/makefile ${PREFIX}/share/examples/ptoc/Makefile
.for file in bgidemo.pas coord.txt hello.pas impact.pas lister.pas polut2.pas printer.pas q2.txt random.txt rename.pas set.pas test.pas tpascal.pas trinor.pas vibrkinp.pas vibrkinp.txt vibrtabl.pas war2.pas war2.txt xy2orig.txt
@ ${INSTALL_DATA} ${WRKSRC}/examples/${file} ${PREFIX}/share/examples/ptoc
.endfor
post-install:
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${PREFIX}/share/doc/ptoc
@ ${INSTALL_DATA} ${WRKSRC}/Readme.htm ${PREFIX}/share/doc/ptoc
.endif
.include <bsd.port.mk>
|