Yuri Victorovich f99a708957 Mk/Uses/cargo.mk: Remove cross-compilation options for Rust-based ports
Reasons:
* Port build shouldn't use cross-compilation mode
  because it buids for the same architecture.
* RUSTFLAGS isn't passed to the build of all or some Rust ports
  in the cross-compilation mode.

Essential changes:
* Remove the CARGO_BUILD_TARGET make variable.
* Remove CARGO_BUILD_TARGET and CARGO_TARGET_* from CARGO_ENV.
* Update many ports that used CARGO_BUILD_TARGET.
* Build paths now don't include the architecture triplet part.

Immadiate benefits:
* Unbreak build on architectures like i386 that sometimes require
  special RUSTFLAGS that were not effective in the cross-compilation
  mode.

Ports that really need cross-compilation for some reason should
enable it on case-by-case basis. Example: net-p2p/cncli
(Not sure why does net-p2p/cncli actually need it, but it only
builds with these options.)

PR:		280305
Approved by:	rust@FreeBSD.org (maintainer's timeout; 98 days)
2024-10-22 20:11:24 -07:00

39 lines
782 B
Makefile

PORTNAME= rage
DISTVERSIONPREFIX= v
DISTVERSION= 0.10.0
PORTREVISION= 6
CATEGORIES= security
PKGNAMESUFFIX= -encryption
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Simple, modern, and secure file encryption tool, using the age format
WWW= https://github.com/str4d/rage
LICENSE= APACHE20 MIT
LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
LIB_DEPENDS= libfuse.so:sysutils/fusefs-libs \
libzstd.so:archivers/zstd
USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= str4d
CARGO_FEATURES= mount
CONFLICTS= rage
PLIST_FILES= bin/rage \
bin/rage-keygen \
bin/rage-mount
do-install:
.for f in rage rage-keygen rage-mount
${INSTALL_PROGRAM} ${CARGO_TARGET_DIR}/*/${f} \
${STAGEDIR}${PREFIX}/bin
.endfor
.include <bsd.port.mk>