[patch] bsd.cl-asdf.mk: add LISP_EXTRA_ARG

Anonymous swell.k at gmail.com
Sun Oct 24 11:38:54 UTC 2010


>Submitter-Id:	current-users
>Originator:    Anonymous
>Organization:
>Confidential:	no
>Synopsis:	[patch] bsd.cl-asdf.mk: add LISP_EXTRA_ARG
>Severity:	non-critical
>Priority:	low
>Responsible:   olgeni
>Category:	ports
>Class:		change-request
>Release:	FreeBSD 9.0-CURRENT amd64
>Environment:
>Description:
Provide a way to specify extra command line options to lisp compiler for
FASL_BUILD ports without touching CLISP/SBCL variables. The variable
name comes from lang/sbcl.

For example, lang/clisp doesn't support `sys::dynload-modules' because
it has --with-dynamic-modules=no. To compile cl-stumpwm-clisp
(ports/151318) one'd have to add following in Makefile

  LISP_EXTRA_ARG = -K full # in specific, full/clx.o

>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: devel/cl-asdf/bsd.cl-asdf.mk
===================================================================
RCS file: /a/.cvsup/ports/devel/cl-asdf/bsd.cl-asdf.mk,v
retrieving revision 1.5
diff -u -p -r1.5 bsd.cl-asdf.mk
--- devel/cl-asdf/bsd.cl-asdf.mk	19 Oct 2010 20:11:34 -0000	1.5
+++ devel/cl-asdf/bsd.cl-asdf.mk	24 Oct 2010 11:38:09 -0000
@@ -4,6 +4,7 @@
 #
 # SBCL		- Path to the Steel Bank Common Lisp compiler
 # CLISP		- Path to the GNU Common Lisp compiler
+# LISP_EXTRA_ARG - Extra arguments for compiler used by FASL_BUILD ports
 # CL_LIBDIR_REL	- Common Lisp library directory, relative to LOCALBASE or PREFIX
 # ASDF_PATHNAME	- Where to install compiled FASL files (depends on FASL_DIR_REL)
 # ASDF_REGISTRY	- Path to ASDF registry
@@ -86,7 +87,7 @@ do-build:
 
 .if defined(USE_SBCL)
 	@FBSD_ASDF_COMPILE_PORT=t PORTNAME=${PORTNAME} WRKSRC=${WRKSRC}/ \
-		${SBCL}	--noinform --userinit /dev/null --disable-debugger \
+		${SBCL} ${LISP_EXTRA_ARG} --noinform --userinit /dev/null --disable-debugger \
 		--eval '#.(load "${LOCALBASE}/etc/asdf-init")' \
 		--eval "(asdf:oos 'asdf:compile-op :${MODULE})" \
 		--eval "(quit)"
@@ -94,7 +95,7 @@ do-build:
 
 .if defined(USE_CLISP)
 	@FBSD_ASDF_COMPILE_PORT=t PORTNAME=${PORTNAME} WRKSRC=${WRKSRC}/ \
-		${CLISP} -ansi -norc \
+		${CLISP} ${LISP_EXTRA_ARG} -ansi -norc \
 		-i ${LOCALBASE}/etc/asdf-init \
 		-x "(asdf:oos 'asdf:compile-op :${MODULE})"
 	@${FIND} ${WRKSRC} -name "*.lib" | ${XARGS} ${RM}
--- a.diff ends here ---



More information about the freebsd-ports-bugs mailing list