Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
audio/zita-alsa-pcmi: New port: Easy access to ALSA PCM devices
- Loading branch information
Showing
7 changed files
with
115 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Library and tools to access to ALSA PCM devices. | ||
|
||
WWW: https://kokkinizita.linuxaudio.org/linuxaudio/ |