aboutsummaryrefslogtreecommitdiff
path: root/lang/ptoc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ptoc/Makefile')
-rw-r--r--lang/ptoc/Makefile62
1 files changed, 32 insertions, 30 deletions
diff --git a/lang/ptoc/Makefile b/lang/ptoc/Makefile
index 86a1e516aab0..ac004d200377 100644
--- a/lang/ptoc/Makefile
+++ b/lang/ptoc/Makefile
@@ -5,49 +5,51 @@
# $FreeBSD$
#
-PORTNAME= ptoc
-PORTVERSION= 3.41
-CATEGORIES= lang
-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/
+PORTNAME= ptoc
+PORTVERSION= 3.50
+CATEGORIES= lang
+MASTER_SITES= http://www.ispras.ru/~knizhnik/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= ports@FreeBSD.org
-MAKEFILE= makefile
+WRKSRC= ${WRKDIR}/${PORTNAME}
-USE_XLIB= yes
-WRKSRC= ${WRKDIR}/ptoc
+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
pre-build:
- @ ${MV} ${WRKSRC}/makefile.bsd ${WRKSRC}/makefile
- @ ${MV} ${WRKSRC}/Xbgi/makefile.bsd ${WRKSRC}/Xbgi/makefile
- @ ${MV} ${WRKSRC}/examples/makefile.bsd ${WRKSRC}/examples/makefile
+ @${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
+ ${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
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/include/ptoc
.endfor
- @ ${MKDIR} ${PREFIX}/share/ptoc
+ @${MKDIR} ${PREFIX}/share/ptoc
.for file in graph.pas ptoc.pas tptoc.pas
- @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/ptoc
+ ${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
+ @${MKDIR} ${PREFIX}/share/examples/ptoc
+.for file in ${EXAMPLES}
+ ${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
+ @${MKDIR} ${PREFIX}/share/doc/ptoc
+ ${INSTALL_DATA} ${WRKSRC}/Readme.htm ${PREFIX}/share/doc/ptoc
.endif
.include <bsd.port.mk>