Changeset View
Changeset View
Standalone View
Standalone View
lang/rust-bootstrap/Makefile
# Once the bootstraps are available on pkg.FreeBSD.org run sync.sh | # Once the bootstraps are available on pkg.FreeBSD.org run sync.sh | ||||
# to upload them to ~/public_distfiles on freefall in preparation | # to upload them to ~/public_distfiles on freefall in preparation | ||||
# for the next lang/rust update. | # for the next lang/rust update. | ||||
PORTNAME= rust | PORTNAME= rust | ||||
PORTVERSION= 1.54.0 | PORTVERSION= 1.55.0 | ||||
CATEGORIES= lang | CATEGORIES= lang | ||||
MASTER_SITES= https://static.rust-lang.org/dist/:rust \ | MASTER_SITES= https://static.rust-lang.org/dist/:rust \ | ||||
LOCAL/tobik/rust:${FLAVOR} \ | LOCAL/tobik/rust:${FLAVOR} \ | ||||
https://download.freebsd.org/ftp/${_RUST_FBSD_SUBDIR_${FLAVOR}}/:${FLAVOR} | https://download.freebsd.org/ftp/${_RUST_FBSD_SUBDIR_${FLAVOR}}/:${FLAVOR} | ||||
# http://pkg.freebsd.org/FreeBSD:12:powerpc64/quarterly/All/gcc9-9.3.0_1.txz?dummy=/:powerpc64_gcc | # http://pkg.freebsd.org/FreeBSD:12:powerpc64/quarterly/All/gcc9-9.3.0_1.txz?dummy=/:powerpc64_gcc | ||||
PKGNAMESUFFIX= -bootstrap | PKGNAMESUFFIX= -bootstrap | ||||
DISTNAME= ${PORTNAME}c-${PORTVERSION}-src | DISTNAME= ${PORTNAME}c-${PORTVERSION}-src | ||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:rust \ | DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:rust \ | ||||
Show All 15 Lines | BUILD_DEPENDS= cmake:devel/cmake \ | ||||
gmake:devel/gmake \ | gmake:devel/gmake \ | ||||
rust>=${PORTVERSION}:lang/rust | rust>=${PORTVERSION}:lang/rust | ||||
FLAVORS= aarch64 amd64 armv6 armv7 i386 powerpc64_elfv1 powerpc64_elfv2 \ | FLAVORS= aarch64 amd64 armv6 armv7 i386 powerpc64_elfv1 powerpc64_elfv2 \ | ||||
powerpc64le powerpc | powerpc64le powerpc | ||||
FLAVOR?= ${FLAVORS:[1]} | FLAVOR?= ${FLAVORS:[1]} | ||||
aarch64_PKGNAMEPREFIX= aarch64- | aarch64_PKGNAMEPREFIX= aarch64- | ||||
aarch64_BUILD_DEPENDS= llvm90>0:devel/llvm90 | |||||
amd64_PKGNAMEPREFIX= amd64- | amd64_PKGNAMEPREFIX= amd64- | ||||
armv6_PKGNAMEPREFIX= armv6- | armv6_PKGNAMEPREFIX= armv6- | ||||
armv7_PKGNAMEPREFIX= armv7- | armv7_PKGNAMEPREFIX= armv7- | ||||
i386_PKGNAMEPREFIX= i386- | i386_PKGNAMEPREFIX= i386- | ||||
powerpc64_elfv1_PKGNAMEPREFIX= powerpc64-elfv1- | powerpc64_elfv1_PKGNAMEPREFIX= powerpc64-elfv1- | ||||
powerpc64_elfv1_BUILD_DEPENDS= powerpc64-gcc9>0:devel/freebsd-gcc9@powerpc64 | powerpc64_elfv1_BUILD_DEPENDS= powerpc64-gcc9>0:devel/freebsd-gcc9@powerpc64 | ||||
powerpc64_elfv2_PKGNAMEPREFIX= powerpc64-elfv2- | powerpc64_elfv2_PKGNAMEPREFIX= powerpc64-elfv2- | ||||
powerpc64le_PKGNAMEPREFIX= powerpc64le- | powerpc64le_PKGNAMEPREFIX= powerpc64le- | ||||
powerpc_PKGNAMEPREFIX= powerpc- | powerpc_PKGNAMEPREFIX= powerpc- | ||||
powerpc_BUILD_DEPENDS= powerpc-binutils>0:devel/binutils@powerpc | powerpc_BUILD_DEPENDS= powerpc-binutils>0:devel/binutils@powerpc | ||||
USES= ninja:build perl5 python:3.6+,build tar:xz | USES= ninja:build perl5 python:3.6+,build tar:xz | ||||
.if ${FLAVOR} == powerpc64_elfv1 | .if ${FLAVOR} == powerpc64_elfv1 | ||||
USE_GCC= 9:build | USE_GCC= 9:build | ||||
.endif | .endif | ||||
# for openssl-src crate | # for openssl-src crate | ||||
USE_PERL5= build | USE_PERL5= build | ||||
.if ${FLAVOR} == aarch64 | |||||
CC= clang90 | |||||
CXX= clang++90 | |||||
.endif | |||||
PATCHDIR= ${.CURDIR}/../rust/files | PATCHDIR= ${.CURDIR}/../rust/files | ||||
# rustc stashes intermediary files in TMPDIR (default /tmp) which | # rustc stashes intermediary files in TMPDIR (default /tmp) which | ||||
# might cause issues for users that for some reason space limit | # might cause issues for users that for some reason space limit | ||||
# their /tmp. WRKDIR should have plenty of space. | # their /tmp. WRKDIR should have plenty of space. | ||||
# ?= to allow users to still overwrite it in make.conf. | # ?= to allow users to still overwrite it in make.conf. | ||||
TMPDIR?= ${WRKDIR} | TMPDIR?= ${WRKDIR} | ||||
# Resulting packages are not specific to amd64 | # Resulting packages are not specific to amd64 | ||||
NO_ARCH= yes | NO_ARCH= yes | ||||
Show All 40 Lines | |||||
_RUST_LLVM_TARGET_armv6= ARM | _RUST_LLVM_TARGET_armv6= ARM | ||||
_RUST_LLVM_TARGET_armv7= ARM | _RUST_LLVM_TARGET_armv7= ARM | ||||
_RUST_LLVM_TARGET_i386= X86 | _RUST_LLVM_TARGET_i386= X86 | ||||
_RUST_LLVM_TARGET_powerpc64_elfv1= PowerPC | _RUST_LLVM_TARGET_powerpc64_elfv1= PowerPC | ||||
_RUST_LLVM_TARGET_powerpc64_elfv2= PowerPC | _RUST_LLVM_TARGET_powerpc64_elfv2= PowerPC | ||||
_RUST_LLVM_TARGET_powerpc64le= PowerPC | _RUST_LLVM_TARGET_powerpc64le= PowerPC | ||||
_RUST_LLVM_TARGET_powerpc= PowerPC | _RUST_LLVM_TARGET_powerpc= PowerPC | ||||
_RUST_LLVM_TRIPLE= ${_RUST_LLVM_TRIPLE_${FLAVOR}:U${_RUST_TARGET}} | _RUST_LLVM_TRIPLE= ${_RUST_LLVM_TRIPLE_${FLAVOR}:U${_RUST_TARGET}} | ||||
_RUST_LLVM_TRIPLE_aarch64= aarch64-unknown-freebsd12.0 | |||||
_RUST_LLVM_TRIPLE_armv6= armv6-gnueabihf-freebsd | _RUST_LLVM_TRIPLE_armv6= armv6-gnueabihf-freebsd | ||||
_RUST_LLVM_TRIPLE_armv7= armv7-gnueabihf-freebsd | _RUST_LLVM_TRIPLE_armv7= armv7-gnueabihf-freebsd | ||||
_RUST_LLVM_TRIPLE_powerpc= powerpc-unknown-freebsd13.0 # secure-plt | _RUST_LLVM_TRIPLE_powerpc= powerpc-unknown-freebsd13.0 # secure-plt | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if ${OPSYS} != FreeBSD | .if ${OPSYS} != FreeBSD | ||||
IGNORE= is only for FreeBSD | IGNORE= is only for FreeBSD | ||||
▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines |