blob: 850d6f75aacc04173f0fea2f71e60a8ed884bd06 (
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
38
39
40
41
42
43
44
45
|
PORTNAME= amberol
DISTVERSION= 0.9.2
PORTREVISION= 6
CATEGORIES= audio
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Plays music, and nothing else
WWW= https://gitlab.gnome.org/World/amberol
LICENSE= CC0-1.0 CC-BY-SA-3.0 GPLv3+
LICENSE_COMB= multi
LICENSE_FILE_CC0-1.0= ${WRKSRC}/LICENSES/CC0-1.0.txt
LICENSE_FILE_CC-BY-SA-3.0= ${WRKSRC}/LICENSES/CC-BY-SA-3.0.txt
LICENSE_FILE_GPLv3+ = ${WRKSRC}/LICENSES/GPL-3.0-or-later.txt
BROKEN_i386= gmp-mpfr-sys fails to build bundled libraries
LIB_DEPENDS= libdbus-1.so:devel/dbus \
libgraphene-1.0.so:graphics/graphene
USES= cargo desktop-file-utils gettext gnome gstreamer meson pkgconfig
USE_GITLAB= yes
USE_GNOME= gdkpixbuf2 gtk40 libadwaita
USE_GSTREAMER= bad good libav
GL_SITE= https://gitlab.gnome.org
GL_ACCOUNT= World
GL_COMMIT= c23ec2f11fa441c402b80f7a1733ac9aea65c81d
MAKE_ENV= ${CARGO_ENV}
CARGO_BUILD= no
CARGO_INSTALL= no
CARGO_TEST= no
GLIB_SCHEMAS= io.bassi.Amberol.gschema.xml
post-patch:
# Allow running from background via xdg-desktop-portal
@${REINPLACE_CMD} -e 's/linux/${OPSYS:tl}/' \
${WRKSRC}/src/window.rs \
${WRKSRC}/Cargo.toml
# Make each cargo subcommand very verbose
# Add explicit <triple> subdir for --target from USES=cargo
@${REINPLACE_CMD} -e "/cargo_options =/s/ '--/&verbose', &verbose', &/" \
-e "/cp/s,'src',& / '${CARGO_BUILD_TARGET}'," \
${WRKSRC}/src/meson.build
.include <bsd.port.mk>
|