diff options
author | yuri <yuri@FreeBSD.org> | 2018-07-04 10:41:30 +0800 |
---|---|---|
committer | yuri <yuri@FreeBSD.org> | 2018-07-04 10:41:30 +0800 |
commit | b802153730d3bcc77a39ae322df2524009531514 (patch) | |
tree | b5b2b5f1620a8fafba12043de4428211785e8775 /audio | |
parent | 0a73f3df1d8e8011b2bd6695de26be910174b2f5 (diff) | |
download | freebsd-ports-gnome-b802153730d3bcc77a39ae322df2524009531514.tar.gz freebsd-ports-gnome-b802153730d3bcc77a39ae322df2524009531514.tar.zst freebsd-ports-gnome-b802153730d3bcc77a39ae322df2524009531514.zip |
New port: audio/libsonic: Simple library to speed up or slow down speech
Diffstat (limited to 'audio')
-rw-r--r-- | audio/Makefile | 1 | ||||
-rw-r--r-- | audio/libsonic/Makefile | 32 | ||||
-rw-r--r-- | audio/libsonic/distinfo | 3 | ||||
-rw-r--r-- | audio/libsonic/files/patch-Makefile | 28 | ||||
-rw-r--r-- | audio/libsonic/pkg-descr | 11 |
5 files changed, 75 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile index ac4f53f59e3b..af45f7ab3c1a 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -441,6 +441,7 @@ SUBDIR += libsidplayfp SUBDIR += libsmf SUBDIR += libsndfile + SUBDIR += libsonic SUBDIR += libsoxr SUBDIR += libtremor SUBDIR += libumidi diff --git a/audio/libsonic/Makefile b/audio/libsonic/Makefile new file mode 100644 index 000000000000..758f15d87970 --- /dev/null +++ b/audio/libsonic/Makefile @@ -0,0 +1,32 @@ +# $FreeBSD$ + +PORTNAME= libsonic +DISTVERSIONPREFIX= release- +DISTVERSION= 0.2.0-51 +DISTVERSIONSUFFIX= -ge4a56ec +CATEGORIES= audio + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Simple library to speed up or slow down speech + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libfftw3.so:math/fftw3 + +USES= gmake localbase:ldflags +USE_GITHUB= yes +GH_ACCOUNT= waywardgeek +GH_PROJECT= sonic +USE_LDCONFIG= yes + +MAKE_ARGS= CC=${CC} CFLAGS="${CFLAGS}" PREFIX="${PREFIX}" +CFLAGS+= -ansi -fPIC -pthread -Wno-unused-function -DSONIC_SPECTROGRAM + +PLIST_FILES= bin/sonic \ + include/sonic.h \ + lib/libsonic.so \ + lib/libsonic.so.0 \ + lib/libsonic.so.0.3.0 + +.include <bsd.port.mk> diff --git a/audio/libsonic/distinfo b/audio/libsonic/distinfo new file mode 100644 index 000000000000..1a2a3883b39e --- /dev/null +++ b/audio/libsonic/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1530670250 +SHA256 (waywardgeek-sonic-release-0.2.0-51-ge4a56ec_GH0.tar.gz) = 0e0c74a9722225343f5a69df5f213a43b32ed71113ef8e169a7477681989a669 +SIZE (waywardgeek-sonic-release-0.2.0-51-ge4a56ec_GH0.tar.gz) = 5349382 diff --git a/audio/libsonic/files/patch-Makefile b/audio/libsonic/files/patch-Makefile new file mode 100644 index 000000000000..d9115ad5dd5f --- /dev/null +++ b/audio/libsonic/files/patch-Makefile @@ -0,0 +1,28 @@ +--- Makefile.orig 2018-07-03 15:11:47 UTC ++++ Makefile +@@ -32,7 +32,7 @@ OBJ=$(SRC:.c=.o) + all: sonic libsonic.so.$(LIB_TAG) libsonic.a + + sonic: wave.o main.o libsonic.a +- $(CC) $(CFLAGS) -o sonic wave.o main.o libsonic.a -lm $(FFTLIB) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o sonic wave.o main.o libsonic.a -lm $(FFTLIB) + + sonic.o: sonic.c sonic.h + $(CC) $(CFLAGS) -c sonic.c +@@ -47,7 +47,7 @@ spectrogram.o: spectrogram.c sonic.h + $(CC) $(CFLAGS) -c spectrogram.c + + libsonic.so.$(LIB_TAG): $(OBJ) +- $(CC) $(CFLAGS) -shared -Wl,-$(SONAME),libsonic.so.0 $(OBJ) -o libsonic.so.$(LIB_TAG) $(FFTLIB) ++ $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-$(SONAME),libsonic.so.0 $(OBJ) -o libsonic.so.$(LIB_TAG) $(FFTLIB) + ln -sf libsonic.so.$(LIB_TAG) libsonic.so + ln -sf libsonic.so.$(LIB_TAG) libsonic.so.0 + +@@ -59,7 +59,6 @@ install: sonic libsonic.so.$(LIB_TAG) so + install sonic $(DESTDIR)$(PREFIX)/bin + install sonic.h $(DESTDIR)$(PREFIX)/include + install libsonic.so.$(LIB_TAG) $(DESTDIR)$(PREFIX)/lib +- install libsonic.a $(DESTDIR)$(LIBDIR) + ln -sf libsonic.so.$(LIB_TAG) $(DESTDIR)$(PREFIX)/lib/libsonic.so + ln -sf libsonic.so.$(LIB_TAG) $(DESTDIR)$(PREFIX)/lib/libsonic.so.0 + diff --git a/audio/libsonic/pkg-descr b/audio/libsonic/pkg-descr new file mode 100644 index 000000000000..6d6fab75e395 --- /dev/null +++ b/audio/libsonic/pkg-descr @@ -0,0 +1,11 @@ +Sonic is a simple algorithm for speeding up or slowing down speech. However, +it's optimized for speed ups of over 2X, unlike previous algorithms for changing +speech rate. The Sonic library is a very simple ANSI C library that is designed +to easily be integrated into streaming voice applications, like TTS back ends. + +The primary motivation behind Sonic is to enable the blind and visually impaired +to improve their productivity with open source speech engines, like espeak. +Sonic can also be used by the sighted. For example, Sonic can improve the +experience of listening to an audio book on an Android phone. + +WWW: https://github.com/waywardgeek/sonic |