git: bf2ae2dd3623 - main - multimedia/uxplay: add new port

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Wed, 04 Jan 2023 13:18:28 UTC
The branch main has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bf2ae2dd3623d17caf0ec2c951da2ef3cbaee2bc

commit bf2ae2dd3623d17caf0ec2c951da2ef3cbaee2bc
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2023-01-04 13:17:01 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2023-01-04 13:17:01 +0000

    multimedia/uxplay: add new port
    
    UxPlay is an AirPlay2 Mirror server. Its main use is to act like an
    AppleTV for screen-mirroring (with audio) of iOS/iPadOS/macOS clients
    (iPhone, iPod Touch, iPad, Mac computers) in a window on the server
    display (with the possibility of sharing that window on screen-sharing
    applications such as Zoom). UxPlay supports Apple's AirPlay2 protocol
    using "Legacy Pairing".
    
    The UxPlay server and its client must be on the same local area network,
    on which a Bonjour/Zeroconf mDNS/DNS-SD server is also running (only
    DNS-SD "Service Discovery" service is strictly necessary, it is not
    necessary that the local network also be of the ".local" mDNS-based
    type). This is usually provided by Avahi, through the avahi-daemon
    service.
---
 multimedia/Makefile                    |  1 +
 multimedia/uxplay/Makefile             | 34 ++++++++++++++++++++++++++++++++++
 multimedia/uxplay/distinfo             |  3 +++
 multimedia/uxplay/files/pkg-message.in | 13 +++++++++++++
 multimedia/uxplay/pkg-descr            | 13 +++++++++++++
 5 files changed, 64 insertions(+)

diff --git a/multimedia/Makefile b/multimedia/Makefile
index 84aafcc24df0..60ecd841e99e 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -380,6 +380,7 @@
     SUBDIR += transcode
     SUBDIR += tvheadend
     SUBDIR += ustreamer
+    SUBDIR += uxplay
     SUBDIR += v4l-utils
     SUBDIR += v4l_compat
     SUBDIR += vamps
diff --git a/multimedia/uxplay/Makefile b/multimedia/uxplay/Makefile
new file mode 100644
index 000000000000..4d42c64ba51f
--- /dev/null
+++ b/multimedia/uxplay/Makefile
@@ -0,0 +1,34 @@
+PORTNAME=	uxplay
+PORTVERSION=	1.61.1
+DISTVERSIONPREFIX=	v
+CATEGORIES=	multimedia
+
+MAINTAINER=	ehaupt@FreeBSD.org
+COMMENT=	AirPlay Unix mirroring server
+WWW=		https://github.com/FDH2/UxPlay
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libdns_sd.so:net/avahi-libdns \
+		libplist-2.0.so:devel/libplist
+
+USES=		cmake gettext-runtime gnome gstreamer pkgconfig ssl xorg
+USE_GITHUB=	yes
+GH_ACCOUNT=	FDH2
+GH_PROJECT=	UxPlay
+USE_GNOME=	glib20
+USE_GSTREAMER=	core plugins
+USE_XORG=	ice sm x11 xext
+
+CMAKE_ARGS=	-DNO_MARCH_NATIVE=on
+
+SUB_FILES=	pkg-message
+
+PLIST_FILES=	bin/uxplay \
+		share/man/man1/uxplay.1.gz
+PORTDOCS=	*
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.mk>
diff --git a/multimedia/uxplay/distinfo b/multimedia/uxplay/distinfo
new file mode 100644
index 000000000000..e3bffad70f0d
--- /dev/null
+++ b/multimedia/uxplay/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1672750540
+SHA256 (FDH2-UxPlay-v1.61.1_GH0.tar.gz) = bb07baeb5f3753d566c2e8473adac95ebf547553a3bfb7bd5df901025d99e8e6
+SIZE (FDH2-UxPlay-v1.61.1_GH0.tar.gz) = 389118
diff --git a/multimedia/uxplay/files/pkg-message.in b/multimedia/uxplay/files/pkg-message.in
new file mode 100644
index 000000000000..9741b7ac0e75
--- /dev/null
+++ b/multimedia/uxplay/files/pkg-message.in
@@ -0,0 +1,13 @@
+[
+{ type: install
+  message: <<EOM
+Please make sure you have a Bonjour/zeroconf DNS-SD server running.
+
+For instance add the following configuration in
+%%LOCALBASE%%/etc/avahi/avahi-daemon.conf
+
+[reflector]
+reflect-filters=_airplay._tcp.local,_raop._tcp.local
+EOM
+}
+]
diff --git a/multimedia/uxplay/pkg-descr b/multimedia/uxplay/pkg-descr
new file mode 100644
index 000000000000..32677c9d21d2
--- /dev/null
+++ b/multimedia/uxplay/pkg-descr
@@ -0,0 +1,13 @@
+UxPlay is an AirPlay2 Mirror server. Its main use is to act like an
+AppleTV for screen-mirroring (with audio) of iOS/iPadOS/macOS clients
+(iPhone, iPod Touch, iPad, Mac computers) in a window on the server
+display (with the possibility of sharing that window on screen-sharing
+applications such as Zoom). UxPlay supports Apple's AirPlay2 protocol
+using "Legacy Pairing".
+
+The UxPlay server and its client must be on the same local area network,
+on which a Bonjour/Zeroconf mDNS/DNS-SD server is also running (only
+DNS-SD "Service Discovery" service is strictly necessary, it is not
+necessary that the local network also be of the ".local" mDNS-based
+type). This is usually provided by Avahi, through the avahi-daemon
+service.