6bebfaa8a0
- Use bundled libgit/libssh, the versions in ports are too old - Update lang/rust-nightly to 2021-02-12 - Update devel/racer to 2.1.41 - Import upstream patch to fix build issue for Firefox and related ports (https://bugzilla.mozilla.org/show_bug.cgi?id=1684261) Changes: https://github.com/rust-lang/rust/releases/tag/1.50.0 Tested by: mikael, pkubaj Differential Revision: https://reviews.freebsd.org/D28616
140 lines
3.2 KiB
Makefile
140 lines
3.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= quiche
|
|
DISTVERSION= 0.6.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= net
|
|
|
|
MAINTAINER= junho.choi@gmail.com
|
|
COMMENT= Savoury implementation of the QUIC transport protocol and HTTP/3
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= cargo
|
|
|
|
USE_LDCONFIG= yes
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= cloudflare
|
|
GH_TUPLE= google:boringssl:597b810:boringssl/deps/boringssl
|
|
|
|
OPTIONS_DEFINE= DOCS QLOG
|
|
OPTIONS_DEFAULT=DOCS QLOG
|
|
|
|
QLOG_VARS= CARGO_FEATURES+=qlog
|
|
QLOG_DESC= Enable qlog support
|
|
|
|
PORTDOCS= README.md
|
|
|
|
CARGO_FEATURES= --no-default-features
|
|
|
|
PLIST_FILES= bin/quiche-client \
|
|
bin/quiche-server \
|
|
include/quiche.h \
|
|
lib/libquiche.a \
|
|
lib/libquiche.so
|
|
|
|
CARGO_CRATES= aho-corasick-0.7.15 \
|
|
atty-0.2.14 \
|
|
bitflags-1.2.1 \
|
|
bumpalo-3.4.0 \
|
|
cc-1.0.65 \
|
|
cfg-if-0.1.10 \
|
|
cmake-0.1.45 \
|
|
darling-0.10.2 \
|
|
darling_core-0.10.2 \
|
|
darling_macro-0.10.2 \
|
|
docopt-1.1.0 \
|
|
env_logger-0.6.2 \
|
|
fnv-1.0.7 \
|
|
fuchsia-zircon-0.3.3 \
|
|
fuchsia-zircon-sys-0.3.3 \
|
|
hermit-abi-0.1.17 \
|
|
humantime-1.3.0 \
|
|
ident_case-1.0.1 \
|
|
idna-0.1.5 \
|
|
iovec-0.1.4 \
|
|
itoa-0.4.6 \
|
|
js-sys-0.3.45 \
|
|
kernel32-sys-0.2.2 \
|
|
lazy_static-1.4.0 \
|
|
libc-0.2.80 \
|
|
libm-0.2.1 \
|
|
log-0.4.11 \
|
|
matches-0.1.8 \
|
|
memchr-2.3.4 \
|
|
mio-0.6.22 \
|
|
miow-0.2.2 \
|
|
net2-0.2.36 \
|
|
once_cell-1.5.2 \
|
|
percent-encoding-1.0.1 \
|
|
proc-macro2-1.0.24 \
|
|
quick-error-1.2.3 \
|
|
quote-1.0.7 \
|
|
regex-1.4.2 \
|
|
regex-syntax-0.6.21 \
|
|
ring-0.16.18 \
|
|
ryu-1.0.5 \
|
|
serde-1.0.117 \
|
|
serde_derive-1.0.117 \
|
|
serde_json-1.0.59 \
|
|
serde_with-1.6.0 \
|
|
serde_with_macros-1.3.0 \
|
|
slab-0.4.2 \
|
|
spin-0.5.2 \
|
|
strsim-0.9.3 \
|
|
syn-1.0.52 \
|
|
termcolor-1.1.2 \
|
|
thread_local-1.0.1 \
|
|
tinyvec-1.1.0 \
|
|
tinyvec_macros-0.1.0 \
|
|
unicode-bidi-0.3.4 \
|
|
unicode-normalization-0.1.16 \
|
|
unicode-xid-0.2.1 \
|
|
untrusted-0.7.1 \
|
|
url-1.7.2 \
|
|
wasm-bindgen-0.2.68 \
|
|
wasm-bindgen-backend-0.2.68 \
|
|
wasm-bindgen-macro-0.2.68 \
|
|
wasm-bindgen-macro-support-0.2.68 \
|
|
wasm-bindgen-shared-0.2.68 \
|
|
web-sys-0.3.45 \
|
|
winapi-0.2.8 \
|
|
winapi-0.3.9 \
|
|
winapi-build-0.1.1 \
|
|
winapi-i686-pc-windows-gnu-0.4.0 \
|
|
winapi-util-0.1.5 \
|
|
winapi-x86_64-pc-windows-gnu-0.4.0 \
|
|
ws2_32-sys-0.2.1
|
|
|
|
LIBQUICHE_CARGOTOML= ${WRKSRC}/Cargo.toml
|
|
QUICHEAPPS_CARGOTOML= ${WRKSRC}/tools/apps/Cargo.toml
|
|
QUICHEAPPS_CARGOLOCK= ${WRKSRC}/tools/apps/Cargo.lock
|
|
|
|
CARGO_CARGOTOML= ${QUICHEAPPS_CARGOTOML}
|
|
CARGO_CARGOLOCK= ${QUICHEAPPS_CARGOLOCK}
|
|
|
|
# build libquiche and apps
|
|
do-build:
|
|
@${CARGO_CARGO_RUN} build \
|
|
--manifest-path ${LIBQUICHE_CARGOTOML} \
|
|
--verbose \
|
|
${CARGO_BUILD_ARGS}
|
|
@${CARGO_CARGO_RUN} build \
|
|
--manifest-path ${QUICHEAPPS_CARGOTOML} \
|
|
--verbose \
|
|
${CARGO_BUILD_ARGS}
|
|
|
|
# install quiche apps and libquiche
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/include/quiche.h ${STAGEDIR}${PREFIX}/include
|
|
${INSTALL_LIB} ${CARGO_TARGET_DIR}/release/libquiche.so ${STAGEDIR}${PREFIX}/lib
|
|
${INSTALL_LIB} ${CARGO_TARGET_DIR}/release/libquiche.a ${STAGEDIR}${PREFIX}/lib
|
|
${INSTALL_PROGRAM} ${CARGO_TARGET_DIR}/release/quiche-server ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${CARGO_TARGET_DIR}/release/quiche-client ${STAGEDIR}${PREFIX}/bin
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|