2003-01-15 11:25:05 +00:00
|
|
|
# New ports collection makefile for: sbcl
|
|
|
|
# Date created: 2002-11-26
|
|
|
|
# Whom: des
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sbcl
|
2007-04-29 21:07:20 +00:00
|
|
|
PORTVERSION= 1.0.5
|
2005-10-16 14:48:09 +00:00
|
|
|
CATEGORIES= lang lisp
|
2003-01-15 11:25:05 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= sbcl
|
|
|
|
DISTFILES= ${DISTNAME}-source${EXTRACT_SUFX}
|
|
|
|
|
2005-11-09 19:33:25 +00:00
|
|
|
MAINTAINER= sa2c@sa2c.net
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= A Common Lisp development system derived from the CMU CL system
|
2003-01-15 11:25:05 +00:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2005-11-07 15:46:15 +00:00
|
|
|
EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude */CVS/*
|
|
|
|
|
2006-12-09 09:31:29 +00:00
|
|
|
# SBCL is a native code compiler: it must be ported per architecture.
|
2006-12-02 00:20:41 +00:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2003-01-15 11:25:05 +00:00
|
|
|
|
2004-06-08 08:40:03 +00:00
|
|
|
MAN1= sbcl.1
|
2005-11-07 15:46:15 +00:00
|
|
|
INFO= asdf sbcl
|
|
|
|
INFODIR= ${PREFIX}/${INFO_PATH}
|
2004-01-14 15:15:39 +00:00
|
|
|
|
2005-10-08 18:21:19 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-12-02 00:20:41 +00:00
|
|
|
# If you have a previous version of SBCL installed, you can use it
|
|
|
|
# instead of the binary distribution.
|
|
|
|
.if defined(WITH_SBCL)
|
|
|
|
LISP_CMD= ""
|
|
|
|
.else
|
2007-04-29 21:07:20 +00:00
|
|
|
BOOT_VERSION= ${PORTVERSION}
|
2007-03-01 10:01:15 +00:00
|
|
|
.if make(makesum)
|
2007-04-29 21:07:20 +00:00
|
|
|
BOOT_ARCH_OS_LIST= x86-freebsd x86-64-freebsd
|
2007-01-11 07:41:57 +00:00
|
|
|
.elif ${ARCH} == i386
|
2007-04-29 21:07:20 +00:00
|
|
|
BOOT_ARCH_OS_LIST= x86-freebsd
|
2006-12-02 00:20:41 +00:00
|
|
|
.elif ${ARCH} == amd64
|
2007-04-29 21:07:20 +00:00
|
|
|
BOOT_ARCH_OS_LIST= x86-64-freebsd
|
2006-12-02 00:20:41 +00:00
|
|
|
.endif
|
2007-01-11 07:41:57 +00:00
|
|
|
.for BOOT_ARCH_OS in ${BOOT_ARCH_OS_LIST}
|
|
|
|
BOOT_DISTNAME= ${PORTNAME}-${BOOT_VERSION}-${BOOT_ARCH_OS}
|
|
|
|
DISTFILES:= ${DISTFILES} ${BOOT_DISTNAME}-binary${EXTRACT_SUFX}
|
|
|
|
.endfor
|
|
|
|
LISP_CMD= "${WRKDIR}/${BOOT_DISTNAME}/src/runtime/sbcl --core ${WRKDIR}/${BOOT_DISTNAME}/output/sbcl.core --disable-debugger --userinit /dev/null --sysinit /dev/null"
|
2007-04-29 21:07:20 +00:00
|
|
|
.if ${OSVERSION} >= 600000
|
2007-01-11 07:41:57 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/compat/libc.so.5:${PORTSDIR}/misc/compat5x
|
2005-12-28 13:35:28 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2006-12-02 00:20:41 +00:00
|
|
|
.if ${ARCH} == i386
|
|
|
|
PLIST_SUB+= I386_ONLY=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= I386_ONLY="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-11-07 15:46:15 +00:00
|
|
|
post-patch:
|
2005-11-08 18:47:52 +00:00
|
|
|
@${REINPLACE_CMD} -E -e \
|
2006-12-02 00:20:41 +00:00
|
|
|
's|CFLAGS = .*|CFLAGS = ${CFLAGS} -g -DSBCL_HOME=\\"${PREFIX}/lib/sbcl/\\"|' \
|
2005-11-08 18:47:52 +00:00
|
|
|
${WRKSRC}/src/runtime/GNUmakefile
|
|
|
|
@${FIND} ${WRKSRC} -name '*.orig' -o -name '*.bak' | ${XARGS} ${RM}
|
2006-12-02 00:20:41 +00:00
|
|
|
.if defined(WITH_THREADS)
|
|
|
|
@${CP} ${FILESDIR}/customize-target-features.lisp ${WRKSRC}
|
|
|
|
.endif
|
2003-01-15 11:25:05 +00:00
|
|
|
|
|
|
|
do-build:
|
2006-12-02 00:20:41 +00:00
|
|
|
@(cd ${WRKSRC} && ${SETENV} INSTALL_ROOT=${PREFIX} \
|
2005-11-07 15:46:15 +00:00
|
|
|
${SH} make.sh ${LISP_CMD})
|
2006-12-02 00:20:41 +00:00
|
|
|
@(cd ${WRKSRC}/doc/manual && \
|
2005-11-07 15:46:15 +00:00
|
|
|
${GMAKE} MAKEINFO='makeinfo --no-split' info)
|
2003-01-15 11:25:05 +00:00
|
|
|
|
|
|
|
do-install:
|
2004-01-14 15:15:39 +00:00
|
|
|
(cd ${WRKSRC} && ${SETENV} INSTALL_ROOT=${PREFIX} \
|
2005-11-07 15:46:15 +00:00
|
|
|
MAN_DIR=${PREFIX}/man DOC_DIR=${DOCSDIR} \
|
|
|
|
INFO_DIR=${INFODIR} ${SH} install.sh)
|
|
|
|
@${RMDIR} ${DOCSDIR}/html
|
2005-10-08 18:21:19 +00:00
|
|
|
|
2005-11-07 15:46:15 +00:00
|
|
|
test: build
|
2005-10-08 18:21:19 +00:00
|
|
|
(cd ${WRKSRC}/tests && ${SH} run-tests.sh)
|
|
|
|
|
2006-12-02 00:20:41 +00:00
|
|
|
pre-everything::
|
|
|
|
.if !defined(WITH_THREADS) && ${OSVERSION} >= 600000
|
|
|
|
@${ECHO_MSG} "====>"
|
|
|
|
@${ECHO_MSG} "====> To enable experimental threading support, define WITH_THREADS."
|
|
|
|
@${ECHO_MSG} "====>"
|
|
|
|
.elif defined(WITH_THREADS) && ${OSVERSION} < 600000
|
|
|
|
@${ECHO_MSG} "====>"
|
|
|
|
@${ECHO_MSG} "====> WARNING: Current threading support is very unstable on FreeBSD 5.x."
|
|
|
|
@${ECHO_MSG} "====>"
|
|
|
|
.endif
|
|
|
|
|
2005-10-08 18:21:19 +00:00
|
|
|
.include <bsd.port.post.mk>
|