pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
audio/sonic: Change repostory, use commit, tag too old.
Module Name: pkgsrc-wip
Committed By: adr <adr%sdf.org@localhost>
Pushed By: adr
Date: Fri Jan 26 07:34:09 2024 +0000
Changeset: 831468f595ebfaa0db3f1014d44de5cd8c348916
Modified Files:
sonic/Makefile
sonic/PLIST
sonic/distinfo
sonic/patches/patch-Makefile
Added Files:
sonic/COMMIT_MSG
Log Message:
audio/sonic: Change repostory, use commit, tag too old.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=831468f595ebfaa0db3f1014d44de5cd8c348916
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
sonic/COMMIT_MSG | 3 +++
sonic/Makefile | 20 ++++++++++----------
sonic/PLIST | 2 +-
sonic/distinfo | 8 ++++----
sonic/patches/patch-Makefile | 42 ++++++++++++++++++++++++++++++++----------
5 files changed, 50 insertions(+), 25 deletions(-)
diffs:
diff --git a/sonic/COMMIT_MSG b/sonic/COMMIT_MSG
new file mode 100644
index 0000000000..cff4e57f31
--- /dev/null
+++ b/sonic/COMMIT_MSG
@@ -0,0 +1,3 @@
+audio/sonic: Add sonic version 0.2.0
+
+Packaged in wip by adr
diff --git a/sonic/Makefile b/sonic/Makefile
index 023e4ce9f5..cbc2190d49 100644
--- a/sonic/Makefile
+++ b/sonic/Makefile
@@ -1,21 +1,21 @@
# $NetBSD$
-DISTNAME= release-0.2.0
-PKGNAME= ${DISTNAME:S/release/sonic/}
-WRKSRC= ${WRKDIR}/sonic-${DISTNAME}
+COMMITS= 225
+DISTNAME= sonic-0.0.0.${COMMITS}
CATEGORIES= audio
-MASTER_SITES= ${MASTER_SITE_GITHUB:=espeak-ng/sonic/archive/refs/tags/}
-EXTRACT_SUFX= .zip
+MASTER_SITES= ${MASTER_SITE_GITHUB:=waywardgeek/}
+GITHUB_TAG= 8694c596378c24e340c09ff2cd47c065494233f1
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE= https://github.com/espeak-ng/sonic
+HOMEPAGE= https://github.com/waywardgeek/sonic
COMMENT= Simple library to speed up or slow down speech
LICENSE= apache-2.0
-USE_LANGUAGES= c
-USE_TOOLS= gmake
-CFLAGS+= -Wall -O3 -ansi -fPIC -pthread -Wl,-rpath=${PREFIX}/lib
-
+USE_LANGUAGES= c
+USE_TOOLS= gmake
+CFLAGS+= -Wall -O3 -Wno-unused-function -ansi -fPIC -pthread
+CFLAGS+= -Wl,-rpath=${PREFIX}/lib
+MAKE_FLAGS= PACKAGING=YES
CHECK_SHLIBS_SKIP= bin/sonic
.include "../../mk/bsd.pkg.mk"
diff --git a/sonic/PLIST b/sonic/PLIST
index 85b0b17055..97b8c4112e 100644
--- a/sonic/PLIST
+++ b/sonic/PLIST
@@ -4,4 +4,4 @@ include/sonic.h
lib/libsonic.a
lib/libsonic.so
lib/libsonic.so.0
-lib/libsonic.so.${PKGVERSION}
+lib/libsonic.so.0.3.0
diff --git a/sonic/distinfo b/sonic/distinfo
index 32ab09fac4..de7c713304 100644
--- a/sonic/distinfo
+++ b/sonic/distinfo
@@ -1,6 +1,6 @@
$NetBSD$
-BLAKE2s (release-0.2.0.zip) = 0b426bd5ea36e376b3cd28ee2958e7e0939f5172980ca47f3a43e30d82ca41ea
-SHA512 (release-0.2.0.zip) = b8424db63be06ede755e41105be7aa41f9da660fe2c2de546bbeb70981ed5da7f995ab5481d9a6aff8d87d9c3a3f8bded5e12cd8ac7b5510fcdf08773ea63aa5
-Size (release-0.2.0.zip) = 5321669 bytes
-SHA1 (patch-Makefile) = 864e553df30b2c39dc38d98e6ff549342c69a616
+BLAKE2s (sonic-0.0.0.225-8694c596378c24e340c09ff2cd47c065494233f1.tar.gz) = dd7bd4ad2d345e9ff370d71e197312d96a6656ce899784e1a4128638c549f191
+SHA512 (sonic-0.0.0.225-8694c596378c24e340c09ff2cd47c065494233f1.tar.gz) = 8bc124915b4bc6d98ad92968e137067e1b48a28aaf84aee725dbad71885aa8e1c3b23c0ae8d827fa07620d2c0116b5e40daa0229981fc2615b2c490d61cddf59
+Size (sonic-0.0.0.225-8694c596378c24e340c09ff2cd47c065494233f1.tar.gz) = 5358482 bytes
+SHA1 (patch-Makefile) = bf9547df890b8571833f3531e00c24ff0cc5b1bb
diff --git a/sonic/patches/patch-Makefile b/sonic/patches/patch-Makefile
index 9f8de96d5a..ba52d66874 100644
--- a/sonic/patches/patch-Makefile
+++ b/sonic/patches/patch-Makefile
@@ -2,17 +2,39 @@ $NetBSD$
Let pkgsrc manage flags, &c.
---- Makefile.orig 2022-11-06 22:53:06.509668654 +0000
+--- Makefile.orig 2023-10-12 22:32:47.000000000 +0000
+++ Makefile
-@@ -10,11 +10,7 @@ UNAME := $(shell uname)
- ifeq ($(UNAME), Darwin)
- SONAME=install_name
+@@ -11,6 +11,7 @@
+ # speech recognition.
+ #USE_SPECTROGRAM=1
+
++ifndef PACKAGING
+ PREFIX=/usr
+
+ UNAME := $(shell uname)
+@@ -18,6 +19,13 @@ ifeq ($(UNAME), Darwin)
+ PREFIX=/usr/local
endif
--#CFLAGS=-Wall -g -ansi -fPIC -pthread
--CFLAGS=-Wall -O3 -ansi -fPIC -pthread
- LIB_TAG=0.2.0
--CC=gcc
--PREFIX=/usr
+
++#CFLAGS=-Wall -Wno-unused-function -g -ansi -fPIC -pthread
++CFLAGS ?= -O3
++CFLAGS += -Wall -Wno-unused-function -ansi -fPIC -pthread
++
++CC=gcc
++endif
++
+ BINDIR=$(PREFIX)/bin
LIBDIR=$(PREFIX)/lib
+ INCDIR=$(PREFIX)/include
+@@ -35,11 +43,6 @@ ifeq ($(UNAME), Darwin)
+ LIB_TAG=
+ endif
+
+-#CFLAGS=-Wall -Wno-unused-function -g -ansi -fPIC -pthread
+-CFLAGS ?= -O3
+-CFLAGS += -Wall -Wno-unused-function -ansi -fPIC -pthread
+-
+-CC=gcc
- all: sonic libsonic.so.$(LIB_TAG) libsonic.a
+ # Set NO_MALLOC=1 as a parameter to make to compile Sonic with static buffers
+ # instead of calling malloc. This is usefule primarily on microcontrollers.
Home |
Main Index |
Thread Index |
Old Index