Update the help strings. These should be autogenerated at run time (IMO)... else...
[vlc.git] / vlc.roku
index 5ae7394..009df6d 100755 (executable)
--- a/vlc.roku
+++ b/vlc.roku
@@ -1,20 +1,24 @@
 #!/bin/sh
 #!/bin/sh
+
+SRC="${HOME}/src"
+ROKU="${HOME}/src/roku-dev"
+
+# do it.
 make distclean
 ./bootstrap
 CC=mipsel-linux-gcc CXX=mipsel-linux-g++ AR=mipsel-linux-ar LD=mipsel-linux-ld RANLIB=mipsel-linux-ranlib STRIP=mipsel-linux-strip \
 make distclean
 ./bootstrap
 CC=mipsel-linux-gcc CXX=mipsel-linux-g++ AR=mipsel-linux-ar LD=mipsel-linux-ld RANLIB=mipsel-linux-ranlib STRIP=mipsel-linux-strip \
- ./configure --host=mipsel --enable-release --enable-static --disable-shared --enable-plugins \
-  --prefix=/home/jpsaman/src/roku-dev/usr \
+ ./configure --host=mipsel --enable-debug --enable-static --enable-shared --enable-plugins --enable-mostly-builtin \
+  --prefix=${ROKU}/usr \
   --disable-sdl \
   --disable-sdl \
-  --enable-mad --with-mad-tree=/home/jpsaman/src/libmad-0.15.0b \
-  --enable-libmpeg2 --with-libmpeg2-tree=/home/jpsaman/src/mpeg2dec-0.4.0 \
-  --enable-dvbpsi --with-dvbpsi-tree=/home/jpsaman/src/libdvbpsi3-0.1.4 \
+  --enable-mad \
+  --enable-libmpeg2 --with-libmpeg2-tree=${SRC}/mpeg2dec-0.4.0 \
+  --disable-dvbpsi \
   --disable-vcd --disable-vcdx --disable-cdda --disable-cddax --disable-libcdio --disable-libcddb \
   --disable-dvd --disable-dvdread --disable-dvdnav --disable-dvdplay \
   --disable-dshow --disable-directx --disable-wingdi --disable-waveout \
   --disable-macosx --disable-coreaudio --disable-quicktime \
   --disable-qnx \
   --disable-ncurses \
   --disable-vcd --disable-vcdx --disable-cdda --disable-cddax --disable-libcdio --disable-libcddb \
   --disable-dvd --disable-dvdread --disable-dvdnav --disable-dvdplay \
   --disable-dshow --disable-directx --disable-wingdi --disable-waveout \
   --disable-macosx --disable-coreaudio --disable-quicktime \
   --disable-qnx \
   --disable-ncurses \
-  --disable-corba \
   --disable-mozilla \
   --disable-mga \
   --disable-svgalib --disable-ggi --disable-glide \
   --disable-mozilla \
   --disable-mga \
   --disable-svgalib --disable-ggi --disable-glide \
@@ -44,10 +48,12 @@ CC=mipsel-linux-gcc CXX=mipsel-linux-g++ AR=mipsel-linux-ar LD=mipsel-linux-ld R
   --disable-skins --disable-skins2 \
   --disable-fribidi --disable-freetype \
   --disable-sout \
   --disable-skins --disable-skins2 \
   --disable-fribidi --disable-freetype \
   --disable-sout \
-  --enable-oss --disable-alsa \
-  --enable-visual --disable-goom \
-  --enable-hd1000a --enable-hd1000v \
-  CFLAGS="-I/home/jpsaman/src/roku-dev/usr/include -I/home/jpsaman/src/roku-dev/usr/local/include/roku" \
-  CXXFLAGS="-I/usr/tools/roku/include " \
-  LDFLAGS="-L/usr/tools/roku/mipsel-linux/lib -L/home/jpsaman/src/roku-dev/lib -L/home/jpsaman/src/roku/usr/lib -L/home/jpsaman/src/roku-dev/usr/local/lib" && \
-  make
+  --disable-oss --disable-alsa --disable-fb \
+  --disable-visual --disable-goom \
+  --enable-hd1000a --disable-hd1000v \
+  CFLAGS="-I/usr/tools/roku/include -I${ROKU}/usr/include -I${ROKU}/usr/local/include -I${ROKU}/usr/local/include/roku" \
+  CXXFLAGS="${CFLAGS}" \
+  CPPFLAGS="${CFLAGS}" \
+  LDFLAGS="-L/usr/tools/roku/mipsel-linux/lib -L${ROKU}/lib -L${ROKU}/usr/local/lib -Wl,-rpath-link -Wl,${ROKU}/usr/local/lib" && \
+  make 
+#  ${STRIP} -s --strip-unneeded vlc