libsamplerate: Build as internal library
Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D51666
This commit is contained in:
@@ -92,6 +92,7 @@ SUBDIR= ${SUBDIR_BOOTSTRAP} \
|
|||||||
librss \
|
librss \
|
||||||
librt \
|
librt \
|
||||||
librtld_db \
|
librtld_db \
|
||||||
|
libsamplerate \
|
||||||
libsbuf \
|
libsbuf \
|
||||||
libsmb \
|
libsmb \
|
||||||
libstdbuf \
|
libstdbuf \
|
||||||
|
|||||||
@@ -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>
|
||||||
@@ -72,6 +72,7 @@ _INTERNALLIBS= \
|
|||||||
pfctl \
|
pfctl \
|
||||||
pkgecc \
|
pkgecc \
|
||||||
pmcstat \
|
pmcstat \
|
||||||
|
samplerate \
|
||||||
sl \
|
sl \
|
||||||
sm \
|
sm \
|
||||||
smdb \
|
smdb \
|
||||||
@@ -747,6 +748,9 @@ LIBC_NOSSP_PIC?= ${LIBC_NOSSP_PICDIR}/libc_nossp_pic.a
|
|||||||
LIBSYS_PICDIR= ${_LIB_OBJTOP}/lib/libsys
|
LIBSYS_PICDIR= ${_LIB_OBJTOP}/lib/libsys
|
||||||
LIBSYS_PIC?= ${LIBSYS_PICDIR}/libsys_pic.a
|
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
|
# 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
|
# not using a --sysroot or for meta mode bootstrapping when there is no
|
||||||
# Makefile.depend. These are sorted by directory.
|
# Makefile.depend. These are sorted by directory.
|
||||||
|
|||||||
Reference in New Issue
Block a user