blob: ea866fe2f8c970e249ab19ea2aea7372842980f7 (
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
|
# New ports collection makefile for: gecode
# Date created: 24 January 2011
# Whom: roam@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= gecode
PORTVERSION= 3.7.3
CATEGORIES= devel
MASTER_SITES= http://www.gecode.org/download/
MAINTAINER= ports@FreeBSD.org
COMMENT= Generic Constraint Development Environment
LICENSE= MIT
OPTIONS_DEFINE= GIST
GIST_DESC= Interactive Search Tool (requires Qt)
USE_PERL5_BUILD=yes
USE_BISON= build
USE_GMAKE= yes
GNU_CONFIGURE= yes
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
USE_LDCONFIG= yes
MAKE_JOBS_UNSAFE=yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGIST}
USE_QT4= corelib gui moc_build qmake_build
CONFIGURE_ARGS+=--enable-gist --enable-qt
PLIST_SUB+= GIST=""
.else
CONFIGURE_ARGS+=--disable-gist --disable-qt
PLIST_SUB+= GIST="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e \
'/^ARR/s|^|#| ; \
/^PACKAGE_VERSION_NUMBER/s|^|#| ; \
/_vendor/s| == | = | ; \
/host_os/s| == | = | ; \
/gcc_optimize_flag/s|-O3|| ; \
/="-ggdb/s|^|#|' ${WRKSRC}/configure
.include <bsd.port.mk>
|