pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sndio: remove, imported in the main tree



Module Name:	pkgsrc-wip
Committed By:	Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By:	vms
Date:		Mon Dec 8 13:59:24 2025 +0100
Changeset:	0e277d89807cd7559c6147235e19d57ff535317f

Removed Files:
	sndio/DESCR
	sndio/Makefile
	sndio/PLIST
	sndio/buildlink3.mk
	sndio/distinfo
	sndio/files/sndio.sh
	sndio/patches/patch-configure
	sndio/patches/patch-libsndio_sio__oss.c

Log Message:
sndio: remove, imported in the main tree

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0e277d89807cd7559c6147235e19d57ff535317f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 sndio/DESCR                             |  6 ----
 sndio/Makefile                          | 50 -----------------------------
 sndio/PLIST                             | 49 -----------------------------
 sndio/buildlink3.mk                     | 12 -------
 sndio/distinfo                          |  7 -----
 sndio/files/sndio.sh                    | 43 -------------------------
 sndio/patches/patch-configure           | 56 ---------------------------------
 sndio/patches/patch-libsndio_sio__oss.c | 43 -------------------------
 8 files changed, 266 deletions(-)

diffs:
diff --git a/sndio/DESCR b/sndio/DESCR
deleted file mode 100644
index 35aeaf4890..0000000000
--- a/sndio/DESCR
+++ /dev/null
@@ -1,6 +0,0 @@
-Sndio is a small audio and MIDI framework part of the OpenBSD project. It
-provides an lightweight audio & MIDI server and a fully documented user-space
-API to access either the server or directly the hardware in a uniform way.
-Sndio is designed to work for desktop applications, but pays special attention
-to synchronization mechanisms and reliability required by music applications.
-Reliability through simplicity are part of the project goals.
diff --git a/sndio/Makefile b/sndio/Makefile
deleted file mode 100644
index 974e8b5c80..0000000000
--- a/sndio/Makefile
+++ /dev/null
@@ -1,50 +0,0 @@
-# $NetBSD$
-
-DISTNAME=	sndio-1.10.0
-CATEGORIES=	audio
-MASTER_SITES=	http://www.sndio.org/
-
-MAINTAINER=	kikadf.01%gmail.com@localhost
-HOMEPAGE=	http://www.sndio.org/
-COMMENT=	Small audio and MIDI framework
-LICENSE=	isc
-
-HAS_CONFIGURE=	yes
-
-BUILD_DEFS+=	VARBASE
-SNDIO_HOME=	${VARBASE}/run/sndio
-
-DEPENDS+=	daemonize-[0-9]*:../../sysutils/daemonize
-
-RCD_SCRIPTS=	sndio
-
-PKG_USERS=		_sndio:_sndio
-PKG_GROUPS=		_sndio
-PKG_GECOS._sndio=	sndio user
-PKG_SHELL._sndio=	${NOLOGIN}
-PKG_HOME._sndio=	${SNDIO_HOME}
-
-PKGCONFIG_OVERRIDE=		libsndio/sndio.pc
-PKGCONFIG_OVERRIDE_STAGE=	post-configure
-
-CONFIGURE_ARGS+=	--prefix=${PREFIX}
-CONFIGURE_ARGS+=	--mandir=${PREFIX}/${PKGMANDIR}
-CONFIGURE_ARGS+=	--pkgconfdir=${PREFIX}/lib/pkgconfig
-
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS:M*BSD}
-.  include "../../mk/oss.buildlink3.mk"
-SUBST_CLASSES+=         oss
-SUBST_STAGE.oss=        pre-configure
-SUBST_MESSAGE.oss=      Point to the correct OSS device.
-SUBST_FILES.oss+=       libsndio/sio_oss.c
-SUBST_SED.oss+=         -e "s,/dev/dsp,${DEVOSSAUDIO},g"
-.elif ${OPSYS} == "Linux"
-.  include "../../devel/libbsd/buildlink3.mk"
-.  include "../../audio/alsa-lib/buildlink3.mk"
-.endif
-
-BUILD_DIRS+=		libsndio sndiod sndioctl aucat midicat
-
-.include "../../mk/bsd.pkg.mk"
diff --git a/sndio/PLIST b/sndio/PLIST
deleted file mode 100644
index df69b03f36..0000000000
--- a/sndio/PLIST
+++ /dev/null
@@ -1,49 +0,0 @@
-@comment $NetBSD$
-bin/aucat
-bin/midicat
-bin/sndioctl
-bin/sndiod
-include/sndio.h
-lib/libsndio.so
-lib/libsndio.so.7
-lib/libsndio.so.7.3
-lib/pkgconfig/sndio.pc
-man/man1/aucat.1
-man/man1/midicat.1
-man/man1/sndioctl.1
-man/man3/mio_close.3
-man/man3/mio_eof.3
-man/man3/mio_nfds.3
-man/man3/mio_open.3
-man/man3/mio_pollfd.3
-man/man3/mio_read.3
-man/man3/mio_revents.3
-man/man3/mio_write.3
-man/man3/sio_close.3
-man/man3/sio_eof.3
-man/man3/sio_getcap.3
-man/man3/sio_getpar.3
-man/man3/sio_initpar.3
-man/man3/sio_nfds.3
-man/man3/sio_onmove.3
-man/man3/sio_onvol.3
-man/man3/sio_open.3
-man/man3/sio_pollfd.3
-man/man3/sio_read.3
-man/man3/sio_revents.3
-man/man3/sio_setpar.3
-man/man3/sio_setvol.3
-man/man3/sio_start.3
-man/man3/sio_stop.3
-man/man3/sio_write.3
-man/man3/sioctl_close.3
-man/man3/sioctl_eof.3
-man/man3/sioctl_nfds.3
-man/man3/sioctl_ondesc.3
-man/man3/sioctl_onval.3
-man/man3/sioctl_open.3
-man/man3/sioctl_pollfd.3
-man/man3/sioctl_revents.3
-man/man3/sioctl_setval.3
-man/man7/sndio.7
-man/man8/sndiod.8
diff --git a/sndio/buildlink3.mk b/sndio/buildlink3.mk
deleted file mode 100644
index 24292cea5b..0000000000
--- a/sndio/buildlink3.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-# $NetBSD$
-
-BUILDLINK_TREE+=	sndio
-
-.if !defined(SNDIO_BUILDLINK3_MK)
-SNDIO_BUILDLINK3_MK:=
-
-BUILDLINK_API_DEPENDS.sndio+=	sndio>=1.10.0
-BUILDLINK_PKGSRCDIR.sndio?=	../../wip/sndio
-.endif	# SNDIO_BUILDLINK3_MK
-
-BUILDLINK_TREE+=	-sndio
diff --git a/sndio/distinfo b/sndio/distinfo
deleted file mode 100644
index e009c5bc51..0000000000
--- a/sndio/distinfo
+++ /dev/null
@@ -1,7 +0,0 @@
-$NetBSD$
-
-BLAKE2s (sndio-1.10.0.tar.gz) = 39f92241015c931433dad456ee5ca965806c5b86e97950265d8a609ac38525a3
-SHA512 (sndio-1.10.0.tar.gz) = c35462976a1bffd128eacb185165964dac6b03505255e9ab9a933e24be5ed146cd9ac6995fd7af23247cb9133c010cce0876572db53b783ebabeb563fec7a1cf
-Size (sndio-1.10.0.tar.gz) = 162725 bytes
-SHA1 (patch-configure) = 4dfe4c8dccf0ee395ed6847e9e96a6c4cee9647d
-SHA1 (patch-libsndio_sio__oss.c) = ca220153f77b65659b490ef26bfbb2efaab67d74
diff --git a/sndio/files/sndio.sh b/sndio/files/sndio.sh
deleted file mode 100644
index 39bcc57002..0000000000
--- a/sndio/files/sndio.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#!@RCD_SCRIPTS_SHELL@
-#
-# $NetBSD$
-#
-# PROVIDE: sndio
-# REQUIRE: DAEMON
-# KEYWORD: shutdown
-
-. /etc/rc.subr
-
-name="sndio"
-rcvar=${name}
-command="@PREFIX@/bin/sndiod"
-command_args="-dd"
-pidfile="@VARBASE@/run/sndio/pid"
-logfile="@VARBASE@/run/sndio/log"
-start_precmd=sndio_prestart
-start_cmd=sndio_start
-stop_cmd=":"
-
-sndio_prestart() {
-	dir="@VARBASE@/run/sndio"
-	if [ ! -d "$dir" ]; then
-		@MKDIR@ -p $dir
-		@CHMOD@ 0755 $dir
-		@CHOWN@ _sndio:_sndio $dir
-	fi
-}
-
-sndio_start()
-{
-	echo "Starting sndio server"
-	daemonize="@PREFIX@/sbin/daemonize"
-	if [ -x "$daemonize" ]; then
-		$daemonize -p ${pidfile} -e ${logfile} \
-			${command} ${command_args} ${sndio_flags}
-	else
-		${command} ${command_args} ${sndio_flags}
-	fi
-}
-
-load_rc_config ${name}
-run_rc_command "$1"
diff --git a/sndio/patches/patch-configure b/sndio/patches/patch-configure
deleted file mode 100644
index 802d0ca93e..0000000000
--- a/sndio/patches/patch-configure
+++ /dev/null
@@ -1,56 +0,0 @@
-$NetBSD$
-
-* Create libsndio.so.${MAJ} on non-Linux platforms.
-* Enable OSS backend on NetBSD. 
-
---- configure.orig	2024-08-01 15:36:54.000000000 +0000
-+++ configure
-@@ -70,8 +70,9 @@ case `uname` in
- 	Linux)
- 		alsa=yes
- 		ldadd="-lrt -lm"
--		user=sndiod
--		so_link="libsndio.so libsndio.so.\${MAJ} libsndio.so.\${MAJ}.0"
-+		libbsd=yes
-+		user=_sndio
-+		so_link="libsndio.so libsndio.so.\${MAJ}"
- 		so_ldflags="-Wl,-soname=libsndio.so.\${MAJ}"
- 		defs='-D_GNU_SOURCE -DHAVE_SOCK_CLOEXEC -DHAVE_CLOCK_GETTIME'
- 		;;
-@@ -95,17 +96,21 @@ case `uname` in
- 		;;
- 	NetBSD)
- 		sun=no
-+		oss=yes
-+		ldadd="-lossaudio -lm"
- 		rmidi=yes
- 		user=_sndio
--		so_link="libsndio.so"
-+		so_ldflags="-Wl,-soname=libsndio.so.\${MAJ}"
-+		so_link="libsndio.so libsndio.so.\${MAJ}"
- 		defs='-DHAVE_ARC4RANDOM -DHAVE_GETPEEREID -DHAVE_ISSETUGID \\\
--		-DHAVE_STRLCAT -DHAVE_STRLCPY \\\
--		-DHAVE_SOCK_CLOEXEC -DHAVE_CLOCK_GETTIME'
-+		-D_OPENBSD_SOURCE -DHAVE_STRLCAT -DHAVE_STRLCPY \\\
-+		-DHAVE_STRTONUM -DHAVE_SOCK_CLOEXEC -DHAVE_CLOCK_GETTIME'
- 		;;
- 	OpenBSD)
- 		sun=yes
- 		rmidi=yes
--		user=_sndiop
-+		user=_sndio
-+		so_link="libsndio.so.\${MAJ}"
- 		defs='-DHAVE_ARC4RANDOM -DHAVE_GETPEEREID -DHAVE_ISSETUGID \\\
- 		-DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRTONUM \\\
- 		-DHAVE_SOCK_CLOEXEC -DHAVE_CLOCK_GETTIME'
-@@ -114,8 +119,8 @@ case `uname` in
- 		oss=yes
- 		umidi=yes
- 		user=_sndio
--		so_ldflags="-Wl,-soname=libsndio.so.\${MAJ}.\${MIN}"
--		so_link="libsndio.so"
-+		so_ldflags="-Wl,-soname=libsndio.so.\${MAJ}"
-+		so_link="libsndio.so libsndio.so.\${MAJ}"
- 		defs='-DHAVE_ARC4RANDOM -DHAVE_GETPEEREID -DHAVE_ISSETUGID \\\
- 		-DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRTONUM \\\
- 		-DHAVE_SOCK_CLOEXEC -DHAVE_CLOCK_GETTIME'
diff --git a/sndio/patches/patch-libsndio_sio__oss.c b/sndio/patches/patch-libsndio_sio__oss.c
deleted file mode 100644
index 2ac040cfab..0000000000
--- a/sndio/patches/patch-libsndio_sio__oss.c
+++ /dev/null
@@ -1,43 +0,0 @@
-$NetBSD$
-
-Add missing bits for ossaudio(3) on NetBSD.
-
---- libsndio/sio_oss.c.orig	2024-08-01 15:36:54.000000000 +0000
-+++ libsndio/sio_oss.c
-@@ -37,6 +37,22 @@
- 	sizeof(DEVPATH_PREFIX) - 1 +	\
- 	sizeof(int) * 3)
- 
-+/*
-+ * Additional OSS formats definitions.
-+ */
-+#ifndef AFMT_U32_LE
-+#define AFMT_U32_LE 0x00004000	/* Little endian unsigned 32-bit */
-+#endif
-+#ifndef AFMT_U32_BE
-+#define AFMT_U32_BE 0x00008000	/* Big endian unsigned 32-bit */
-+#endif
-+#ifndef AFMT_U24_LE
-+#define AFMT_U24_LE 0x00040000	/* Little endian unsigned 24-bit */
-+#endif
-+#ifndef AFMT_U24_BE
-+#define AFMT_U24_BE 0x00080000	/* Big endian unsigned 24-bit */
-+#endif
-+
- struct sio_oss_fmt {
- 	int fmt;
- 	unsigned int bits;
-@@ -288,11 +304,13 @@ sio_oss_getfd(const char *str, unsigned 
- 	}
- 
- 	val = 1;
-+#if !defined(__NetBSD__)
- 	if (ioctl(fd, SNDCTL_DSP_LOW_WATER, &val) == -1) {
- 		DPERROR("sio_oss_start: LOW_WATER");
- 		close(fd);
- 		return -1;
- 	}
-+#endif
- 	return fd;
- }
- 


Home | Main Index | Thread Index | Old Index