summaryrefslogtreecommitdiff
path: root/multimedia/video-trimmer/Makefile
blob: bb565166d8beeda7939234a63e5dbd1ca354eea8 (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
34
35
36
37
PORTNAME=	video-trimmer
DISTVERSIONPREFIX=	v
DISTVERSION=	0.8.0
PORTREVISION=	2
CATEGORIES=	multimedia

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Trim videos quickly
WWW=		https://gitlab.gnome.org/YaLTeR/video-trimmer

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	blueprint-compiler:devel/blueprint-compiler
RUN_DEPENDS=	ffmpeg:multimedia/ffmpeg

USES=		cargo desktop-file-utils gettext gnome gstreamer meson pkgconfig
USE_GITLAB=	yes
USE_GNOME=	gtk40 libadwaita
USE_GSTREAMER=	good libav
GL_SITE=	https://gitlab.gnome.org
GL_ACCOUNT=	YaLTeR
GL_COMMIT=	58ae3bffe98025543af8e563659f60438ee586d6
MAKE_ENV=	${CARGO_ENV}
CARGO_BUILD=	no
CARGO_INSTALL=	no
CARGO_TEST=	no
GLIB_SCHEMAS=	org.gnome.gitlab.YaLTeR.VideoTrimmer.gschema.xml

post-patch:
# Make each cargo subcommand very verbose
# Add explicit <triple> subdir for --target from USES=cargo
	@${REINPLACE_CMD} -e '/cargo/s/ --/&verbose&verbose&/' \
		-Ee '/cp/s,/(release|debug)/,/${CARGO_BUILD_TARGET}&,' \
		${WRKSRC}/build-aux/cargo.sh

.include <bsd.port.mk>