aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gecode/Makefile
blob: 241a8e419e9b0632a2de0af1cf1b4e97947aa2b9 (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
64
65
66
67
# New ports collection makefile for:    gecode
# Date created:             24 January 2011
# Whom:                 roam@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   gecode
PORTVERSION=    3.5.0
CATEGORIES= devel
MASTER_SITES=   http://www.gecode.org/download/

MAINTAINER= roam@FreeBSD.org
COMMENT=    Generic Constraint Development Environment

BUILD_DEPENDS=  bison>=2.3:${PORTSDIR}/devel/bison \
        flex>=2.5.35:${PORTSDIR}/textproc/flex

LICENSE=    MIT
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
USE_PERL5_BUILD=    yes

MAKE_JOBS_UNSAFE=   yes
PATCH_STRIP=    -p1

OPTIONS=    GIST "Interactive Search Tool" off \
        QT "QT interface" off

.include <bsd.port.options.mk>

.if defined(WITH_QT)
CONFIGURE_ARGS+=    --enable-qt
USE_QT_VER=     4
QT_COMPONENTS=      corelib gui moc_build qmake_build
.else
CONFIGURE_ARGS+=    --disable-qt
.endif

.if defined(WITH_GIST)
.if !defined(WITH_QT)
IGNORE=         Building GIST requires enabling the QT interface
.else
CONFIGURE_ARGS+=    --enable-gist
PLIST_SUB+=     GIST=""
.endif
.else
CONFIGURE_ARGS+=    --disable-gist
PLIST_SUB+=     GIST="@comment "
.endif

CONFIGURE_ARGS+=\
        --disable-static \
        --enable-shared \
        --disable-doc-dot \
        --disable-doc-tagfile \
        --disable-doc-chm \
        --enable-driver \
        --enable-graph \
        --enable-flatzinc \
        --enable-sheduling \
        --disable-examples \
        --enable-minimodel \
        --enable-search

.include <bsd.port.mk>