1998-03-27 10:51:23 +00:00
|
|
|
# New ports collection makefile for: ptoc
|
1999-02-22 04:02:48 +00:00
|
|
|
# Version required: 3.41
|
1998-03-27 10:51:23 +00:00
|
|
|
# Date created: 10 December 1997
|
|
|
|
# Whom: Andrey Zakhvatov
|
|
|
|
#
|
1999-02-28 04:46:59 +00:00
|
|
|
# $Id: Makefile,v 1.7 1999/02/22 04:02:44 steve Exp $
|
1998-03-27 10:51:23 +00:00
|
|
|
#
|
|
|
|
|
1999-02-22 04:02:48 +00:00
|
|
|
DISTNAME= ptoc-3.41
|
1998-07-25 09:41:11 +00:00
|
|
|
CATEGORIES= lang
|
1999-02-22 04:02:48 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
|
|
|
|
http://www.ispras.ru/~knizhnik/
|
1998-03-27 10:51:23 +00:00
|
|
|
MASTER_SITE_SUBDIR= devel/lang/pascal
|
|
|
|
|
|
|
|
MAINTAINER= andy@icc.surw.chel.su
|
|
|
|
|
1999-02-28 04:46:59 +00:00
|
|
|
BROKEN= 'ptoc_3.34.tar.gz is all that is on the distsite'
|
|
|
|
|
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>
|