Sat Feb 7 20:08:30 2015 UTC ()
Provide (invalid) value for BOOT_ARCHIVE for unknown architectures to
avoid warnings in the rest of the while.


(joerg)
diff -r1.17 -r1.18 pkgsrc/lang/ghc7/bootstrap.mk

cvs diff -r1.17 -r1.18 pkgsrc/lang/ghc7/bootstrap.mk (expand / switch to unified diff)

--- pkgsrc/lang/ghc7/bootstrap.mk 2015/02/07 09:35:55 1.17
+++ pkgsrc/lang/ghc7/bootstrap.mk 2015/02/07 20:08:30 1.18
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: bootstrap.mk,v 1.17 2015/02/07 09:35:55 pho Exp $ 1# $NetBSD: bootstrap.mk,v 1.18 2015/02/07 20:08:30 joerg Exp $
2# ----------------------------------------------------------------------------- 2# -----------------------------------------------------------------------------
3# Select a bindist of bootstrapping compiler on a per-platform basis. 3# Select a bindist of bootstrapping compiler on a per-platform basis.
4# 4#
5# BOOT_ARCHIVE 5# BOOT_ARCHIVE
6# This variable is set to the name of compressed archive file of a 6# This variable is set to the name of compressed archive file of a
7# bootstrapping compiler for the current platform. 7# bootstrapping compiler for the current platform.
8# 8#
9# BOOT_TARBALL 9# BOOT_TARBALL
10# Similar to BOOT_ARCHIVE, but "*.tar" not "*.tar.xz". 10# Similar to BOOT_ARCHIVE, but "*.tar" not "*.tar.xz".
11# 11#
12.include "../../mk/bsd.prefs.mk" 12.include "../../mk/bsd.prefs.mk"
13.if ${MACHINE_ARCH} == "i386" && ${OPSYS} == "FreeBSD" 13.if ${MACHINE_ARCH} == "i386" && ${OPSYS} == "FreeBSD"
14BOOT_ARCHIVE:= ${PKGNAME}-boot-i386-unknown-freebsd.tar.xz 14BOOT_ARCHIVE:= ${PKGNAME}-boot-i386-unknown-freebsd.tar.xz
@@ -26,26 +26,27 @@ CONFLICTS+= libelf-[0-9]* @@ -26,26 +26,27 @@ CONFLICTS+= libelf-[0-9]*
26.elif ${MACHINE_ARCH} == "x86_64" && ${OPSYS} == "Linux" 26.elif ${MACHINE_ARCH} == "x86_64" && ${OPSYS} == "Linux"
27BOOT_ARCHIVE:= ${PKGNAME}-boot-x86_64-unknown-linux.tar.xz 27BOOT_ARCHIVE:= ${PKGNAME}-boot-x86_64-unknown-linux.tar.xz
28 28
29.elif ${MACHINE_ARCH} == "x86_64" && ${OPSYS} == "NetBSD" 29.elif ${MACHINE_ARCH} == "x86_64" && ${OPSYS} == "NetBSD"
30BOOT_ARCHIVE:= ${PKGNAME}-boot-x86_64-unknown-netbsd.tar.xz 30BOOT_ARCHIVE:= ${PKGNAME}-boot-x86_64-unknown-netbsd.tar.xz
31 31
32.elif !empty(MACHINE_PLATFORM:MSunOS-5.11-i386) 32.elif !empty(MACHINE_PLATFORM:MSunOS-5.11-i386)
33BOOT_ARCHIVE:= ${PKGNAME}-boot-i386-unknown-solaris2.tar.xz 33BOOT_ARCHIVE:= ${PKGNAME}-boot-i386-unknown-solaris2.tar.xz
34 34
35.elif !empty(MACHINE_PLATFORM:MSunOS-5.11-x86_64) 35.elif !empty(MACHINE_PLATFORM:MSunOS-5.11-x86_64)
36BOOT_ARCHIVE:= ${PKGNAME}-boot-x86_64-unknown-solaris2.tar.xz 36BOOT_ARCHIVE:= ${PKGNAME}-boot-x86_64-unknown-solaris2.tar.xz
37 37
38.else 38.else
 39BOOT_ARCHIVE:= ${PKGNAME}-boot-unknown.tar.xz
39PKG_FAIL_REASON+= "internal error: unsupported platform" 40PKG_FAIL_REASON+= "internal error: unsupported platform"
40.endif 41.endif
41 42
42# FreeBSD < 10 surprisingly doesn't have a native iconv so we need to 43# FreeBSD < 10 surprisingly doesn't have a native iconv so we need to
43# use pkgsrc libiconv for this OPSYS. And if a bootkit depends on 44# use pkgsrc libiconv for this OPSYS. And if a bootkit depends on
44# pkgsrc libiconv, the "normal" build must do the same because GHC 45# pkgsrc libiconv, the "normal" build must do the same because GHC
45# always needs to link executables with libiconv, just like libgmp 46# always needs to link executables with libiconv, just like libgmp
46# when integer-gmp is used. For this reason it might be desirable to 47# when integer-gmp is used. For this reason it might be desirable to
47# create two separate bootkits, one for < 10 and another for >= 10. 48# create two separate bootkits, one for < 10 and another for >= 10.
48.if ${OPSYS} == "FreeBSD" 49.if ${OPSYS} == "FreeBSD"
49USE_BUILTIN.iconv= no 50USE_BUILTIN.iconv= no
50.endif 51.endif
51 52