From nobody Tue Dec 19 03:25:15 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SvMWw0H82z54YYn; Tue, 19 Dec 2023 03:25:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SvMWv6wqvz3HNW; Tue, 19 Dec 2023 03:25:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702956316; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BfqIGfqsbaaEkGd7WRb8Sw08y/ljvVo5qmGp7/4ayao=; b=px2QX2ZKGkuBH9eQjlirk2ia7kRYt/hLcfM5ZZ5dMb6LkPmmnE0uvkqZmctqCsI1fblxEY Eu4H6qjrwwI38sdHYAOIp8/iLM04NoCah+kU5oyLZlcvTiTZNE3V03OgrxzNSw/PW6ZhxK z7LrplpISZtr36YXfUXdMTUV7nGm3E40ZVC59BgDUJxvYLTM4e4R+gzHC7TuGtNGxhgyCc m0nb5WqqvE7qf4HPwYLJa05uRyyekqxQ1+ZF6i7PSl8CoV12oAt9+atw/jDGSbfRDhhWXX +bqBsZzZiVH+3lv5lqBfGkiNSlm5Uf5/Wlfuv5q2fvfXdDfC5/bQVrU9J0aTaQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702956316; a=rsa-sha256; cv=none; b=CGqB2qZN/PoYgXZX3nD2a336wGMFmt27RON+iYiqzHcyBuLN4hI0in8c9vH+u3qvpO49qe +b0aBOqBYBAGXWKJLQjVQfqAd+s93jjGokkm3DFuL7K9xbnbIVIs+XRE9MqWf3OpbQeRAm 8mWWKSVJS6BH7IjCv9vpLcYX4kmHnQ8febkUkxHsfVfuDtziCM8cCM+H/LDMGFtSs9tolY I+a60m7SXra3Toxggb7paF7Cr57PIyaEuISqvCHDhiII4kF/AcL8XnQodpNDDXB7L+bnug 3ZbW6j+wjkd4P2kdJwzTk/OIuPat1Yb9Wd3J2/cbeyzjwHOay7DsQYh2qK/m4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702956316; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BfqIGfqsbaaEkGd7WRb8Sw08y/ljvVo5qmGp7/4ayao=; b=ryP5i2rP+sTLMipI2iEtswX49CJa0BMrkVFmuoN7SwJNdymCAb0kJLcZsbJaDGOMTUzQnN jci0Cwi/QTMB4ihWGUGPqRESYalwbZf3l30M0hGYalfUTy3NJbPQDvR4aj8XGkcogmuy5w H8foS+M1NDVowNRUuwmsVDuXUqebmQMCIyyCmEU59IWxPeD12T8gokXS7gaDH6G7MMEtfM oDFTgrvY9YFRlFHLYxlkRjE8NU6ETka5GoclCCe6Etf2voJibr9OAYx/Q8mOOm9649p3in jP2ZYp3hZeQIv74RMl6O/hYNhI+6ygy1+RA5adKmClCUB7b83lpJuGJ7WlyQBw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SvMWv5vt7znr7; Tue, 19 Dec 2023 03:25:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BJ3PF3g010551; Tue, 19 Dec 2023 03:25:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BJ3PFoO010548; Tue, 19 Dec 2023 03:25:15 GMT (envelope-from git) Date: Tue, 19 Dec 2023 03:25:15 GMT Message-Id: <202312190325.3BJ3PFoO010548@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: d92825bc02a5 - main - audio/ladish: New port: Session management system for JACK List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d92825bc02a5000b5fe5e3085897971692de6a3f Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=d92825bc02a5000b5fe5e3085897971692de6a3f commit d92825bc02a5000b5fe5e3085897971692de6a3f Author: Yuri Victorovich AuthorDate: 2023-12-19 01:53:38 +0000 Commit: Yuri Victorovich CommitDate: 2023-12-19 03:25:12 +0000 audio/ladish: New port: Session management system for JACK --- audio/Makefile | 1 + audio/ladish/Makefile | 57 +++++++++++++++++++++++ audio/ladish/distinfo | 3 ++ audio/ladish/files/patch-alsapid_alsapid.h | 11 +++++ audio/ladish/files/patch-alsapid_helper.c | 11 +++++ audio/ladish/files/patch-daemon_app__supervisor.c | 10 ++++ audio/ladish/files/patch-daemon_loader.c | 22 +++++++++ audio/ladish/files/patch-proxies_graph__proxy.h | 10 ++++ audio/ladish/pkg-descr | 6 +++ audio/ladish/pkg-plist | 27 +++++++++++ 10 files changed, 158 insertions(+) diff --git a/audio/Makefile b/audio/Makefile index b5174af0dbfd..06e19a0561db 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -324,6 +324,7 @@ SUBDIR += kmix SUBDIR += komposter SUBDIR += kwave + SUBDIR += ladish SUBDIR += ladspa SUBDIR += lame SUBDIR += lash diff --git a/audio/ladish/Makefile b/audio/ladish/Makefile new file mode 100644 index 000000000000..2d49f7168a1d --- /dev/null +++ b/audio/ladish/Makefile @@ -0,0 +1,57 @@ +PORTNAME= ladish +DISTVERSION= 1.1 +DISTVERSIONSUFFIX= -g36c489e4 +CATEGORIES= audio +MASTER_SITES= https://dl.ladish.org/ladish/ + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Session management system for JACK +WWW= https://ladish.org/ + +LICENSE= GPLv3 + +LIB_DEPENDS= libasound.so:audio/alsa-lib \ + libdbus-1.so:devel/dbus \ + libexpat.so:textproc/expat2 \ + libjack.so:audio/jack \ + libuuid.so:misc/e2fsprogs-libuuid + +USES= tar:bz2 localbase:ldflags pkgconfig python shebangfix waf +USE_PERL5= configure + +SHEBANG_FILES= ladish_control + +OPTIONS_DEFINE= GUI +OPTIONS_DEFAULT= GUI +OPTIONS_SUB= yes + +GUI_USES= gettext gnome +GUI_USE= GNOME=atkmm,cairo,gdkpixbuf2,gtk20,gtkmm24,libgnomecanvas,pango,intltool:build +GUI_VARS= CONFIGURE_ARGS=--enable-gladish +GUI_BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs +GUI_LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \ + libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 \ + libgnomecanvasmm-2.6.so:graphics/libgnomecanvasmm26 \ + libharfbuzz.so:print/harfbuzz + +post-install: + # strip + @cd ${STAGEDIR}${PREFIX} && \ + ${STRIP_CMD} \ + bin/jmcore \ + bin/ladishd \ + bin/ladiconfd \ + lib/libalsapid.so + # remove unnecessary files + @${RM} -rf \ + ${STAGEDIR}${DATADIR}/COPYING + +post-install-GUI-on: + #/usr/local/share/ladish/gladish.ui + # strip + @cd ${STAGEDIR}${PREFIX} && \ + ${STRIP_CMD} \ + bin/gladish + +.include diff --git a/audio/ladish/distinfo b/audio/ladish/distinfo new file mode 100644 index 000000000000..cae0e55d6e5d --- /dev/null +++ b/audio/ladish/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1702937580 +SHA256 (ladish-1.1-g36c489e4.tar.bz2) = 37a11899ce472d6cefa5a53d7de47a410f15120983b6255e82f5110573310b16 +SIZE (ladish-1.1-g36c489e4.tar.bz2) = 656723 diff --git a/audio/ladish/files/patch-alsapid_alsapid.h b/audio/ladish/files/patch-alsapid_alsapid.h new file mode 100644 index 000000000000..566ef453e6ad --- /dev/null +++ b/audio/ladish/files/patch-alsapid_alsapid.h @@ -0,0 +1,11 @@ +--- alsapid/alsapid.h.orig 2023-12-18 22:37:53 UTC ++++ alsapid/alsapid.h +@@ -29,6 +29,8 @@ + + #include "../common.h" + ++#include // for pid_t ++ + void alsapid_compose_src_link(int alsa_client_id, char * buffer); + void alsapid_compose_dst_link(char * buffer); + bool alsapid_get_pid(int alsa_client_id, pid_t * pid_ptr); diff --git a/audio/ladish/files/patch-alsapid_helper.c b/audio/ladish/files/patch-alsapid_helper.c new file mode 100644 index 000000000000..edbcc3ea5a65 --- /dev/null +++ b/audio/ladish/files/patch-alsapid_helper.c @@ -0,0 +1,11 @@ +--- alsapid/helper.c.orig 2023-12-18 22:35:47 UTC ++++ alsapid/helper.c +@@ -33,6 +33,8 @@ + #include + #include + ++#include ++ + void alsapid_compose_src_link(int alsa_client_id, char * buffer) + { + sprintf(buffer, "/tmp/alsapid-%lld-%d", (long long)getuid(), alsa_client_id); diff --git a/audio/ladish/files/patch-daemon_app__supervisor.c b/audio/ladish/files/patch-daemon_app__supervisor.c new file mode 100644 index 000000000000..391de6a73328 --- /dev/null +++ b/audio/ladish/files/patch-daemon_app__supervisor.c @@ -0,0 +1,10 @@ +--- daemon/app_supervisor.c.orig 2023-12-18 22:40:21 UTC ++++ daemon/app_supervisor.c +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + + #include "app_supervisor.h" + #include "../dbus_constants.h" diff --git a/audio/ladish/files/patch-daemon_loader.c b/audio/ladish/files/patch-daemon_loader.c new file mode 100644 index 000000000000..13312c9c7a0b --- /dev/null +++ b/audio/ladish/files/patch-daemon_loader.c @@ -0,0 +1,22 @@ +--- daemon/loader.c.orig 2023-12-18 22:30:22 UTC ++++ daemon/loader.c +@@ -30,10 +30,18 @@ + + #include + #include +-#include /* forkpty() */ ++#if !defined(__FreeBSD__) ++# include /* forkpty() */ ++#else ++# include ++# include ++# include ++# include ++#endif + #include + #include + #include ++#include + + #include "loader.h" + #include "../proxies/conf_proxy.h" diff --git a/audio/ladish/files/patch-proxies_graph__proxy.h b/audio/ladish/files/patch-proxies_graph__proxy.h new file mode 100644 index 000000000000..56ee5572c35a --- /dev/null +++ b/audio/ladish/files/patch-proxies_graph__proxy.h @@ -0,0 +1,10 @@ +--- proxies/graph_proxy.h.orig 2023-12-18 22:32:12 UTC ++++ proxies/graph_proxy.h +@@ -28,6 +28,7 @@ + #define GRAPH_PROXY_H__61D1ED56_E33B_4F50_B45B_F520979E8AA7__INCLUDED + + #include "common.h" ++#include + + typedef struct graph_proxy_tag { int unused; } * graph_proxy_handle; + diff --git a/audio/ladish/pkg-descr b/audio/ladish/pkg-descr new file mode 100644 index 000000000000..1c07748df086 --- /dev/null +++ b/audio/ladish/pkg-descr @@ -0,0 +1,6 @@ +LADI Session Handler or simply ladish is a session management system for JACK +applications on GNU/Linux. Its aim is to allow you to have many different audio +programs running at once, to save their setup, close them down and then easily +reload the setup at some other time. ladish doesn't deal with any kind of audio +or MIDI data itself; it just runs programs, deals with saving/loading +(arbitrary) data and connects JACK ports together. diff --git a/audio/ladish/pkg-plist b/audio/ladish/pkg-plist new file mode 100644 index 000000000000..550080aabad4 --- /dev/null +++ b/audio/ladish/pkg-plist @@ -0,0 +1,27 @@ +%%GUI%%bin/gladish +bin/jmcore +bin/ladiconfd +bin/ladish_control +bin/ladishd +lib/libalsapid.so +%%GUI%%share/applications/gladish.desktop +share/dbus-1/services/org.ladish.conf.service +share/dbus-1/services/org.ladish.jmcore.service +share/dbus-1/services/org.ladish.service +%%GUI%%share/icons/hicolor/16x16/apps/gladish.png +%%GUI%%share/icons/hicolor/22x22/apps/gladish.png +%%GUI%%share/icons/hicolor/24x24/apps/gladish.png +%%GUI%%share/icons/hicolor/256x256/apps/gladish.png +%%GUI%%share/icons/hicolor/32x32/apps/gladish.png +%%GUI%%share/icons/hicolor/48x48/apps/gladish.png +%%GUI%%%%DATADIR%%/gladish.ui +%%GUI%%%%DATADIR%%/ladish-logo-128x128.png +%%GUI%%%%DATADIR%%/status_down.png +%%GUI%%%%DATADIR%%/status_error.png +%%GUI%%%%DATADIR%%/status_started.png +%%GUI%%%%DATADIR%%/status_stopped.png +%%GUI%%%%DATADIR%%/status_unloaded.png +%%GUI%%%%DATADIR%%/status_warning.png +%%GUI%%share/locale/de/LC_MESSAGES/ladish.mo +%%GUI%%share/locale/fr/LC_MESSAGES/ladish.mo +%%GUI%%share/locale/ru/LC_MESSAGES/ladish.mo