freebsd-ports/lang/ecl/Makefile

82 lines
1.8 KiB
Makefile
Raw Normal View History

# Created by: Julian Stecklina
# $FreeBSD$
PORTNAME= ecl
PORTVERSION= 15.2.21
PORTREVISION= 1
CATEGORIES= lang lisp
MASTER_SITES= SF/${PORTNAME}s/${PORTNAME}s/15.2/
2010-01-09 21:50:59 +01:00
MAINTAINER= olgeni@FreeBSD.org
COMMENT= ANSI Common Lisp implementation
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
2012-02-17 11:48:30 +01:00
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
2010-08-13 18:10:19 +02:00
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}"
2010-08-13 18:10:19 +02:00
.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
.include <bsd.port.post.mk>