diff options
author | pho <pho@pkgsrc.org> | 2015-02-11 09:38:08 +0000 |
---|---|---|
committer | pho <pho@pkgsrc.org> | 2015-02-11 09:38:08 +0000 |
commit | 164d7855962bf8fc0a0ab5e007310dcfff30de67 (patch) | |
tree | 9e27bd899ff9f8d6d32687988d5044c308c93819 | |
parent | 47bb74c85f156f713f8b09e00e0090e6d7dd41e4 (diff) | |
download | pkgsrc-164d7855962bf8fc0a0ab5e007310dcfff30de67.tar.gz |
Uploaded bootkits for NetBSD/amd64, FreeBSD/i386 and Darwin/ppc to LOCAL_PORTS
They derived from safe bootkits in wip/ghc. See my previous commit for
details.
-rw-r--r-- | lang/ghc7/bootstrap.mk | 60 | ||||
-rw-r--r-- | lang/ghc7/distinfo | 11 |
2 files changed, 45 insertions, 26 deletions
diff --git a/lang/ghc7/bootstrap.mk b/lang/ghc7/bootstrap.mk index cd32d8b7dc1..c273edc4d25 100644 --- a/lang/ghc7/bootstrap.mk +++ b/lang/ghc7/bootstrap.mk @@ -1,4 +1,4 @@ -# $NetBSD: bootstrap.mk,v 1.20 2015/02/11 07:49:51 pho Exp $ +# $NetBSD: bootstrap.mk,v 1.21 2015/02/11 09:38:08 pho Exp $ # ----------------------------------------------------------------------------- # Select a bindist of bootstrapping compiler on a per-platform basis. # @@ -9,61 +9,71 @@ # BOOT_TARBALL # Similar to BOOT_ARCHIVE, but "*.tar" not "*.tar.xz". # +# BOOT_VERSION +# Version of the bootstrapping compiler to use. This can be +# overriden for specific platforms. +# .include "../../mk/bsd.prefs.mk" -BOOT_ARCHIVE:= # empty +# Use the same version as the package itself by default. +BOOT_VERSION:= ${PKGNAME:C/^.*-//} .if !empty(MACHINE_PLATFORM:MDarwin-*-powerpc) || make(distinfo) -BOOT_ARCHIVE= ${PKGNAME_NOREV}-boot-powerpc-apple-darwin.tar.xz -#DISTFILES+= ${BOOT_ARCHIVE} - -# Existence of libelf makes LeadingUnderscore being "NO", which is -# incorrect for this platform. See ${WRKSRC}/aclocal.m4 -# (FP_LEADING_UNDERSCORE) -CONFLICTS+= libelf-[0-9]* +BOOT_ARCHIVE:= ghc-${BOOT_VERSION}-boot-powerpc-apple-darwin.tar.xz +DISTFILES:= ${DISTFILES} ${BOOT_ARCHIVE} # Available in LOCAL_PORTS .endif .if !empty(MACHINE_PLATFORM:MFreeBSD-*-i386) || make(distinfo) -BOOT_ARCHIVE= ${PKGNAME_NOREV}-boot-i386-unknown-freebsd.tar.xz -#DISTFILES+= ${BOOT_ARCHIVE} +BOOT_ARCHIVE:= ghc-${BOOT_VERSION}-boot-i386-unknown-freebsd.tar.xz +DISTFILES:= ${DISTFILES} ${BOOT_ARCHIVE} # Available in LOCAL_PORTS .endif -.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || make(distinfo) -BOOT_ARCHIVE= ${PKGNAME_NOREV}-boot-i386-unknown-netbsd.tar.xz -#DISTFILES+= ${BOOT_ARCHIVE} +.if !empty(MACHINE_PLATFORM:MLinux-*-x86_64) || make(distinfo) +BOOT_ARCHIVE:= ghc-${BOOT_VERSION}-boot-x86_64-unknown-linux.tar.xz +#DISTFILES:= ${DISTFILES} ${BOOT_ARCHIVE} .endif -.if !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64) || make(distinfo) -BOOT_ARCHIVE= ${PKGNAME_NOREV}-boot-x86_64-unknown-netbsd.tar.xz -#DISTFILES+= ${BOOT_ARCHIVE} +.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || make(distinfo) +BOOT_ARCHIVE:= ghc-${BOOT_VERSION}-boot-i386-unknown-netbsd.tar.xz +#DISTFILES:= ${DISTFILES} ${BOOT_ARCHIVE} .endif -.if !empty(MACHINE_PLATFORM:MLinux-*-x86_64) || make(distinfo) -BOOT_ARCHIVE= ${PKGNAME_NOREV}-boot-x86_64-unknown-linux.tar.xz -#DISTFILES+= ${BOOT_ARCHIVE} +.if !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64) || make(distinfo) +BOOT_ARCHIVE:= ghc-${BOOT_VERSION}-boot-x86_64-unknown-netbsd.tar.xz +DISTFILES:= ${DISTFILES} ${BOOT_ARCHIVE} # Available in LOCAL_PORTS .endif .if !empty(MACHINE_PLATFORM:MSunOS-5.11-i386) || make(distinfo) -BOOT_ARCHIVE= ${PKGNAME_NOREV}-boot-i386-unknown-solaris2.tar.xz -#DISTFILES+= ${BOOT_ARCHIVE} +BOOT_ARCHIVE:= ghc-${BOOT_VERSION}-boot-i386-unknown-solaris2.tar.xz +#DISTFILES:= ${DISTFILES} ${BOOT_ARCHIVE} .endif .if !empty(MACHINE_PLATFORM:MSunOS-5.11-x86_64) || make(distinfo) -BOOT_ARCHIVE= ${PKGNAME_NOREV}-boot-x86_64-unknown-solaris2.tar.xz -#DISTFILES+= ${BOOT_ARCHIVE} +BOOT_ARCHIVE:= ghc-${BOOT_VERSION}-boot-x86_64-unknown-solaris2.tar.xz +#DISTFILES:= ${DISTFILES} ${BOOT_ARCHIVE} .endif .if empty(BOOT_ARCHIVE) -BOOT_ARCHIVE= ${PKGNAME_NOREV}-boot-unknown.tar.xz +BOOT_ARCHIVE:= ghc-${BOOT_VERSION}-boot-unknown.tar.xz PKG_FAIL_REASON+= "internal error: unsupported platform" .endif +# For package developers, please do not upload any bootkits unsafely +# built. That is, machines shared with someone or on a cloud hosting +# service should be avoided for building bootkits. .for i in ${DISTFILES:M*-boot-*} SITES.${i}?= ${MASTER_SITE_LOCAL} .endfor BOOT_TARBALL= ${BOOT_ARCHIVE:C/\.xz$//} +# Existence of libelf makes LeadingUnderscore being "NO", which is +# incorrect for this platform. See ${WRKSRC}/aclocal.m4 +# (FP_LEADING_UNDERSCORE) +.if ${OPSYS} == "Darwin" +CONFLICTS+= libelf-[0-9]* +.endif + # FreeBSD < 10 surprisingly doesn't have a native iconv so we need to # use pkgsrc libiconv for this OPSYS. And if a bootkit depends on # pkgsrc libiconv, the "normal" build must do the same because GHC diff --git a/lang/ghc7/distinfo b/lang/ghc7/distinfo index 926e93cc3ad..b1ffdceec8f 100644 --- a/lang/ghc7/distinfo +++ b/lang/ghc7/distinfo @@ -1,5 +1,14 @@ -$NetBSD: distinfo,v 1.8 2015/02/06 01:24:48 pho Exp $ +$NetBSD: distinfo,v 1.9 2015/02/11 09:38:08 pho Exp $ +SHA1 (ghc-7.6.3-boot-i386-unknown-freebsd.tar.xz) = aea6224f30aa52d9998f2c77f473902179f03b8c +RMD160 (ghc-7.6.3-boot-i386-unknown-freebsd.tar.xz) = 39a588cac4a0411db45ef269fbe6a63c6cb428ee +Size (ghc-7.6.3-boot-i386-unknown-freebsd.tar.xz) = 28097800 bytes +SHA1 (ghc-7.6.3-boot-powerpc-apple-darwin.tar.xz) = 420be0242c6a57af58e1d2ff7e1997616777cdbb +RMD160 (ghc-7.6.3-boot-powerpc-apple-darwin.tar.xz) = 7d4ab57dc6054cbd67b07e64b2142fded3121f09 +Size (ghc-7.6.3-boot-powerpc-apple-darwin.tar.xz) = 33660776 bytes +SHA1 (ghc-7.6.3-boot-x86_64-unknown-netbsd.tar.xz) = 82378c9a172aef10d4cf277967dbf97a0fc2e190 +RMD160 (ghc-7.6.3-boot-x86_64-unknown-netbsd.tar.xz) = c502da9c64f2a58b1af7f98fb90c1110d6a5fff5 +Size (ghc-7.6.3-boot-x86_64-unknown-netbsd.tar.xz) = 28768864 bytes SHA1 (ghc-7.6.3-src.tar.bz2) = 8938e1ef08b37a4caa071fa169e79a3001d065ff RMD160 (ghc-7.6.3-src.tar.bz2) = 82a673ed38b7cf9a59afeb01057625fc761a822b Size (ghc-7.6.3-src.tar.bz2) = 110763823 bytes |