Enabled static compile script compile_cdrskin.sh for FreeBSD

This commit is contained in:
Thomas Schmitt 2010-03-03 14:43:21 +00:00
parent 74a68adc6e
commit ac64aef090

View File

@ -7,7 +7,7 @@
debug_opts="-O2" debug_opts="-O2"
def_opts= def_opts=
largefile_opts="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1" largefile_opts="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1"
fifo_opts="-DCdrskin_use_libburn_fifO" fifo_opts=""
libvers="-DCdrskin_libburn_0_7_7" libvers="-DCdrskin_libburn_0_7_7"
# To be used if Makefile.am uses libburn_libburn_la_CFLAGS # To be used if Makefile.am uses libburn_libburn_la_CFLAGS
@ -26,6 +26,13 @@ compile_cdrskin=1
compile_cdrfifo=0 compile_cdrfifo=0
compile_dewav=0 compile_dewav=0
libcam=
os=$(uname -s)
case $os in
*FreeBSD)
libcam="-lcam"
esac
for i in "$@" for i in "$@"
do do
if test "$i" = "-compile_cdrfifo" if test "$i" = "-compile_cdrfifo"
@ -86,6 +93,10 @@ do
then then
fifo_source= fifo_source=
fifo_opts="-DCdrskin_use_libburn_fifO -DCdrskin_no_cdrfifO" fifo_opts="-DCdrskin_use_libburn_fifO -DCdrskin_no_cdrfifO"
elif test "$i" = "-use_libburn_cleanup"
then
fifo_source=
fifo _opts="-Ddrskin_use_libburn_cleanuP -DCdrskin_use_libburn_fifO -DCdrskin_no_cdrfifO"
elif test "$i" = "-use_libcdio" elif test "$i" = "-use_libcdio"
then then
libcdio="-lcdio" libcdio="-lcdio"
@ -125,7 +136,7 @@ echo "Build timestamp : $timestamp"
if test "$compile_cdrskin" if test "$compile_cdrskin"
then then
echo "compiling program cdrskin/cdrskin.c $fifo_source $static_opts $debug_opts $libvers $fifo_opts $def_opts $cleanup_src_or_obj $libcdio" echo "compiling program cdrskin/cdrskin.c $fifo_source $static_opts $debug_opts $libvers $fifo_opts $def_opts $cleanup_src_or_obj $libcdio $libcam"
cc -I. \ cc -I. \
$warn_opts \ $warn_opts \
$static_opts \ $static_opts \
@ -171,6 +182,7 @@ then
"$burn"ecma130ab.o \ "$burn"ecma130ab.o \
\ \
$libcdio \ $libcdio \
$libcam \
-lpthread -lpthread
ret=$? ret=$?