shithub: opus-tools

Download patch

ref: 3d9024fafb0ca6413ab1287a417883d97dd186af
parent: c2f8ba8d9f3e2c719305d0e3ea58fa2c1049d243
author: Gregory Maxwell <[email protected]>
date: Mon May 28 11:38:03 EDT 2012

Drop soundcard support from Makefile.unix and include it in dist.

--- a/Makefile.am
+++ b/Makefile.am
@@ -22,6 +22,8 @@
                  src/wave_out.h \
                  src/wav_io.h
 
+EXTRA_DIST = Makefile.unix
+
 opusenc_SOURCES = src/opus_header.c src/opusenc.c src/resample.c src/audio-in.c src/diag_range.c
 opusenc_LDADD = $(OGG_LIBS) $(Opus_LIBS) -lm
 opusenc_MANS = man/opusenc.1
--- a/Makefile.unix
+++ b/Makefile.unix
@@ -1,5 +1,8 @@
+#Opus-tools should be built with autotools, not this makefile.
+#Run ./configure to run autotools/autoconf.
+#This makefile exists as a fallback where autotools isn't working.
 #CC=gcc
-CFLAGS:=-DPACKAGE='"opus-tools"' -DVERSION='"0.1.0"' -DOPUSTOOLS -DHAVE_SYS_SOUNDCARD_H -O2 -g -c -Wall -Wextra -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT $(CFLAGS)
+CFLAGS:=-DPACKAGE='"opus-tools"' -DVERSION='"0.1.0"' -DOPUSTOOLS -O2 -g -c -Wall -Wextra -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT $(CFLAGS)
 INCLUDES=-I../opus/include
 
 all: opusenc opusdec opusinfo