freebsd-ports/lang/ecl/Makefile
Alejandro Pulver 7a51fc9f8a - Add OPTIONS.
- Avoid installing the GNU license.
- Fix building on !i386.

PR:		99439
Approved by:	maintainer
2006-06-25 22:41:56 +00:00

90 lines
1.9 KiB
Makefile

# New ports collection makefile for: ecl
# Date created: 29 Januar 2004
# Whom: Julian Stecklina
#
# $FreeBSD$
#
PORTNAME= ecl
PORTVERSION= 0.9g
PORTREVISION= 1
CATEGORIES= lang lisp
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ecls
MAINTAINER= der_julian@web.de
COMMENT= An ANSI Common Lisp implementation
LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4
USE_GMAKE= yes
USE_PERL5_BUILD=yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-system-gmp --with-cmuformat=yes --enable-boehm=included
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
OPTIONS= ASDF "Enable ASDF building facility" on \
CLOS_STREAMS "Enable user defined stream objects" on \
CLX "Enable X11 interface" off \
SOCKETS "Enable socket interface" on \
THREADS "Enable threading support" off
MAN1= ecl.1
INFO= ecl ecldev
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= %%PREFIX%%/lib/ecl
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_ASDF)
CONFIGURE_ARGS+=--with-asdf=yes
PLIST_SUB+= ASDF=""
.else
CONFIGURE_ARGS+=--with-asdf=no
PLIST_SUB+= ASDF="@comment "
.endif
.if !defined(WITHOUT_CLOS_STREAMS)
CONFIGURE_ARGS+=--with-clos-streams=yes
PLIST_SUB+= CLOS_STREAMS=""
.else
CONFIGURE_ARGS+=--with-clos-streams=no
PLIST_SUB+= CLOS_STREAMS="@comment "
.endif
.if defined(WITH_CLX)
USE_XLIB= yes
CONFIGURE_ARGS+=--with-clx=yes
INFO+= clx
PLIST_SUB+= CLX=""
.else
CONFIGURE_ARGS+=--with-clx=no
PLIST_SUB+= CLX="@comment "
.endif
.if !defined(WITHOUT_SOCKETS)
CONFIGURE_ARGS+=--with-tcp=yes
PLIST_SUB+= SOCKETS=""
.else
CONFIGURE_ARGS+=--with-tcp=no
PLIST_SUB+= SOCKETS="@comment "
.endif
.if defined(WITH_THREADS)
CONFIGURE_ARGS+=--enable-threads=yes
LDFLAGS+= ${PTHREAD_LIBS}
.else
CONFIGURE_ARGS+=--enable-threads=no
.endif
.if defined(WITH_THREADS)
post-patch:
@${REINPLACE_CMD} -e 's|_NP[[:>:]]||' \
${WRKSRC}/src/c/package.d ${WRKSRC}/src/c/threads.d
.endif
.include <bsd.port.post.mk>