aboutsummaryrefslogtreecommitdiffstats
path: root/lang/racket/Makefile
blob: 918adb4fadbabe004a21dc22f487944591e9b5c2 (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
68
69
70
71
72
73
74
# Created by: Joseph Koshy <jkoshy@FreeBSD.org>
# $FreeBSD$

PORTNAME=   racket
PORTVERSION=    5.93
CATEGORIES= lang scheme
MASTER_SITES=   http://download.racket-lang.org/installers/${PORTVERSION}/ \
        http://www.eecs.northwestern.edu/racket/${PORTVERSION}/ \
        http://www.cs.utah.edu/plt/installers/${PORTVERSION}/ \
        http://mirror.informatik.uni-tuebingen.de/mirror/racket/${PORTVERSION}/ \
        ftp://infogroep.be/pub/racket/installers/${PORTVERSION}/ \
        http://russell.cs.bilgi.edu.tr/racket-installers/${PORTVERSION}/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src
EXTRACT_SUFX=   .tgz
DIST_SUBDIR=    ${PORTNAME}/${PORTVERSION}

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    Interactive, integrated, graphical Scheme programming environment

MAKE_JOBS_UNSAFE=yes

OPTIONS_DEFINE=     RACKET_PLACES
RACKET_PLACES_DESC= Enable Places
OPTIONS_DEFAULT=    RACKET_PLACES

CONFLICTS=  racket-minimal-[0-9]*

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-shared --enable-pthread \
        --enable-lt=${LIBTOOL}

.include <bsd.port.options.mk>

.if defined(WITHOUT_X11)
IGNORE=     requires X11; use lang/racket-textual instead
.endif

.if ${ARCH} == "i386"
MANUAL_PACKAGE_BUILD=   i386 requires kern.maxdsiz="640M" to build
.endif

LIB_DEPENDS+=   ffi:${PORTSDIR}/devel/libffi        \
        cairo:${PORTSDIR}/graphics/cairo    \
        jpeg:${PORTSDIR}/graphics/jpeg  \
        png15:${PORTSDIR}/graphics/png

.if ${PORT_OPTIONS:MRACKET_PLACES}
CONFIGURE_ARGS+=    --enable-places
.else
CONFIGURE_ARGS+=    --disable-places
.endif

# Force the "configure" script to look in $LOCALBASE for -lpng and -ljpeg
LDFLAGS+=   -L${LOCALBASE}/lib
CPPFLAGS+=  -I${LOCALBASE}/include

WRKSRC=     ${WRKDIR}/racket-${PORTVERSION}/src
USES+=      iconv
USE_AUTOTOOLS=  libtool:env
USE_LDCONFIG=   yes
USE_GNOME=  pango
USE_SQLITE= 3

ONLY_FOR_ARCHS= i386 amd64

RACKET_PLIST=   ${WRKDIR}/pkg-plist

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
CPPFLAGS+=  -DLONG64
.endif

.include <bsd.port.post.mk>