From e11247525e3b1ecdb68b3a4369f49300450e3ec5 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 3 Mar 2010 14:43:21 +0000 Subject: [PATCH] Enabled static compile script compile_cdrskin.sh for FreeBSD --- libburn/trunk/cdrskin/compile_cdrskin.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/libburn/trunk/cdrskin/compile_cdrskin.sh b/libburn/trunk/cdrskin/compile_cdrskin.sh index 88b28bb1..80b3e946 100755 --- a/libburn/trunk/cdrskin/compile_cdrskin.sh +++ b/libburn/trunk/cdrskin/compile_cdrskin.sh @@ -7,7 +7,7 @@ debug_opts="-O2" def_opts= 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" # To be used if Makefile.am uses libburn_libburn_la_CFLAGS @@ -26,6 +26,13 @@ compile_cdrskin=1 compile_cdrfifo=0 compile_dewav=0 +libcam= +os=$(uname -s) +case $os in + *FreeBSD) + libcam="-lcam" +esac + for i in "$@" do if test "$i" = "-compile_cdrfifo" @@ -86,6 +93,10 @@ do then fifo_source= 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" then libcdio="-lcdio" @@ -125,7 +136,7 @@ echo "Build timestamp : $timestamp" if test "$compile_cdrskin" 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. \ $warn_opts \ $static_opts \ @@ -171,6 +182,7 @@ then "$burn"ecma130ab.o \ \ $libcdio \ + $libcam \ -lpthread ret=$?