41 lines
956 B
Makefile
41 lines
956 B
Makefile
PORTNAME= cargo-about
|
|
DISTVERSION= 0.9.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Rust: Cargo plugin to generate list of all licenses for a crate
|
|
WWW= http://embark.rs \
|
|
https://github.com/EmbarkStudios/cargo-about
|
|
|
|
LICENSE= APACHE20 MIT
|
|
LICENSE_COMB= dual
|
|
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
|
|
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
|
|
|
|
BROKEN_i386= ld: error: undefined symbol: __atomic_load
|
|
|
|
BUILD_DEPENDS= rust>1.85:lang/rust
|
|
LIB_DEPENDS= libzstd.so:archivers/zstd
|
|
|
|
USES= cargo
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= EmbarkStudios
|
|
|
|
RUSTFLAGS= ${ARCH:S/i386/YES/:C/^[a-z].*//:S/YES/-C target-feature=+sse,+sse2/} # add sse sse2 target-features only on i386
|
|
|
|
CARGO_BUILDDEP= no
|
|
CARGO_FEATURES= cli
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == powerpc
|
|
LIB_DEPENDS+= libatomic.so:lang/gcc${GCC_DEFAULT}
|
|
LDFLAGS+= -L/usr/local/lib/gcc${GCC_DEFAULT} -latomic
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|