Remove LiveTV menu.
[vuplus_xbmc] / lib / libdvd / build-xbmc-win32.sh
index a0ff00e..3babd83 100644 (file)
@@ -2,8 +2,9 @@
 
 MAKECLEAN=0
 MAKEFLAGS=""
+BGPROCESSFILE=$2
 
-if [ "$1" == "clean" ]
+if [ "$1" = "clean" ]
 then
 MAKECLEAN=1
 fi
@@ -15,7 +16,7 @@ fi
 #libdvdcss
 cd libdvdcss
 echo "***** Cleaning libdvdcss *****"
-if [ $MAKECLEAN == 1 ]
+if [ $MAKECLEAN = 1 ]
 then
 make distclean
 fi
@@ -36,7 +37,7 @@ cp libdvdcss/src/.libs/libdvdcss-2.dll /xbmc/system/players/dvdplayer/
 #libdvdread
 cd libdvdread
 echo "***** Cleaning libdvdread *****"
-if [ $MAKECLEAN == 1 ]
+if [ $MAKECLEAN = 1 ]
 then
 make distclean
 fi
@@ -47,14 +48,14 @@ echo "***** Building libdvdread *****"
       --extra-cflags="-DHAVE_DVDCSS_DVDCSS_H -D_XBMC -DNDEBUG -D_MSC_VER -I`pwd`/../includes" \
       --disable-debug
 mkdir -p ../includes/dvdread
-cp ../libdvdread/src/*.h ../includes/dvdread
+cp ../libdvdread/src/dvdread/*.h ../includes/dvdread
 make $MAKEFLAGS
 cd ..
 
 #libdvdnav
 cd libdvdnav
 echo "***** Cleaning libdvdnav *****"
-if [ $MAKECLEAN == 1 ]
+if [ $MAKECLEAN = 1 ]
 then
 make distclean
 fi
@@ -63,8 +64,10 @@ echo "***** Building libdvdnav *****"
       --disable-shared \
       --enable-static \
       --extra-cflags="-D_XBMC -DNDEBUG -I`pwd`/../includes" \
-      --with-dvdread-config="`pwd`/../libdvdread/obj/dvdread-config" \
+      --with-dvdread-config="`pwd`/../dvdread-config" \
       --disable-debug
+mkdir -p ../includes/dvdnav
+cp ../libdvdnav/src/dvdnav/*.h ../includes/dvdnav
 make $MAKEFLAGS
 gcc \
       -shared \
@@ -77,4 +80,6 @@ gcc \
 strip -S obj/libdvdnav.dll
 cd ..
 cp libdvdnav/obj/libdvdnav.dll /xbmc/system/players/dvdplayer/
-echo "***** Done *****"
\ No newline at end of file
+echo "***** Done *****"
+#remove the bgprocessfile for signaling the process end
+rm $BGPROCESSFILE