Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152103978
D51666.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D51666.diff
View Options
diff --git a/lib/Makefile b/lib/Makefile
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -92,6 +92,7 @@
librss \
librt \
librtld_db \
+ libsamplerate \
libsbuf \
libsmb \
libstdbuf \
diff --git a/lib/libsamplerate/Makefile b/lib/libsamplerate/Makefile
new file mode 100644
--- /dev/null
+++ b/lib/libsamplerate/Makefile
@@ -0,0 +1,18 @@
+.PATH: ${SRCTOP}/contrib/libsamplerate
+
+LIB= samplerate
+INTERNALLIB=
+
+SRCS= samplerate.c \
+ src_linear.c \
+ src_sinc.c \
+ src_zoh.c
+
+INCS= samplerate.h
+
+CFLAGS+= -DENABLE_SINC_BEST_CONVERTER \
+ -DENABLE_SINC_MEDIUM_CONVERTER \
+ -DENABLE_SINC_FAST_CONVERTER \
+ -I${SRCTOP}/contrib/libsamplerate
+
+.include <bsd.lib.mk>
diff --git a/share/mk/src.libnames.mk b/share/mk/src.libnames.mk
--- a/share/mk/src.libnames.mk
+++ b/share/mk/src.libnames.mk
@@ -72,6 +72,7 @@
pfctl \
pkgecc \
pmcstat \
+ samplerate \
sl \
sm \
smdb \
@@ -747,6 +748,9 @@
LIBSYS_PICDIR= ${_LIB_OBJTOP}/lib/libsys
LIBSYS_PIC?= ${LIBSYS_PICDIR}/libsys_pic.a
+LIBSAMPLERATEDIR?= ${_LIB_OBJTOP}/lib/libsamplerate
+LIBSAMPLERATE?= ${LIBSAMPLERATEDIR}/libsamplerate${PIE_SUFFIX}.a
+
# Define a directory for each library. This is useful for adding -L in when
# not using a --sysroot or for meta mode bootstrapping when there is no
# Makefile.depend. These are sorted by directory.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 13, 6:25 PM (13 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31420610
Default Alt Text
D51666.diff (1 KB)
Attached To
Mode
D51666: libsamplerate: Build as internal library
Attached
Detach File
Event Timeline
Log In to Comment