2013-07-26 22:50:50 +02:00
|
|
|
# Created by: John M. Cooper <john_m_cooper@yahoo.com>
|
2006-11-14 11:16:53 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= afay
|
|
|
|
PORTVERSION= 041111
|
2014-03-14 11:43:09 +01:00
|
|
|
PORTREVISION= 2
|
2006-11-14 11:16:53 +01:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= http://thiberlog.free.fr/src/
|
|
|
|
DISTNAME= ${PORTNAME}_thiberlog_${PORTVERSION}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2014-05-15 13:40:48 +02:00
|
|
|
MAINTAINER= marino@FreeBSD.org
|
2014-03-09 22:40:39 +01:00
|
|
|
COMMENT= Improved aflex and ayacc Ada 95 scanner and parser generators
|
2006-11-14 11:16:53 +01:00
|
|
|
|
2013-07-26 22:50:50 +02:00
|
|
|
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
|
2006-11-14 11:16:53 +01:00
|
|
|
|
2014-03-14 11:43:09 +01:00
|
|
|
USES= ada
|
2006-11-14 11:16:53 +01:00
|
|
|
NO_WRKSUBDIR= yes
|
2013-07-26 22:50:50 +02:00
|
|
|
|
2014-03-09 22:40:39 +01:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2006-11-14 11:16:53 +01:00
|
|
|
|
|
|
|
do-build:
|
2013-07-26 22:50:50 +02:00
|
|
|
@cd ${WRKSRC}/afay/aflex/src/gnat_unix && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${SH} ./README
|
|
|
|
@cd ${WRKSRC}/afay/ayacc/src/gnat_unix && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${SH} ./README
|
2006-11-14 11:16:53 +01:00
|
|
|
|
|
|
|
do-install:
|
2014-01-27 11:47:06 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/afay/aflex/src/aflex ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/afay/ayacc/src/ayacc ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/afay/aflex/doc/aflex.man ${STAGEDIR}${PREFIX}/man/man1/aflex.1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/afay/ayacc/doc/old_docs/ayacc.manpage ${STAGEDIR}${PREFIX}/man/man1/ayacc.1
|
2014-03-14 11:43:09 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-01-27 11:47:06 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2014-03-14 11:43:09 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/afay/aflex/doc/READ_ME \
|
|
|
|
${STAGEDIR}${DOCSDIR}/READ_ME.aflex
|
|
|
|
(cd ${WRKSRC}/afay/aflex/doc && ${INSTALL_DATA} aflex.html \
|
|
|
|
aflex_user_man.* ${STAGEDIR}${DOCSDIR})
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/afay/ayacc/doc/READ_ME \
|
|
|
|
${STAGEDIR}${DOCSDIR}/READ_ME.ayacc
|
|
|
|
(cd ${WRKSRC}/afay/ayacc/doc && ${INSTALL_DATA} ayacc.html \
|
|
|
|
ayacc_user_man.tex ${STAGEDIR}${DOCSDIR})
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ada_parser \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR}/calc
|
|
|
|
(cd ${WRKSRC}/afay/aflex/doc && ${INSTALL_DATA} example.l test95.l \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/afay/ayacc/examples/ada_parser/COMPILE \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR}/ada_parser
|
|
|
|
(cd ${WRKSRC}/afay/ayacc/examples/ada_parser && \
|
|
|
|
${INSTALL_DATA} READ.ME ada.y ada_lex.l driver.a \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR}/ada_parser)
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/afay/ayacc/examples/calc/COMPILE \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR}/calc
|
|
|
|
(cd ${WRKSRC}/afay/ayacc/examples/calc && ${INSTALL_DATA} \
|
|
|
|
READ.ME calc* driver.a ${STAGEDIR}${EXAMPLESDIR}/calc)
|
|
|
|
.endif
|
2006-11-14 11:16:53 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|