mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
audio/zita-alsa-pcmi: New port: Easy access to ALSA PCM devices
This commit is contained in:
parent
0a01aeffdb
commit
43626723a6
@ -872,6 +872,7 @@
|
||||
SUBDIR += ympd
|
||||
SUBDIR += yoshimi
|
||||
SUBDIR += zam-plugins-lv2
|
||||
SUBDIR += zita-alsa-pcmi
|
||||
SUBDIR += zita-at1
|
||||
SUBDIR += zita-bls1
|
||||
SUBDIR += zita-convolver
|
||||
|
49
audio/zita-alsa-pcmi/Makefile
Normal file
49
audio/zita-alsa-pcmi/Makefile
Normal file
@ -0,0 +1,49 @@
|
||||
PORTNAME= zita-alsa-pcmi
|
||||
DISTVERSION= 0.3.2
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= https://kokkinizita.linuxaudio.org/linuxaudio/downloads/
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
COMMENT= Easy access to ALSA PCM devices
|
||||
|
||||
LICENSE= GPLv3
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
LIB_DEPENDS= libasound.so:audio/alsa-lib
|
||||
|
||||
USES= gmake localbase:ldflags pkgconfig tar:bz2
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
CXXFLAGS+= -I../source
|
||||
LDFLAGS+= -L../source
|
||||
|
||||
PLIST_FILES= bin/alsa_delay \
|
||||
bin/alsa_loopback \
|
||||
include/zita-alsa-pcmi.h \
|
||||
lib/libzita-alsa-pcmi.so \
|
||||
lib/libzita-alsa-pcmi.so.0 \
|
||||
lib/libzita-alsa-pcmi.so.0.3.2
|
||||
|
||||
do-build:
|
||||
.for d in source apps
|
||||
@cd ${BUILD_WRKSRC}/${d} && \
|
||||
${ECHO} "Building in ${d}" && \
|
||||
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS}
|
||||
.endfor
|
||||
|
||||
do-install:
|
||||
.for d in source apps
|
||||
@cd ${INSTALL_WRKSRC}/${d} && \
|
||||
${ECHO} "Installing in ${d}" && \
|
||||
${SETENV} ${MAKE_ENV} ${FAKEROOT} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}
|
||||
.endfor
|
||||
|
||||
post-install:
|
||||
@cd ${STAGEDIR}${PREFIX} && \
|
||||
(cd lib && ${RLN} libzita-alsa-pcmi.so.0.3.2 libzita-alsa-pcmi.so.0) && \
|
||||
${STRIP_CMD} \
|
||||
bin/alsa_delay \
|
||||
bin/alsa_loopback \
|
||||
lib/libzita-alsa-pcmi.so.0.3.2
|
||||
|
||||
.include <bsd.port.mk>
|
3
audio/zita-alsa-pcmi/distinfo
Normal file
3
audio/zita-alsa-pcmi/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1626032654
|
||||
SHA256 (zita-alsa-pcmi-0.3.2.tar.bz2) = 1a1d9f7e373032bd5702382e4c923407911f4f791c449c0c0f027a725edba789
|
||||
SIZE (zita-alsa-pcmi-0.3.2.tar.bz2) = 21480
|
11
audio/zita-alsa-pcmi/files/patch-apps_alsa__loopback.cc
Normal file
11
audio/zita-alsa-pcmi/files/patch-apps_alsa__loopback.cc
Normal file
@ -0,0 +1,11 @@
|
||||
--- apps/alsa_loopback.cc.orig 2021-07-11 19:50:52 UTC
|
||||
+++ apps/alsa_loopback.cc
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
-#include <zita-alsa-pcmi.h>
|
||||
+#include "zita-alsa-pcmi.h"
|
||||
#include "pxthread.h"
|
||||
|
||||
|
37
audio/zita-alsa-pcmi/files/patch-source_Makefile
Normal file
37
audio/zita-alsa-pcmi/files/patch-source_Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
--- source/Makefile.orig 2018-08-24 18:41:30 UTC
|
||||
+++ source/Makefile
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
# Modify as required.
|
||||
#
|
||||
-SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
|
||||
+#SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
|
||||
PREFIX ?= /usr/local
|
||||
INCDIR ?= $(PREFIX)/include
|
||||
LIBDIR ?= $(PREFIX)/lib$(SUFFIX)
|
||||
@@ -31,7 +31,7 @@ VERSION = $(MAJVERS).$(MINVERS)
|
||||
|
||||
CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
|
||||
CXXFLAGS += -O2 -Wall -fPIC
|
||||
-CXXFLAGS += -march=native
|
||||
+CXXFLAGS += $(FREEBSD_CXXFLAGS_SIMD)
|
||||
LDLFAGS +=
|
||||
LDLIBS +=
|
||||
|
||||
@@ -46,14 +46,14 @@ ZITA-ALSA-PCMI_H = zita-alsa-pcmi.h
|
||||
|
||||
$(ZITA-ALSA-PCMI_MIN): $(ZITA-ALSA-PCMI_O)
|
||||
$(CXX) -shared $(LDFLAGS) -Wl,-soname,$(ZITA-ALSA-PCMI_MAJ) -o $(ZITA-ALSA-PCMI_MIN) $(ZITA-ALSA-PCMI_O) $(ZITA-ALSA-PCMI_DEP)
|
||||
+ ln -s $(ZITA-ALSA-PCMI_MIN) $(ZITA-ALSA-PCMI_SO)
|
||||
|
||||
-
|
||||
install: $(ZITA-ALSA-PCMI_MIN)
|
||||
install -d $(DESTDIR)$(INCDIR)
|
||||
install -d $(DESTDIR)$(LIBDIR)
|
||||
install -m 644 $(ZITA-ALSA-PCMI_H) $(DESTDIR)$(INCDIR)
|
||||
install -m 755 $(ZITA-ALSA-PCMI_MIN) $(DESTDIR)$(LIBDIR)
|
||||
- ldconfig
|
||||
+ #ldconfig
|
||||
ln -sf $(ZITA-ALSA-PCMI_MIN) $(DESTDIR)$(LIBDIR)/$(ZITA-ALSA-PCMI_SO)
|
||||
|
||||
uninstall:
|
11
audio/zita-alsa-pcmi/files/patch-source_zita-alsa-pcmi.cc
Normal file
11
audio/zita-alsa-pcmi/files/patch-source_zita-alsa-pcmi.cc
Normal file
@ -0,0 +1,11 @@
|
||||
--- source/zita-alsa-pcmi.cc.orig 2021-07-11 19:49:44 UTC
|
||||
+++ source/zita-alsa-pcmi.cc
|
||||
@@ -18,7 +18,7 @@
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
|
||||
-#include <endian.h>
|
||||
+#include <machine/endian.h>
|
||||
#include <sys/time.h>
|
||||
#include "zita-alsa-pcmi.h"
|
||||
|
3
audio/zita-alsa-pcmi/pkg-descr
Normal file
3
audio/zita-alsa-pcmi/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
Library and tools to access to ALSA PCM devices.
|
||||
|
||||
WWW: https://kokkinizita.linuxaudio.org/linuxaudio/
|
Loading…
Reference in New Issue
Block a user