1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/textproc/opentoken/Makefile
John Marino d1e5f1ed50 Add new Ada port: textproc/opentoken 5.0a
OpenToken is a facility for performing token analysis and parsing within
the Ada language. It is designed to provide all the functionality of a
traditional lexical analyzer/parser generator, such as lex/yacc. But due
to the magic of inheritance and runtime polymorphism it is implemented
entirely in Ada as withed-in code. No precompilation step is required, and
no messy tool-generated source code is created. The tradeoff is that the
grammar is generated at runtime.

WWW: http://stephe-leake.org/ada/opentoken.html
2014-03-14 13:43:26 +00:00

44 lines
1.2 KiB
Makefile

# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= opentoken
PORTVERSION= 5.0a
CATEGORIES= textproc
MASTER_SITES= http://stephe-leake.org/ada/
MAINTAINER= marino@FreeBSD.org
COMMENT= Lexical analyser and parser for the Ada language
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
BUILD_DEPENDS= gprbuild>=20130416:${PORTSDIR}/devel/gprbuild
USES= ada tar:bzip2
WRKSRC= ${WRKDIR}/org.${PORTNAME}-${PORTVERSION}
BUILD_WRKSRC= ${WRKSRC}/build/release
OTLIBVER= 5.0.0
PLIST_SUB+= OTLIBVER=${OTLIBVER}
do-build:
(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} \
gprbuild -p -P opentoken_lib )
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
${STAGEDIR}${PREFIX}/lib/opentoken \
${STAGEDIR}${PREFIX}/include/opentoken
${INSTALL_DATA} ${BUILD_WRKSRC}/lib/*.ali \
${STAGEDIR}${PREFIX}/lib/opentoken
${INSTALL_LIB} ${BUILD_WRKSRC}/lib/libopentoken.so.${OTLIBVER} \
${STAGEDIR}${PREFIX}/lib/opentoken
(cd ${STAGEDIR}${PREFIX}/lib/opentoken && \
${LN} -s libopentoken.so.${OTLIBVER} libopentoken.so)
${INSTALL_DATA} ${WRKSRC}/*.ad[bs] ${WRKSRC}/Language_Lexers/*.ad[bs] \
${STAGEDIR}${PREFIX}/include/opentoken
${INSTALL_DATA} ${FILESDIR}/opentoken.gpr \
${STAGEDIR}${PREFIX}/lib/gnat
.include <bsd.port.mk>