Browse Source

Enabled static compile script compile_cdrskin.sh for FreeBSD

tags/ZeroSevenEight
Thomas Schmitt 10 years ago
parent
commit
ac64aef090
1 changed files with 14 additions and 2 deletions
  1. +14
    -2
      cdrskin/compile_cdrskin.sh

+ 14
- 2
cdrskin/compile_cdrskin.sh View File

@@ -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=$?


Loading…
Cancel
Save