1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

Uses/cargo: Try to load Makefile.crates

Some ports stash the `make cargo-crates` output there which might as
well be supported by USES=cargo.
This commit is contained in:
Tobias Kortkamp 2021-09-07 09:26:05 +02:00
parent 83d8cc195d
commit 905b1bd86f
No known key found for this signature in database
GPG Key ID: A4F09FB73CC51F61
5 changed files with 2 additions and 8 deletions

View File

@ -14,6 +14,8 @@ _INCLUDE_USES_CARGO_MK= yes
IGNORE+= USES=cargo takes no arguments
.endif
.sinclude "${MASTERDIR}/Makefile.crates"
# List of static dependencies. The format is cratename-version.
# CARGO_CRATES will be downloaded from MASTER_SITE_CRATESIO.
CARGO_CRATES?=

View File

@ -18,7 +18,6 @@ USES= cargo
PLIST_FILES= bin/doh-proxy
# make cargo-crates > Makefile.crates
.include "Makefile.crates"
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/doh-proxy

View File

@ -45,8 +45,6 @@ TREMOR_VARS= CARGO_FEATURES+=with-tremor
VORBIS_LIB_DEPENDS= libvorbisfile.so:audio/libvorbis
VORBIS_VARS= CARGO_FEATURES+=with-vorbis
.include "Makefile.crates"
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/librespot

View File

@ -21,8 +21,6 @@ CARGO_TEST= yes
RUSTFLAGS+= -C link-arg=-fuse-ld=lld
.include "${.CURDIR}/Makefile.crates"
CARGO_GIT_SUBDIR= rethutil:reth-util:crates/util
post-install:

View File

@ -17,9 +17,6 @@ USE_RC_SUBR= jail_exporter
OPTIONS_DEFINE= DOCS
# This Makefile contains the CARGO_CRATES section.
.include "Makefile.crates"
post-install:
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.8 \
${STAGEDIR}${MANPREFIX}/man/man8