2000-02-13 02:18:18 +00:00
|
|
|
# New ports collection makefile for: clisp
|
|
|
|
# Date created: Feb 5 2000
|
|
|
|
# Whom: Jeff Brown <jabrown@caida.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-12 06:21:15 +00:00
|
|
|
PORTNAME= clisp
|
2007-05-03 21:04:53 +00:00
|
|
|
PORTVERSION= 2.41a
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 1
|
2005-03-06 21:22:01 +00:00
|
|
|
CATEGORIES= lang lisp
|
2007-05-03 21:04:53 +00:00
|
|
|
MASTER_SITES= GNU/${PORTNAME}/release/${PORTVERSION:C/[[:alpha:]]+$//} \
|
2006-12-07 04:29:03 +00:00
|
|
|
ftp://sunsite.unc.edu/pub/Linux/devel/lang/lisp/
|
2000-02-13 02:18:18 +00:00
|
|
|
|
2006-06-28 22:04:01 +00:00
|
|
|
MAINTAINER= alepulver@FreeBSD.org
|
2005-09-04 04:49:53 +00:00
|
|
|
COMMENT= A Common Lisp implementation
|
|
|
|
|
2005-09-10 03:26:42 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libsigsegv.a:${PORTSDIR}/devel/libsigsegv \
|
|
|
|
dvipdf:${PORTSDIR}/${GHOSTSCRIPT_PORT}
|
2006-06-28 22:04:01 +00:00
|
|
|
LIB_DEPENDS= readline.5:${PORTSDIR}/devel/readline
|
2003-01-08 10:32:41 +00:00
|
|
|
|
2007-01-13 02:05:57 +00:00
|
|
|
NOT_FOR_ARCHS= ia64
|
|
|
|
NOT_FOR_ARCHS_REASON= does not currently support this architecture
|
2000-05-01 01:44:43 +00:00
|
|
|
USE_BZIP2= yes
|
2004-03-30 19:20:22 +00:00
|
|
|
USE_ICONV= yes
|
2004-02-04 04:36:30 +00:00
|
|
|
USE_GETTEXT= yes
|
2006-06-28 22:04:01 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2007-05-03 21:04:53 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:C/[[:alpha:]]+$//}
|
2006-06-28 22:04:01 +00:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/${CONFIGURE_TARGET}
|
|
|
|
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
2001-05-19 19:03:34 +00:00
|
|
|
|
2006-06-28 22:04:01 +00:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
|
|
|
MAKE_ENV= ${CONFIGURE_ENV}
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2007-07-23 09:36:51 +00:00
|
|
|
MAKEMAKE_ARGS= --prefix=${PREFIX} --mandir=${MANPREFIX}/man \
|
2006-06-28 22:04:01 +00:00
|
|
|
--srcdir=${WRKSRC}/src --with-dynamic-ffi
|
2006-03-15 13:34:12 +00:00
|
|
|
|
2006-06-28 22:04:01 +00:00
|
|
|
OPTIONS= BDB "Build Berkeley Database module" off \
|
|
|
|
CLX_MIT "Build X11 module (original MIT version)" off \
|
|
|
|
CLX_NEW "Build X11 module (new faster version)" off \
|
|
|
|
FASTCGI "Build FastCGI module" off \
|
|
|
|
ORACLE "Build Oracle database module" off \
|
|
|
|
PARI "Build PARI (math and calculator lib) module" off \
|
|
|
|
PCRE "Build PCRE (Perl Compatible Regexp) module" off \
|
|
|
|
PGSQL "Build PostgreSQL database module" off \
|
|
|
|
RAWSOCK "Build Raw Socket Access module" on \
|
|
|
|
WILDCARD "Build wildcard matching module" on \
|
|
|
|
ZLIB "Build ZLib interface module " off
|
2000-02-13 02:18:18 +00:00
|
|
|
|
2006-06-28 22:04:01 +00:00
|
|
|
MAN1= clisp.1
|
2000-02-13 02:18:18 +00:00
|
|
|
|
2005-01-02 00:46:39 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-06-05 04:38:38 +00:00
|
|
|
.if ${OSVERSION} >= 700000
|
|
|
|
BROKEN= coredumps when building on FreeBSD 7.x
|
|
|
|
.endif
|
|
|
|
|
2006-06-28 22:04:01 +00:00
|
|
|
MODULES= BDB CLX_MIT CLX_NEW FASTCGI ORACLE PARI PCRE PGSQL RAWSOCK \
|
|
|
|
WILDCARD ZLIB
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
|
|
|
|
CONFIGURE_ARGS+=--disable-mmap
|
|
|
|
MAKEMAKE_ARGS+= --disable-mmap
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.for mod in ${MODULES}
|
|
|
|
. if defined(WITH_${mod})
|
|
|
|
PLIST_SUB+= ${mod}=""
|
|
|
|
. else
|
|
|
|
PLIST_SUB+= ${mod}="@comment "
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.if defined(WITH_BDB)
|
|
|
|
USE_BDB= 42+
|
|
|
|
MAKEMAKE_ARGS+= --with-module=berkeley-db
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include/db${BDB_VER}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib/db${BDB_VER}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_CLX_MIT) && defined(WITH_CLX_NEW)
|
|
|
|
IGNORE= selected different implementations of the same X11 module
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_CLX_MIT) || defined(WITH_CLX_NEW)
|
2006-12-07 04:29:03 +00:00
|
|
|
# Avoid USE_XLIB because of the additional CONFIGURE_ARGS.
|
2006-06-28 22:04:01 +00:00
|
|
|
LIB_DEPENDS+= X11.6:${X_LIBRARIES_PORT}
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_CLX_MIT)
|
|
|
|
MAKEMAKE_ARGS+= --with-module=clx/mit-clx
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_CLX_NEW)
|
|
|
|
MAKEMAKE_ARGS+= --with-module=clx/new-clx
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_FASTCGI)
|
|
|
|
LIB_DEPENDS+= fcgi.0:${PORTSDIR}/www/fcgi
|
|
|
|
MAKEMAKE_ARGS+= --with-module=fastcgi
|
2006-04-22 22:13:39 +00:00
|
|
|
.endif
|
|
|
|
|
2006-06-28 22:04:01 +00:00
|
|
|
.if defined(WITH_ORACLE)
|
|
|
|
BUILD_DEPENDS+= ${ORACLE_HOME}:${PORTSDIR}/databases/oracle8-client
|
|
|
|
MAKEMAKE_ARGS+= --with-module=oracle
|
|
|
|
CPPFLAGS+= -I${ORACLE_HOME}/rdbms/demo -I${ORACLE_HOME}/rdbms/public
|
|
|
|
LDFLAGS+= -L${ORACLE_HOME}/lib
|
|
|
|
ORACLE_HOME= ${LOCALBASE}/oracle8-client
|
2005-10-28 22:44:44 +00:00
|
|
|
.endif
|
|
|
|
|
2006-06-28 22:04:01 +00:00
|
|
|
.if defined(WITH_PARI)
|
|
|
|
LIB_DEPENDS+= pari.2:${PORTSDIR}/math/pari
|
|
|
|
MAKEMAKE_ARGS+= --with-module=pari
|
2007-01-13 02:05:57 +00:00
|
|
|
BROKEN= Lisp stack overflow when building PARI module
|
2006-06-28 22:04:01 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PCRE)
|
|
|
|
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
|
|
|
|
MAKEMAKE_ARGS+=--with-module=pcre
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
USE_PGSQL= yes
|
|
|
|
MAKEMAKE_ARGS+= --with-module=postgresql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_RAWSOCK)
|
|
|
|
MAKEMAKE_ARGS+= --with-module=rawsock
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_WILDCARD)
|
|
|
|
MAKEMAKE_ARGS+= --with-module=wildcard
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ZLIB)
|
|
|
|
MAKEMAKE_ARGS+= --with-module=zlib
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
@${REINPLACE_CMD} -Ee \
|
|
|
|
"s|^(subdir_configure_args=')|\1--build=${CONFIGURE_TARGET}|; \
|
|
|
|
s|^(module_configure_flags=')|\1--build=${CONFIGURE_TARGET}|" \
|
|
|
|
${WRKSRC}/configure ${WRKSRC}/src/makemake.in
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_ORACLE)
|
|
|
|
@${REINPLACE_CMD} -e 's|-ldl||; s|-lpthread|-lcompat ${PTHREAD_LIBS}|' \
|
|
|
|
${WRKSRC}/modules/oracle/link.sh
|
|
|
|
.endif
|
2000-02-13 02:18:18 +00:00
|
|
|
|
|
|
|
post-configure:
|
2006-06-28 22:04:01 +00:00
|
|
|
cd ${BUILD_WRKSRC} && \
|
|
|
|
${SETENV} ${CONFIGURE_ENV} ./makemake ${MAKEMAKE_ARGS} > Makefile && \
|
|
|
|
${MAKE} config.lisp
|
2006-06-29 17:31:11 +00:00
|
|
|
@${REINPLACE_CMD} -Ee 's|^(CFLAGS =)|\1 ${CPPFLAGS} ${CFLAGS}|' \
|
|
|
|
${BUILD_WRKSRC}/${MAKEFILE}
|
2000-02-13 02:18:18 +00:00
|
|
|
|
2005-01-02 00:46:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|