ports/87416: [PATCH] adapt lang/sbcl to PREFIX other than /usr/local
NIIMI Satoshi
sa2c at sa2c.net
Tue Nov 1 15:30:23 UTC 2005
The following reply was made to PR ports/87416; it has been noted by GNATS.
From: NIIMI Satoshi <sa2c at sa2c.net>
To: bug-followup at FreeBSD.org, MOROHOSHI Akihiko <moro at remus.dti.ne.jp>,
Paul Ledbetter III <aeacides at gmail.com>
Cc:
Subject: Re: ports/87416: [PATCH] adapt lang/sbcl to PREFIX other than /usr/local
Date: Wed, 02 Nov 2005 00:25:35 +0900
This is a multi-part message in MIME format.
--------------000709020001060707020906
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Basically I agree MOROHOSHI Akihiko that installed binary should respect
PREFIX variable.
But I also agree Paul Ledbetter III that the original patch is not
acceptable.
How about to locate attached patch in files/ to make ${WRKSRC}/make.sh
accept INSTALL_ROOT like ${WRKSRC}/install.sh, and to change Makefile as:
> do-build:
> - (cd ${WRKSRC} && ${SH} make.sh ${LISP_CMD})
> + (cd ${WRKSRC} && ${SETENV} INSTALL_ROOT=${PREFIX} \
> + ${SH} make.sh ${LISP_CMD})
Although this change does not modify "/usr/local" in documents, I think
it is not so important.
--
NIIMI Satoshi
--------------000709020001060707020906
Content-Type: text/plain;
name="patch-src_runtime_GNUmakefile"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch-src_runtime_GNUmakefile"
Index: src/runtime/GNUmakefile
===================================================================
RCS file: /cvsroot/sbcl/sbcl/src/runtime/GNUmakefile,v
retrieving revision 1.24
diff -u -r1.24 GNUmakefile
--- src/runtime/GNUmakefile 19 Aug 2005 12:15:15 -0000 1.24
+++ src/runtime/GNUmakefile 1 Nov 2005 14:46:55 -0000
@@ -22,7 +22,10 @@
DEPEND_FLAGS = -MM
GREP = grep
-CFLAGS = -g -Wall -O3
+ifeq ($(strip $(INSTALL_ROOT)),)
+INSTALL_ROOT = /usr/local
+endif
+CFLAGS = -g -Wall -O3 -DSBCL_HOME=\"$(INSTALL_ROOT)/lib/sbcl/\"
ASFLAGS = $(CFLAGS)
CPPFLAGS = -I.
--------------000709020001060707020906--
More information about the freebsd-ports-bugs
mailing list