1998-03-27 05:51:23 -05:00
|
|
|
# New ports collection makefile for: ptoc
|
|
|
|
# Date created: 10 December 1997
|
|
|
|
# Whom: Andrey Zakhvatov
|
|
|
|
#
|
1999-08-25 02:35:40 -04:00
|
|
|
# $FreeBSD$
|
1998-03-27 05:51:23 -05:00
|
|
|
#
|
|
|
|
|
2000-10-24 12:11:57 -04:00
|
|
|
PORTNAME= ptoc
|
|
|
|
PORTVERSION= 3.50
|
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= http://www.ispras.ru/~knizhnik/
|
1998-03-27 05:51:23 -05:00
|
|
|
|
2000-10-24 12:11:57 -04:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1998-03-27 05:51:23 -05:00
|
|
|
|
2000-10-24 12:11:57 -04:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
1998-03-27 05:51:23 -05:00
|
|
|
|
2000-10-24 12:11:57 -04:00
|
|
|
USE_XLIB= yes
|
|
|
|
USE_BISON= yes
|
|
|
|
|
|
|
|
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
|
1998-03-27 05:51:23 -05:00
|
|
|
|
1999-02-21 23:02:48 -05:00
|
|
|
pre-build:
|
2000-10-24 12:11:57 -04:00
|
|
|
@${LN} -sf makefile.bsd ${WRKSRC}/Makefile
|
|
|
|
@${LN} -sf makefile.bsd ${WRKSRC}/Xbgi/Makefile
|
1999-02-21 23:02:48 -05:00
|
|
|
|
1998-03-27 05:51:23 -05:00
|
|
|
do-install:
|
2000-10-24 12:11:57 -04:00
|
|
|
${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
|
1998-03-27 05:51:23 -05:00
|
|
|
.for file in array.h graph.h io.h paslib.h ptoc.h set.h
|
2000-10-24 12:11:57 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/include/ptoc
|
1998-03-27 05:51:23 -05:00
|
|
|
.endfor
|
2000-10-24 12:11:57 -04:00
|
|
|
@${MKDIR} ${PREFIX}/share/ptoc
|
1998-11-08 20:21:43 -05:00
|
|
|
.for file in graph.pas ptoc.pas tptoc.pas
|
2000-10-24 12:11:57 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/ptoc
|
1998-03-27 05:51:23 -05:00
|
|
|
.endfor
|
2000-10-24 12:11:57 -04:00
|
|
|
@${MKDIR} ${PREFIX}/share/examples/ptoc
|
|
|
|
.for file in ${EXAMPLES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/${file} ${PREFIX}/share/examples/ptoc
|
1998-03-27 05:51:23 -05:00
|
|
|
.endfor
|
1998-11-08 20:21:43 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-10-24 12:11:57 -04:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/ptoc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Readme.htm ${PREFIX}/share/doc/ptoc
|
1998-11-08 20:21:43 -05:00
|
|
|
.endif
|
1998-03-27 05:51:23 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|