freebsd-ports/lang/yap/Makefile
Felippe de Meirelles Motta e35eb069bd YAP is a high-performance Prolog compiler developed at
LIACC/Universidade do Porto and at COPPE Sistemas/UFRJ. Its Prolog
engine is based in the WAM (Warren Abstract Machine), with several
optimizations for better performance. YAP follows the Edinburgh
tradition, and is largely compatible with the ISO-Prolog standard and
with Quintus and SICStus Prolog.

WWW: http://www.dcc.fc.up.pt/~vsc/Yap/

PR:		ports/180068
Submitted by:	Danilo Egea Gondolfo <danilogondolfo@gmail.com>
2013-07-03 23:16:34 +00:00

46 lines
1008 B
Makefile

# Created by: Danilo Egea Gondolfo <danilogondolfo@gmail.com>
# $FreeBSD$
PORTNAME= yap
PORTVERSION= 6.2.2
CATEGORIES= lang
MASTER_SITES= http://www.dcc.fc.up.pt/~vsc/Yap/
MAINTAINER= danilogondolfo@gmail.com
COMMENT= High-performance Prolog compiler
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
PLIST_SUB+= PORTDOCS=""
USE_TEX= base texmf latex
BUILD_DEPENDS+= ${LOCALBASE}/bin/texi2html:${PORTSDIR}/textproc/texi2html
BUILD_DEPENDS+= ${LOCALBASE}/bin/texi2pdf:${PORTSDIR}/print/texinfo
.else
PLIST_SUB+= PORTDOCS="@comment "
.endif
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-max-performance
USE_GMAKE= yes
MAKE_JOBS_SAFE= yes
DOCSDIR= ${PREFIX}/share/doc/Yap
DATADIR= ${PREFIX}/share/Yap
post-build:
.if empty(PORT_OPTIONS:MDOCS)
# prevent the instalation of three docs files
${REINPLACE_CMD} -e '559,562d' ${WRKSRC}/Makefile
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
(cd ${WRKSRC} ; ${MAKE} install_docs)
.endif
.include <bsd.port.mk>