1998-03-27 10:51:23 +00:00
|
|
|
# New ports collection makefile for: ptoc
|
|
|
|
# Date created: 10 December 1997
|
|
|
|
# Whom: Andrey Zakhvatov
|
|
|
|
#
|
1999-08-25 06:35:40 +00:00
|
|
|
# $FreeBSD$
|
1998-03-27 10:51:23 +00:00
|
|
|
#
|
|
|
|
|
2000-04-12 06:21:15 +00:00
|
|
|
PORTNAME= ptoc
|
|
|
|
PORTVERSION= 3.41
|
1998-07-25 09:41:11 +00:00
|
|
|
CATEGORIES= lang
|
2000-02-12 20:54:54 +00:00
|
|
|
MASTER_SITES= ftp://ftp.netsw.org/netsw/SoftEng/Lang/Pascal/ \
|
|
|
|
ftp://ftp.u-aizu.ac.jp/pub/lang/netsw/Pascal/ \
|
|
|
|
ftp://ftp.ecrc.net/pub/netsw/SoftEng/Lang/Pascal/
|
1998-03-27 10:51:23 +00:00
|
|
|
|
2000-03-29 07:19:16 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1998-03-27 10:51:23 +00:00
|
|
|
|
|
|
|
MAKEFILE= makefile
|
|
|
|
|
1998-11-09 01:21:43 +00:00
|
|
|
USE_XLIB= yes
|
|
|
|
WRKSRC= ${WRKDIR}/ptoc
|
1998-03-27 10:51:23 +00:00
|
|
|
|
1999-02-22 04:02:48 +00:00
|
|
|
pre-build:
|
|
|
|
@ ${MV} ${WRKSRC}/makefile.bsd ${WRKSRC}/makefile
|
|
|
|
@ ${MV} ${WRKSRC}/Xbgi/makefile.bsd ${WRKSRC}/Xbgi/makefile
|
|
|
|
@ ${MV} ${WRKSRC}/examples/makefile.bsd ${WRKSRC}/examples/makefile
|
|
|
|
|
1998-03-27 10:51:23 +00:00
|
|
|
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
|
1998-11-09 01:21:43 +00:00
|
|
|
.for file in graph.pas ptoc.pas tptoc.pas
|
1998-03-27 10:51:23 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/ptoc
|
|
|
|
.endfor
|
|
|
|
@ ${MKDIR} ${PREFIX}/share/examples/ptoc
|
1998-11-09 01:21:43 +00:00
|
|
|
@ ${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
|
1998-03-27 10:51:23 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/examples/${file} ${PREFIX}/share/examples/ptoc
|
|
|
|
.endfor
|
1999-02-22 04:02:48 +00:00
|
|
|
|
|
|
|
post-install:
|
1998-11-09 01:21:43 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@ ${MKDIR} ${PREFIX}/share/doc/ptoc
|
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/Readme.htm ${PREFIX}/share/doc/ptoc
|
|
|
|
.endif
|
1998-03-27 10:51:23 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|