From owner-svn-ports-head@freebsd.org Wed Jul 4 02:41:32 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 897A01022C44; Wed, 4 Jul 2018 02:41:32 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3B8857F6E2; Wed, 4 Jul 2018 02:41:32 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1D0B924D5B; Wed, 4 Jul 2018 02:41:32 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w642fWtc071551; Wed, 4 Jul 2018 02:41:32 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w642fVlw071546; Wed, 4 Jul 2018 02:41:31 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201807040241.w642fVlw071546@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Wed, 4 Jul 2018 02:41:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r473863 - in head/audio: . libsonic libsonic/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/audio: . libsonic libsonic/files X-SVN-Commit-Revision: 473863 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2018 02:41:32 -0000 Author: yuri Date: Wed Jul 4 02:41:30 2018 New Revision: 473863 URL: https://svnweb.freebsd.org/changeset/ports/473863 Log: New port: audio/libsonic: Simple library to speed up or slow down speech Added: head/audio/libsonic/ head/audio/libsonic/Makefile (contents, props changed) head/audio/libsonic/distinfo (contents, props changed) head/audio/libsonic/files/ head/audio/libsonic/files/patch-Makefile (contents, props changed) head/audio/libsonic/pkg-descr (contents, props changed) Modified: head/audio/Makefile Modified: head/audio/Makefile ============================================================================== --- head/audio/Makefile Wed Jul 4 02:36:29 2018 (r473862) +++ head/audio/Makefile Wed Jul 4 02:41:30 2018 (r473863) @@ -441,6 +441,7 @@ SUBDIR += libsidplayfp SUBDIR += libsmf SUBDIR += libsndfile + SUBDIR += libsonic SUBDIR += libsoxr SUBDIR += libtremor SUBDIR += libumidi Added: head/audio/libsonic/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/libsonic/Makefile Wed Jul 4 02:41:30 2018 (r473863) @@ -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 Added: head/audio/libsonic/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/libsonic/distinfo Wed Jul 4 02:41:30 2018 (r473863) @@ -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 Added: head/audio/libsonic/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/libsonic/files/patch-Makefile Wed Jul 4 02:41:30 2018 (r473863) @@ -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 + Added: head/audio/libsonic/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/libsonic/pkg-descr Wed Jul 4 02:41:30 2018 (r473863) @@ -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