aboutsummaryrefslogtreecommitdiffstats
path: root/lang/yap-devel/Makefile
blob: e82f3a2aab33569f77f3ad563b40df5ff6aac068 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Created by: Danilo Egea Gondolfo <danilo@FreeBSD.org>
# $FreeBSD$

PORTNAME=   yap
PORTVERSION=    6.3.3
PORTREVISION=   3
CATEGORIES= lang
MASTER_SITES=   http://www.dcc.fc.up.pt/~vsc/Yap/
PKGNAMESUFFIX=  -devel

MAINTAINER= danilo@FreeBSD.org
COMMENT=    High-performance Prolog compiler

LICENSE=    ART20 LGPL3
LICENSE_COMB=   dual

LIB_DEPENDS=    libgmp.so:${PORTSDIR}/math/gmp

CONFLICTS=  yap-6.2.*

OPTIONS_DEFINE= DOCS MYDDAS
OPTIONS_SUB=    yes
MYDDAS_DESC=    Enable MySQL support

DOCS_USE=       TEX=formats:build,dvipsk:build
DOCS_BUILD_DEPENDS= ${LOCALBASE}/bin/texi2html:${PORTSDIR}/textproc/texi2html \
            ${LOCALBASE}/bin/texi2pdf:${PORTSDIR}/print/texinfo
DOCS_INSTALL_TARGET=    install install_docs

MYDDAS_LIB_DEPENDS=     libiodbc.so:${PORTSDIR}/databases/libiodbc
MYDDAS_CONFIGURE_ENABLE=    myddas myddas-top-level

LDFLAGS+=   -L${LOCALBASE}/lib
MAKE_ENV=   PKGLDFLAGS="${LDFLAGS}"

STRIP=  #none

USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS+=    --enable-max-performance --disable-clpbn-bp
USES=       gmake libarchive readline shebangfix
SHEBANG_FILES=  packages/http/examples/demo_inetd
SHEBANG_LANG=   swipl
swipl_OLD_CMD=  /usr/bin/swipl
swipl_CMD=  ${LOCALBASE}/bin/swipl # installed by lang/swi-pl
USE_GCC=    any

EXTRACT_CMD=    ${GZIP_CMD}
EXTRACT_BEFORE_ARGS=    -dc
EXTRACT_AFTER_ARGS= | ${SETENV} LC_ALL=en_US.UTF-8 ${TAR} -xf -

DOCSDIR=    ${PREFIX}/share/doc/Yap
DATADIR=    ${PREFIX}/share/Yap

.include <bsd.port.options.mk>

post-build:
.if empty(PORT_OPTIONS:MDOCS)
    # prevent the installation of docs files
    ${REINPLACE_CMD} -e '758,761d' ${WRKSRC}/Makefile
.endif

.include <bsd.port.mk>