View | Details | Raw Unified | Return to bug 89920
Collapse All | Expand All

(-)Makefile (-15 / +1 lines)
Lines 18-34 Link Here
18
MAINTAINER=	sa2c@sa2c.net
18
MAINTAINER=	sa2c@sa2c.net
19
COMMENT=	A Common Lisp development system derived from the CMU CL system
19
COMMENT=	A Common Lisp development system derived from the CMU CL system
20
20
21
.undef BOOT_VERSION
22
# If you have a previous version of SBCL installed, you can use it
21
# If you have a previous version of SBCL installed, you can use it
23
# instead of CMUCL to build the port, then deinstall it before
22
# instead of CMUCL to build the port, then deinstall it before
24
# installing the new version.
23
# installing the new version.
25
.if defined(WITH_SBCL)
24
.if defined(WITH_SBCL)
26
LISP_CMD=	""
25
LISP_CMD=	""
27
.elif defined(WITH_CMUCL)
26
.else
28
BUILD_DEPENDS=	lisp:${PORTSDIR}/lang/cmucl
27
BUILD_DEPENDS=	lisp:${PORTSDIR}/lang/cmucl
29
LISP_CMD=	"lisp -noinit -batch"
28
LISP_CMD=	"lisp -noinit -batch"
30
.else
31
BOOT_VERSION=	${PORTVERSION}
32
.endif
29
.endif
33
30
34
USE_REINPLACE=	yes
31
USE_REINPLACE=	yes
Lines 54-70 Link Here
54
RUN_DEPENDS+=	gtar:${PORTSDIR}/archivers/gtar
51
RUN_DEPENDS+=	gtar:${PORTSDIR}/archivers/gtar
55
.endif
52
.endif
56
53
57
.if defined(BOOT_VERSION)
58
BOOT_ARCH=	x86
59
BOOT_OS=	freebsd
60
BOOT_DISTNAME=	${PORTNAME}-${BOOT_VERSION}-${BOOT_ARCH}-${BOOT_OS}
61
DISTFILES+=	${BOOT_DISTNAME}-binary${EXTRACT_SUFX}
62
LISP_CMD=	"${WRKDIR}/${BOOT_DISTNAME}/src/runtime/sbcl --core ${WRKDIR}/${BOOT_DISTNAME}/output/sbcl.core --disable-debugger --userinit /dev/null --sysinit /dev/null"
63
.if ${OSVERSION} >= 500000
64
BUILD_DEPENDS+=	${LOCALBASE}/lib/compat/libc.so.4:${PORTSDIR}/misc/compat4x
65
.endif
66
.endif
67
68
post-patch:
54
post-patch:
69
	@${REINPLACE_CMD} -E -e \
55
	@${REINPLACE_CMD} -E -e \
70
		's|CFLAGS = .*|CFLAGS = ${CFLAGS} -DSBCL_HOME=\\"${PREFIX}/lib/sbcl/\\"|' \
56
		's|CFLAGS = .*|CFLAGS = ${CFLAGS} -DSBCL_HOME=\\"${PREFIX}/lib/sbcl/\\"|' \

Return to bug 89920