Skip to content

Commit d92825b

Browse files
committed
audio/ladish: New port: Session management system for JACK
1 parent 95fa05a commit d92825b

File tree

10 files changed

+158
-0
lines changed

10 files changed

+158
-0
lines changed

‎audio/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@
324324
SUBDIR += kmix
325325
SUBDIR += komposter
326326
SUBDIR += kwave
327+
SUBDIR += ladish
327328
SUBDIR += ladspa
328329
SUBDIR += lame
329330
SUBDIR += lash

‎audio/ladish/Makefile‎

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
PORTNAME= ladish
2+
DISTVERSION= 1.1
3+
DISTVERSIONSUFFIX= -g36c489e4
4+
CATEGORIES= audio
5+
MASTER_SITES= https://dl.ladish.org/ladish/
6+
7+
MAINTAINER= yuri@FreeBSD.org
8+
COMMENT= Session management system for JACK
9+
WWW= https://ladish.org/
10+
11+
LICENSE= GPLv3
12+
13+
LIB_DEPENDS= libasound.so:audio/alsa-lib \
14+
libdbus-1.so:devel/dbus \
15+
libexpat.so:textproc/expat2 \
16+
libjack.so:audio/jack \
17+
libuuid.so:misc/e2fsprogs-libuuid
18+
19+
USES= tar:bz2 localbase:ldflags pkgconfig python shebangfix waf
20+
USE_PERL5= configure
21+
22+
SHEBANG_FILES= ladish_control
23+
24+
OPTIONS_DEFINE= GUI
25+
OPTIONS_DEFAULT= GUI
26+
OPTIONS_SUB= yes
27+
28+
GUI_USES= gettext gnome
29+
GUI_USE= GNOME=atkmm,cairo,gdkpixbuf2,gtk20,gtkmm24,libgnomecanvas,pango,intltool:build
30+
GUI_VARS= CONFIGURE_ARGS=--enable-gladish
31+
GUI_BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs
32+
GUI_LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \
33+
libfontconfig.so:x11-fonts/fontconfig \
34+
libfreetype.so:print/freetype2 \
35+
libgnomecanvasmm-2.6.so:graphics/libgnomecanvasmm26 \
36+
libharfbuzz.so:print/harfbuzz
37+
38+
post-install:
39+
# strip
40+
@cd ${STAGEDIR}${PREFIX} && \
41+
${STRIP_CMD} \
42+
bin/jmcore \
43+
bin/ladishd \
44+
bin/ladiconfd \
45+
lib/libalsapid.so
46+
# remove unnecessary files
47+
@${RM} -rf \
48+
${STAGEDIR}${DATADIR}/COPYING
49+
50+
post-install-GUI-on:
51+
#/usr/local/share/ladish/gladish.ui
52+
# strip
53+
@cd ${STAGEDIR}${PREFIX} && \
54+
${STRIP_CMD} \
55+
bin/gladish
56+
57+
.include <bsd.port.mk>

‎audio/ladish/distinfo‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
TIMESTAMP = 1702937580
2+
SHA256 (ladish-1.1-g36c489e4.tar.bz2) = 37a11899ce472d6cefa5a53d7de47a410f15120983b6255e82f5110573310b16
3+
SIZE (ladish-1.1-g36c489e4.tar.bz2) = 656723
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- alsapid/alsapid.h.orig 2023-12-18 22:37:53 UTC
2+
+++ alsapid/alsapid.h
3+
@@ -29,6 +29,8 @@
4+
5+
#include "../common.h"
6+
7+
+#include <unistd.h> // for pid_t
8+
+
9+
void alsapid_compose_src_link(int alsa_client_id, char * buffer);
10+
void alsapid_compose_dst_link(char * buffer);
11+
bool alsapid_get_pid(int alsa_client_id, pid_t * pid_ptr);
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- alsapid/helper.c.orig 2023-12-18 22:35:47 UTC
2+
+++ alsapid/helper.c
3+
@@ -33,6 +33,8 @@
4+
#include <unistd.h>
5+
#include <sys/types.h>
6+
7+
+#include <libgen.h>
8+
+
9+
void alsapid_compose_src_link(int alsa_client_id, char * buffer)
10+
{
11+
sprintf(buffer, "/tmp/alsapid-%lld-%d", (long long)getuid(), alsa_client_id);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- daemon/app_supervisor.c.orig 2023-12-18 22:40:21 UTC
2+
+++ daemon/app_supervisor.c
3+
@@ -30,6 +30,7 @@
4+
#include <sys/stat.h>
5+
#include <signal.h>
6+
#include <unistd.h>
7+
+#include <sys/wait.h>
8+
9+
#include "app_supervisor.h"
10+
#include "../dbus_constants.h"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--- daemon/loader.c.orig 2023-12-18 22:30:22 UTC
2+
+++ daemon/loader.c
3+
@@ -30,10 +30,18 @@
4+
5+
#include <unistd.h>
6+
#include <fcntl.h>
7+
-#include <pty.h> /* forkpty() */
8+
+#if !defined(__FreeBSD__)
9+
+# include <pty.h> /* forkpty() */
10+
+#else
11+
+# include <sys/types.h>
12+
+# include <sys/ioctl.h>
13+
+# include <termios.h>
14+
+# include <libutil.h>
15+
+#endif
16+
#include <sys/wait.h>
17+
#include <sys/time.h>
18+
#include <sys/resource.h>
19+
+#include <signal.h>
20+
21+
#include "loader.h"
22+
#include "../proxies/conf_proxy.h"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- proxies/graph_proxy.h.orig 2023-12-18 22:32:12 UTC
2+
+++ proxies/graph_proxy.h
3+
@@ -28,6 +28,7 @@
4+
#define GRAPH_PROXY_H__61D1ED56_E33B_4F50_B45B_F520979E8AA7__INCLUDED
5+
6+
#include "common.h"
7+
+#include <unistd.h>
8+
9+
typedef struct graph_proxy_tag { int unused; } * graph_proxy_handle;
10+

‎audio/ladish/pkg-descr‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
LADI Session Handler or simply ladish is a session management system for JACK
2+
applications on GNU/Linux. Its aim is to allow you to have many different audio
3+
programs running at once, to save their setup, close them down and then easily
4+
reload the setup at some other time. ladish doesn't deal with any kind of audio
5+
or MIDI data itself; it just runs programs, deals with saving/loading
6+
(arbitrary) data and connects JACK ports together.

‎audio/ladish/pkg-plist‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
%%GUI%%bin/gladish
2+
bin/jmcore
3+
bin/ladiconfd
4+
bin/ladish_control
5+
bin/ladishd
6+
lib/libalsapid.so
7+
%%GUI%%share/applications/gladish.desktop
8+
share/dbus-1/services/org.ladish.conf.service
9+
share/dbus-1/services/org.ladish.jmcore.service
10+
share/dbus-1/services/org.ladish.service
11+
%%GUI%%share/icons/hicolor/16x16/apps/gladish.png
12+
%%GUI%%share/icons/hicolor/22x22/apps/gladish.png
13+
%%GUI%%share/icons/hicolor/24x24/apps/gladish.png
14+
%%GUI%%share/icons/hicolor/256x256/apps/gladish.png
15+
%%GUI%%share/icons/hicolor/32x32/apps/gladish.png
16+
%%GUI%%share/icons/hicolor/48x48/apps/gladish.png
17+
%%GUI%%%%DATADIR%%/gladish.ui
18+
%%GUI%%%%DATADIR%%/ladish-logo-128x128.png
19+
%%GUI%%%%DATADIR%%/status_down.png
20+
%%GUI%%%%DATADIR%%/status_error.png
21+
%%GUI%%%%DATADIR%%/status_started.png
22+
%%GUI%%%%DATADIR%%/status_stopped.png
23+
%%GUI%%%%DATADIR%%/status_unloaded.png
24+
%%GUI%%%%DATADIR%%/status_warning.png
25+
%%GUI%%share/locale/de/LC_MESSAGES/ladish.mo
26+
%%GUI%%share/locale/fr/LC_MESSAGES/ladish.mo
27+
%%GUI%%share/locale/ru/LC_MESSAGES/ladish.mo

0 commit comments

Comments
 (0)