blob: 57b5e3a472c0550c00240c5728b0bf6e2b12039b (
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
75
76
77
78
79
80
81
82
83
84
85
|
# Created by: Julian Stecklina
# $FreeBSD$
PORTNAME= ecl
PORTVERSION= 15.3.7
CATEGORIES= lang lisp
MASTER_SITES= SF/${PORTNAME}s/${PORTNAME}s/15.3/
MAINTAINER= olgeni@FreeBSD.org
COMMENT= ANSI Common Lisp implementation
LICENSE= LGPL20
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp
MAKE_JOBS_UNSAFE= yes
USES= gmake perl5 tar:tgz
USE_PERL5= build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-system-gmp --with-gmp-prefix=${LOCALBASE} --enable-boehm=system
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes
OPTIONS_DEFINE= ASDF CLX DFFI SOCKETS THREADS
OPTIONS_DEFAULT=ASDF DFFI SOCKETS THREADS
ASDF_DESC= Enable ASDF building facility
CLX_DESC= Enable X11 interface
SOCKETS_DESC= Enable socket interface
DFFI_DESC= Dynamic foreign-function support
OPTIONS_SUB= yes
PLIST_SUB= VERSION="${PORTVERSION}"
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64" || ${ARCH} == "sparc64"
BROKEN= Does not compile on ${ARCH}
.endif
.if ${PORT_OPTIONS:MASDF}
CONFIGURE_ARGS+=--with-asdf=yes
.else
CONFIGURE_ARGS+=--with-asdf=no
.endif
.if ${PORT_OPTIONS:MCLX}
USE_XORG= x11
CONFIGURE_ARGS+=--with-clx=yes
.else
CONFIGURE_ARGS+=--with-clx=no
.endif
.if ${PORT_OPTIONS:MSOCKETS}
CONFIGURE_ARGS+=--with-tcp=yes
.else
CONFIGURE_ARGS+=--with-tcp=no
.endif
.if ${PORT_OPTIONS:MDFFI}
CONFIGURE_ARGS+=--with-dffi=system
LIB_DEPENDS+= libffi.so:${PORTSDIR}/devel/libffi
.else
CONFIGURE_ARGS+=--with-dffi=no
.endif
.if ${PORT_OPTIONS:MTHREADS}
CONFIGURE_ARGS+=--enable-threads=yes
LDFLAGS+= -lpthread
LIB_DEPENDS+= libgc-threaded.so:${PORTSDIR}/devel/boehm-gc-threaded
.else
CONFIGURE_ARGS+=--enable-threads=no
LIB_DEPENDS+= libgc.so:${PORTSDIR}/devel/boehm-gc
.endif
.if ${PORT_OPTIONS:MTHREADS}
post-patch:
@${REINPLACE_CMD} -e 's|-lgc|-lgc-threaded|' ${WRKSRC}/src/configure
.endif
post-install:
${RMDIR} ${STAGEDIR}${PREFIX}/include/ecl/gc/private
.include <bsd.port.post.mk>
|