blob: 8bdf668b31f5a9b56f6909d9d43b57cba3398cd9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# 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
PORTSCOUT= limit:^6\.2\.
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>
|