blob: 8f1a0a7708efe9550855a5e44aefe5de3b693376 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
PORTNAME= rav1e
DISTVERSIONPREFIX= v
DISTVERSION= 0.6.1
PORTREVISION?= 0
CATEGORIES= multimedia
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Fast and safe AV1 encoder
WWW= https://github.com/xiph/rav1e
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS+= ${BUILD_DEPENDS_${ARCH}}
BUILD_DEPENDS_amd64= nasm:devel/nasm
USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= xiph
PLIST_FILES?= bin/${PORTNAME}
post-patch:
# Extract (snapshot) version from the port instead of CARGO_PKG_VERSION
@${REINPLACE_CMD} -e 's/\<.*GIT_VERSION\.unwrap.*/"${DISTVERSIONFULL}"/' \
-e $$'/GIT_VERSION/,/UNKNOWN/c\\\n\t"${DISTVERSIONFULL}",\n' \
${WRKSRC}/src/bin/common.rs ${WRKSRC}/src/lib.rs
.if !target(post-install)
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.endif
.include <bsd.port.mk>
|