pkgsrc/lang/openjdk7/bootstrap.mk
marino fc6f3418aa PR#45836 lang/openjd7: Repack DragonFly bootstraps
OpenJDK7 wouldn't build on DragonFly for non-root users due to a conflict
with the bootstrap/LICENSE file.  Both the -bin-common and the
-bin-dragonfly bootstraps contained the same file, both with 444 file
permissions.  As a result, the extraction phase fails for non-root pbulk
builds and other under-privileged users.

The DragonFly bootstraps were repacked to exclude the duplicate
bootstrap/LICENSE file, and the bootstrap.mk file updated accordingly.
The new bootstraps are packed with xz, resulting in a tarball 6MB
smaller for i386.

Other changes while we're here:
1) Add LICENSE=gnu-gpl-v2
2) USE_TOOLS+= patch (pkglint complained)
3) Fix ONLY_FOR_PLATFORM triplet for DragonFly (pkglint complained)
2012-05-16 08:55:45 +00:00

56 lines
2 KiB
Makefile

# $NetBSD: bootstrap.mk,v 1.7 2012/05/16 08:55:45 marino Exp $
ONLY_FOR_PLATFORM= NetBSD-[56].*-i386 NetBSD-[56].*-x86_64
ONLY_FOR_PLATFORM+= DragonFly-[23].*-*
BOOT.nb5-i386= bootstrap-jdk7-bin-netbsd-5-i386-20110811.tar.bz2
BOOT.nb5-amd64= bootstrap-jdk7-bin-netbsd-5-amd64-20110811.tar.bz2
BOOT.nb6-i386= bootstrap-jdk7-bin-netbsd-6-i386-20110811.tar.bz2
BOOT.nb6-amd64= bootstrap-jdk7-bin-netbsd-6-amd64-20110811.tar.bz2
BOOT.df213-i386= bootstrap-jdk7-bin-dragonfly-2.13-i386-20110811A.tar.xz
# 1.7 partial bootstrap:
BOOT.df213-amd64= bootstrap-jdk7-bin-dragonfly-2.13-amd64-20110811A.tar.xz
BOOT.common-20110811= bootstrap-jdk7-bin-common-20110811.tar.bz2
.if !empty(MACHINE_PLATFORM:MNetBSD-5.[0-8]*-i386) || make(distinfo)
DISTFILES+= ${BOOT.nb5-i386}
EXTRACT_ONLY+= ${BOOT.nb5-i386}
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-5.[0-8]*-x86_64) || make(distinfo)
DISTFILES+= ${BOOT.nb5-amd64}
EXTRACT_ONLY+= ${BOOT.nb5-amd64}
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-6.[0-8]*-i386) || make(distinfo) || \
!empty(MACHINE_PLATFORM:MNetBSD-5.99.*-i386) || \
!empty(MACHINE_PLATFORM:MNetBSD-6.99.*-i386)
DISTFILES+= ${BOOT.nb6-i386}
EXTRACT_ONLY+= ${BOOT.nb6-i386}
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-6.[0-8]*-x86_64) || make(distinfo) || \
!empty(MACHINE_PLATFORM:MNetBSD-5.99.*-x86_64) || \
!empty(MACHINE_PLATFORM:MNetBSD-6.99.*-x86_64)
DISTFILES+= ${BOOT.nb6-amd64}
EXTRACT_ONLY+= ${BOOT.nb6-amd64}
.endif
.if !empty(MACHINE_PLATFORM:MDragonFly-*-i386) || make(distinfo)
MASTER_SITES+= http://dl.wolfpond.org/openjdk7/
DISTFILES+= ${BOOT.df213-i386}
EXTRACT_ONLY+= ${BOOT.df213-i386}
.endif
.if !empty(MACHINE_PLATFORM:MDragonFly-*-x86_64) || make(distinfo)
MASTER_SITES+= http://dl.wolfpond.org/openjdk7/
DISTFILES+= ${BOOT.df213-amd64}
EXTRACT_ONLY+= ${BOOT.df213-amd64}
.endif
.if !empty(DISTFILES:M*20110811*) || make(distinfo)
DISTFILES+= ${BOOT.common-20110811}
EXTRACT_ONLY+= ${BOOT.common-20110811}
.endif
ALT_BOOTDIR= ${WRKDIR}/bootstrap