blob: 15bd23261666539b8fac94e87a9e36e1d43ec793 (
plain) (
blame)
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.6
PORTREVISION?= 2
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>
|