Changeset View
Changeset View
Standalone View
Standalone View
lang/rust/Makefile
# Created by: Jyun-Yan You <jyyou@cs.nctu.edu.tw> | # Created by: Jyun-Yan You <jyyou@cs.nctu.edu.tw> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= rust | PORTNAME= rust | ||||
PORTVERSION?= 1.29.0 | PORTVERSION?= 1.29.0 | ||||
PORTREVISION?= | PORTREVISION?= 1 | ||||
CATEGORIES= lang | CATEGORIES= lang | ||||
MASTER_SITES= http://static.rust-lang.org/dist/:src \ | MASTER_SITES= http://static.rust-lang.org/dist/:src \ | ||||
LOCAL/dumbbell/rust:rust_bootstrap \ | LOCAL/dumbbell/rust:rust_bootstrap \ | ||||
https://static.rust-lang.org/dist/:rust_bootstrap \ | https://static.rust-lang.org/dist/:rust_bootstrap \ | ||||
LOCAL/dumbbell/rust:cargo_bootstrap \ | LOCAL/dumbbell/rust:cargo_bootstrap \ | ||||
https://static.rust-lang.org/dist/:cargo_bootstrap \ | https://static.rust-lang.org/dist/:cargo_bootstrap \ | ||||
https://s3.amazonaws.com/rust-lang-ci/cargo-builds/:cargo_bootstrap \ | https://s3.amazonaws.com/rust-lang-ci/cargo-builds/:cargo_bootstrap \ | ||||
LOCAL/marino:bootstrap | LOCAL/marino:bootstrap | ||||
Show All 10 Lines | |||||
LICENSE= APACHE20 \ | LICENSE= APACHE20 \ | ||||
MIT | MIT | ||||
LICENSE_COMB= dual | LICENSE_COMB= dual | ||||
# APACHE20 license is standard, see Templates/Licenses/APACHE20 | # APACHE20 license is standard, see Templates/Licenses/APACHE20 | ||||
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT | LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT | ||||
BUILD_DEPENDS= cmake:devel/cmake | BUILD_DEPENDS= cmake:devel/cmake | ||||
LIB_DEPENDS= libcurl.so:ftp/curl \ | LIB_DEPENDS= libgit2.so:devel/libgit2 \ | ||||
libcurl.so:ftp/curl \ | |||||
libssh2.so:security/libssh2 | libssh2.so:security/libssh2 | ||||
dumbbell: One small comment about ordering: can you please order them based on the library name instead… | |||||
Done Inline ActionsSorry, I forgot about this minor bit thus fixed in a separate commit. Neither Porter's Handbook nor portlint seem to care about order in *_DEPENDS defined in port's Makefile. jbeich: Sorry, I forgot about this minor bit thus fixed in a separate commit. Neither Porter's Handbook… | |||||
ONLY_FOR_ARCHS?= aarch64 amd64 i386 | ONLY_FOR_ARCHS?= aarch64 amd64 i386 | ||||
ONLY_FOR_ARCHS_REASON= requires prebuilt bootstrap compiler | ONLY_FOR_ARCHS_REASON= requires prebuilt bootstrap compiler | ||||
BROKEN_aarch64= fails to build: bootstrap compiler crashes | BROKEN_aarch64= fails to build: bootstrap compiler crashes | ||||
# FIXME: The bootstrapped rustc adds -L/usr/local/lib in front of | # FIXME: The bootstrapped rustc adds -L/usr/local/lib in front of | ||||
# the LDFLAGS. When stage0's rustc is linked, it picks the installed | # the LDFLAGS. When stage0's rustc is linked, it picks the installed | ||||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
SOURCES_VARS= rust_manifests+=${RUST_SRC_MANIFEST} | SOURCES_VARS= rust_manifests+=${RUST_SRC_MANIFEST} | ||||
PLIST_FILES= lib/rustlib/components \ | PLIST_FILES= lib/rustlib/components \ | ||||
lib/rustlib/rust-installer-version | lib/rustlib/rust-installer-version | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
X_PY_ENV= HOME="${WRKDIR}" \ | X_PY_ENV= HOME="${WRKDIR}" \ | ||||
LIBGIT2_SYS_USE_PKG_CONFIG=1 \ | |||||
LIBSSH2_SYS_USE_PKG_CONFIG=1 \ | |||||
OPENSSL_DIR="${OPENSSLBASE}" | OPENSSL_DIR="${OPENSSLBASE}" | ||||
X_PY_CMD= ${PYTHON_CMD} ${WRKSRC}/x.py | X_PY_CMD= ${PYTHON_CMD} ${WRKSRC}/x.py | ||||
CRATES_PATCHED_BY_FBSD10_FIX= src/vendor/libssh2-sys \ | CRATES_PATCHED_BY_FBSD10_FIX= src/vendor/libssh2-sys \ | ||||
src/vendor/lzma-sys | src/vendor/lzma-sys | ||||
pre-fetch: | pre-fetch: | ||||
# FIXME: This is the same check for CONFLICTS as the standard | # FIXME: This is the same check for CONFLICTS as the standard | ||||
▲ Show 20 Lines • Show All 296 Lines • Show Last 20 Lines |
One small comment about ordering: can you please order them based on the library name instead of the port category?