Skip to content

Commit

Permalink
multimedia/pipewire: drop dependency on devel/ncurses
Browse files Browse the repository at this point in the history
Keep USES=ncurses to ensure consistency but don't require ncurses
package as it overrides in-base version for all ports built after.

PR:		260501
Approved by:	arrowd (maintainer, previous version)
  • Loading branch information
jbeich committed Dec 23, 2021
1 parent fc6db68 commit 4f6e6d2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
14 changes: 6 additions & 8 deletions multimedia/pipewire/Makefile
@@ -1,6 +1,6 @@
PORTNAME= pipewire
PORTREVISION= 1
DISTVERSION= 0.3.42
PORTREVISION= 2
CATEGORIES= multimedia
MASTER_SITES= https://gitlab.freedesktop.org/pipewire/media-session/-/archive/${MEDIA_SESSION_VERSION}/:media_session
DISTFILES= media-session-${MEDIA_SESSION_VERSION}${EXTRACT_SUFX}:media_session
Expand All @@ -20,7 +20,7 @@ LIB_DEPENDS= libasound.so:audio/alsa-lib \
libwebrtc_audio_processing.so:audio/webrtc-audio-processing0

USES= compiler:c11 gettext-tools gnome localbase:ldflags meson \
pkgconfig python:3.6+,build readline
ncurses pkgconfig python:3.6+,build readline
USE_GNOME= glib20
USE_LDCONFIG= yes

Expand Down Expand Up @@ -66,12 +66,10 @@ MESON_ARGS= -D pw-cat=enabled \
-D pipewire-v4l2=disabled \
-D udevrulesdir="${LOCALBASE}/lib/udev/rules.d"

.include <bsd.port.options.mk>

.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1400035
USES+= ncurses
.else
USES+= ncurses:port
# Fake pkg-config support before https://cgit.freebsd.org/src/commit/?id=396851c20aeb
# but only if devel/ncurses isn't installed
.if !exists(/usr/libdata/pkgconfig/ncursesw.pc)
CONFIGURE_ENV+= ${ncurses_ARGS:Mbase:C/.+/PKG_CONFIG_PATH="${FILESDIR}"/}
.endif

post-extract:
Expand Down
10 changes: 10 additions & 0 deletions multimedia/pipewire/files/ncursesw.pc
@@ -0,0 +1,10 @@
prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib
includedir=/usr/include

Name: ncursesw
Description: ncurses 5.9 library (wide-char/UTF-8 flavor)
Version: 5.9.20140222
URL: https://invisible-island.net/ncurses
Libs: -lncursesw

0 comments on commit 4f6e6d2

Please sign in to comment.