Skip to content

Commit

Permalink
multimedia/pipewire: correct OSVERSION check to use proper ncurses (+)
Browse files Browse the repository at this point in the history
Since 1400035 FreeBSD have imported into base libtinfo split from ncurses
which required to build pw-top utility.

Force ncurses:port to proper build on systems < 1400035
Bump PORTREVISION to force rebuild

Approved by:	arrowd via IRC
Largest pointy hat available: arrowd :)
Sponsored by:	Netzkommune GmbH
  • Loading branch information
fluffykhv committed Dec 17, 2021
1 parent 759125c commit 3af7fd9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions multimedia/pipewire/Makefile
@@ -1,4 +1,5 @@
PORTNAME= pipewire
PORTREVISION= 1
DISTVERSION= 0.3.42
CATEGORIES= multimedia
MASTER_SITES= https://gitlab.freedesktop.org/pipewire/media-session/-/archive/${MEDIA_SESSION_VERSION}/:media_session
Expand Down Expand Up @@ -65,12 +66,12 @@ MESON_ARGS= -D pw-cat=enabled \
-D pipewire-v4l2=disabled \
-D udevrulesdir="${LOCALBASE}/lib/udev/rules.d"

.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>

.if ${OSVERSION} < 1400000
PLIST_SUB+= FREEBSD14="@comment "
.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1400035
USES+= ncurses:base
.else
PLIST_SUB+= FREEBSD14=""
USES+= ncurses:port
.endif

post-extract:
Expand All @@ -84,4 +85,4 @@ post-patch-MEDIASESSION-on:
@${REINPLACE_CMD} '/manager_args/ s/@sm_comment@//g' \
${WRKSRC}/src/daemon/pipewire.conf.in

.include <bsd.port.post.mk>
.include <bsd.port.mk>
2 changes: 1 addition & 1 deletion multimedia/pipewire/pkg-plist
Expand Up @@ -17,7 +17,7 @@ bin/pw-play
bin/pw-profiler
bin/pw-record
bin/pw-reserve
%%FREEBSD14%%bin/pw-top
bin/pw-top
%%MEDIASESSION%%bin/spa-acp-tool
bin/spa-inspect
bin/spa-json-dump
Expand Down

0 comments on commit 3af7fd9

Please sign in to comment.