| @@ -1,103 +1,103 @@ | | | @@ -1,103 +1,103 @@ |
1 | # $NetBSD: Makefile,v 1.65 2016/02/01 23:29:56 asau Exp $ | | 1 | # $NetBSD: Makefile,v 1.66 2016/03/01 19:22:41 asau Exp $ |
2 | | | 2 | |
3 | DISTNAME= ${PKGNAME_NOREV}-source | | 3 | DISTNAME= ${PKGNAME_NOREV}-source |
4 | PKGNAME= sbcl-1.3.2 | | 4 | PKGNAME= sbcl-1.3.3 |
5 | CATEGORIES= lang | | 5 | CATEGORIES= lang |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sbcl/} | | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sbcl/} |
7 | EXTRACT_SUFX= .tar.bz2 | | 7 | EXTRACT_SUFX= .tar.bz2 |
8 | | | 8 | |
9 | MAINTAINER= asau@NetBSD.org | | 9 | MAINTAINER= asau@NetBSD.org |
10 | HOMEPAGE= http://www.sbcl.org/ | | 10 | HOMEPAGE= http://www.sbcl.org/ |
11 | COMMENT= SBCL, a Common Lisp implementation | | 11 | COMMENT= SBCL, a Common Lisp implementation |
12 | | | 12 | |
13 | # SBCL creates a new release with minor updates and fixes every | | 13 | # SBCL creates a new release with minor updates and fixes every |
14 | # month. The maintainer of this package does not have the time | | 14 | # month. The maintainer of this package does not have the time |
15 | # to build, test, update, etc. this package that often. If you | | 15 | # to build, test, update, etc. this package that often. If you |
16 | # would like a newer (or older) version, this works very often: | | 16 | # would like a newer (or older) version, this works very often: |
17 | # 1) change the PKGNAME variable above as desired | | 17 | # 1) change the PKGNAME variable above as desired |
18 | # 2) make fetch && make makesum && make package | | 18 | # 2) make fetch && make makesum && make package |
19 | | | 19 | |
20 | USE_TOOLS+= gmake | | 20 | USE_TOOLS+= gmake |
21 | | | 21 | |
22 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} | | 22 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} |
23 | | | 23 | |
24 | .include "../../mk/bsd.prefs.mk" | | 24 | .include "../../mk/bsd.prefs.mk" |
25 | | | 25 | |
26 | # | | 26 | # |
27 | # Bootstrap section. | | 27 | # Bootstrap section. |
28 | # | | 28 | # |
29 | # SBCL needs an existing Common Lisp system to build it... | | 29 | # SBCL needs an existing Common Lisp system to build it... |
30 | # Currently allowed systems are CLISP, CMUCL, OpenMCL, and SBCL itself. | | 30 | # Currently allowed systems are CLISP, CMUCL, OpenMCL, and SBCL itself. |
31 | # | | 31 | # |
32 | # If SBCL is installed in an unusual place when trying to build this | | 32 | # If SBCL is installed in an unusual place when trying to build this |
33 | # package, you may need to set the full path in SBCL_BOOT_SYSTEM and | | 33 | # package, you may need to set the full path in SBCL_BOOT_SYSTEM and |
34 | # build the package with "SBCL_HOME=/path/to/SBCL/core/image/ make" | | 34 | # build the package with "SBCL_HOME=/path/to/SBCL/core/image/ make" |
35 | | | 35 | |
36 | #SBCL_BOOT_SYSTEM= clisp # CLisp | | 36 | #SBCL_BOOT_SYSTEM= clisp # CLisp |
37 | #SBCL_BOOT_SYSTEM= "lisp -batch" # CMUCL | | 37 | #SBCL_BOOT_SYSTEM= "lisp -batch" # CMUCL |
38 | #SBCL_BOOT_SYSTEM= "openmcl --batch" # OpenMCL | | 38 | #SBCL_BOOT_SYSTEM= "openmcl --batch" # OpenMCL |
39 | #SBCL_BOOT_SYSTEM= sbcl # SBCL | | 39 | #SBCL_BOOT_SYSTEM= sbcl # SBCL |
40 | | | 40 | |
41 | .if !defined(SBCL_BOOT_SYSTEM) | | 41 | .if !defined(SBCL_BOOT_SYSTEM) |
42 | # Use "clisp -ansi -on-error abort" to make the build more reproducible, | | 42 | # Use "clisp -ansi -on-error abort" to make the build more reproducible, |
43 | # per Christophe Rhodes: | | 43 | # per Christophe Rhodes: |
44 | SBCL_BOOT_SYSTEM= clisp -norc -ansi -on-error abort | | 44 | SBCL_BOOT_SYSTEM= clisp -norc -ansi -on-error abort |
45 | BUILD_DEPENDS+= clisp-[0-9]*:../../lang/clisp | | 45 | BUILD_DEPENDS+= clisp-[0-9]*:../../lang/clisp |
46 | UNLIMIT_RESOURCES= datasize | | 46 | UNLIMIT_RESOURCES= datasize |
47 | .elif ${SBCL_BOOT_SYSTEM} == clisp | | 47 | .elif ${SBCL_BOOT_SYSTEM} == clisp |
48 | BUILD_DEPENDS+= clisp-[0-9]*:../../lang/clisp | | 48 | BUILD_DEPENDS+= clisp-[0-9]*:../../lang/clisp |
49 | UNLIMIT_RESOURCES= datasize | | 49 | UNLIMIT_RESOURCES= datasize |
50 | .elif ${SBCL_BOOT_SYSTEM} == sbcl | | 50 | .elif ${SBCL_BOOT_SYSTEM} == sbcl |
51 | # Get bootstrap version: | | 51 | # Get bootstrap version: |
52 | BUILD_DEPENDS+= sbcl-[0-9]*:../../lang/sbcl | | 52 | BUILD_DEPENDS+= sbcl-[0-9]*:../../lang/sbcl |
53 | .endif | | 53 | .endif |
54 | | | 54 | |
55 | SUBST_CLASSES+= fix-paths | | 55 | SUBST_CLASSES+= fix-paths |
56 | SUBST_STAGE.fix-paths= pre-configure | | 56 | SUBST_STAGE.fix-paths= pre-configure |
57 | SUBST_MESSAGE.fix-paths= Fixing absolute paths. | | 57 | SUBST_MESSAGE.fix-paths= Fixing absolute paths. |
58 | SUBST_FILES.fix-paths= install.sh src/runtime/runtime.c doc/sbcl.1 | | 58 | SUBST_FILES.fix-paths= install.sh src/runtime/runtime.c doc/sbcl.1 |
59 | SUBST_SED.fix-paths= -e 's,@PREFIX@,${PREFIX},g' | | 59 | SUBST_SED.fix-paths= -e 's,@PREFIX@,${PREFIX},g' |
60 | SUBST_SED.fix-paths+= -e 's,/var/log,${VARBASE}/log,g' | | 60 | SUBST_SED.fix-paths+= -e 's,/var/log,${VARBASE}/log,g' |
61 | | | 61 | |
62 | SUBST_CLASSES+= fix-gtar | | 62 | SUBST_CLASSES+= fix-gtar |
63 | SUBST_STAGE.fix-gtar= pre-configure | | 63 | SUBST_STAGE.fix-gtar= pre-configure |
64 | SUBST_MESSAGE.fix-gtar= Fixing GNU tar references. | | 64 | SUBST_MESSAGE.fix-gtar= Fixing GNU tar references. |
65 | SUBST_FILES.fix-gtar= contrib/asdf-install/installer.lisp | | 65 | SUBST_FILES.fix-gtar= contrib/asdf-install/installer.lisp |
66 | SUBST_SED.fix-gtar= -e 's,@GTAR@,${GTAR},' | | 66 | SUBST_SED.fix-gtar= -e 's,@GTAR@,${GTAR},' |
67 | | | 67 | |
68 | SUBST_CLASSES+= fix-bins | | 68 | SUBST_CLASSES+= fix-bins |
69 | SUBST_STAGE.fix-bins= pre-configure | | 69 | SUBST_STAGE.fix-bins= pre-configure |
70 | SUBST_FILES.fix-bins= src/runtime/Config.x86-64-sunos | | 70 | SUBST_FILES.fix-bins= src/runtime/Config.x86-64-sunos |
71 | SUBST_FILES.fix-bins+= src/runtime/Config.x86-sunos | | 71 | SUBST_FILES.fix-bins+= src/runtime/Config.x86-sunos |
72 | SUBST_SED.fix-bins= -e 's,nm ,/usr/bin/nm ,' | | 72 | SUBST_SED.fix-bins= -e 's,nm ,/usr/bin/nm ,' |
73 | SUBST_SED.fix-bins+= -e 's,ggrep,grep,' | | 73 | SUBST_SED.fix-bins+= -e 's,ggrep,grep,' |
74 | | | 74 | |
75 | .if !empty(MACHINE_PLATFORM:MSunOS-*-i386) | | 75 | .if !empty(MACHINE_PLATFORM:MSunOS-*-i386) |
76 | SBCL_ARCH_ARGS= "--arch=x86" | | 76 | SBCL_ARCH_ARGS= "--arch=x86" |
77 | .elif !empty(MACHINE_PLATFORM:MSunOS-*-x86_64) | | 77 | .elif !empty(MACHINE_PLATFORM:MSunOS-*-x86_64) |
78 | SBCL_ARCH_ARGS= "--arch=x86-64" | | 78 | SBCL_ARCH_ARGS= "--arch=x86-64" |
79 | .endif | | 79 | .endif |
80 | | | 80 | |
81 | do-build: | | 81 | do-build: |
82 | cd ${WRKSRC} && ${SH} make.sh --prefix=${PREFIX} ${SBCL_ARCH_ARGS} --xc-host=${SBCL_BOOT_SYSTEM:Q} | | 82 | cd ${WRKSRC} && ${SH} make.sh --prefix=${PREFIX} ${SBCL_ARCH_ARGS} --xc-host=${SBCL_BOOT_SYSTEM:Q} |
83 | | | 83 | |
84 | post-build: | | 84 | post-build: |
85 | cd ${WRKSRC} && ${RM} -f contrib/sb-cover/test-output/* | | 85 | cd ${WRKSRC} && ${RM} -f contrib/sb-cover/test-output/* |
86 | | | 86 | |
87 | do-install: | | 87 | do-install: |
88 | cd ${WRKSRC} && BUILD_ROOT=${DESTDIR:Q} INSTALL_ROOT=${PREFIX:Q} MAN_DIR=${PREFIX:Q}/${PKGMANDIR} ${SH} install.sh | | 88 | cd ${WRKSRC} && BUILD_ROOT=${DESTDIR:Q} INSTALL_ROOT=${PREFIX:Q} MAN_DIR=${PREFIX:Q}/${PKGMANDIR} ${SH} install.sh |
89 | rm -f $(DESTDIR)$(PREFIX)/lib/sbcl/sb-posix/test-output/write-test.txt | | 89 | rm -f $(DESTDIR)$(PREFIX)/lib/sbcl/sb-posix/test-output/write-test.txt |
90 | rm -f $(DESTDIR)$(PREFIX)/lib/sbcl/sb-posix/test-output/read-test.txt | | 90 | rm -f $(DESTDIR)$(PREFIX)/lib/sbcl/sb-posix/test-output/read-test.txt |
91 | rm -f $(DESTDIR)$(PREFIX)/lib/sbcl/asdf-install/installer.lisp.orig | | 91 | rm -f $(DESTDIR)$(PREFIX)/lib/sbcl/asdf-install/installer.lisp.orig |
92 | | | 92 | |
93 | do-test: | | 93 | do-test: |
94 | # for f in compiler.pure.lisp interface.pure.lisp compiler.impure.lisp debug.impure.lisp interface.impure.lisp; do mv ${WRKSRC}/tests/$$f ${WRKSRC}/tests/$$f.off || :; done | | 94 | # for f in compiler.pure.lisp interface.pure.lisp compiler.impure.lisp debug.impure.lisp interface.impure.lisp; do mv ${WRKSRC}/tests/$$f ${WRKSRC}/tests/$$f.off || :; done |
95 | cd ${WRKSRC}/tests && ${SH} ./run-tests.sh | | 95 | cd ${WRKSRC}/tests && ${SH} ./run-tests.sh |
96 | | | 96 | |
97 | .if ${MACHINE_ARCH} == "x86_64" | | 97 | .if ${MACHINE_ARCH} == "x86_64" |
98 | PLIST_SUBST+= SUFX64=-64 | | 98 | PLIST_SUBST+= SUFX64=-64 |
99 | .else | | 99 | .else |
100 | PLIST_SUBST+= SUFX64= | | 100 | PLIST_SUBST+= SUFX64= |
101 | .endif | | 101 | .endif |
102 | | | 102 | |
103 | .include "../../mk/bsd.pkg.mk" | | 103 | .include "../../mk/bsd.pkg.mk" |