- # Sources that get built under Win32
- LIBVLC_SOURCES=`make show-libvlc-sources | grep '^X: ' | cut -b3-`
- LIBVLC_HEADERS=`make show-libvlc-headers | grep '^X: ' | cut -b3-`
- LIBVLC_PKG_HEADERS=`make show-libvlc-pkg-headers | grep '^X: ' | cut -b3-`
-
- for target in evc/vlc.vcp msvc/vlc.dsp
- do
- rm -f ${target}
- # Top of the project file
- cat ${target}.in > ${target}
- # The source files
- cat >> ${target} << EOF
-# Begin Group "Source Files"${M}
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"${M}
-# Begin Group "vlc"${M}
-# Begin Source File${M}
-EOF
- if test "${target}" = "evc/vlc.vcp"
- then
- cat >> ${target} << EOF
-SOURCE="..\\evc\\vlc.c"${M}
-EOF
- else
- cat >> ${target} << EOF
-SOURCE="..\\src\\vlc.c"${M}
-EOF
- fi
- cat >> ${target} << EOF
-# End Source File${M}
-# End Group${M}
-# Begin Group "libvlc"${M}
-EOF
- for file in `for i in ${LIBVLC_SOURCES} ; do echo $i ; done | grep -v "/.*/"`
- do
- cat >> ${target} << EOF
-# Begin Source File${M}
-SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M}
-# ADD CPP /D "__VLC__" /D PLUGIN_PATH=\\"plugins\\" /D DATA_PATH=\\"share\\"${M}
-# End Source File${M}
-EOF
- done
- for subdir in `for i in ${LIBVLC_SOURCES} ; do echo $i ; done | grep "/.*/" | cut -f2 -d/ | sort | uniq`
- do
- cat >> ${target} << EOF
-# Begin Group "${subdir}"${M}
-EOF
- for file in `for i in ${LIBVLC_SOURCES} ; do echo $i ; done | grep "/${subdir}/"`
- do
- if test "${target}" = "evc/vlc.vcp"
- then
- cat >> ${target} << EOF
-# Begin Source File${M}
-SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M}
-# ADD CPP /D "__VLC__" /D PLUGIN_PATH=\\"plugins\\" /D DATA_PATH=\\"share\\"${M}
-!IF "\$(CFG)" == "vlc - Win32 (WCE MIPS) Release"${M}
-# PROP Intermediate_Dir "Release\\${subdir}"${M}
-# PROP Output_Dir "Release\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE MIPS) Debug"${M}
-# PROP Intermediate_Dir "Debug\\${subdir}"${M}
-# PROP Output_Dir "Debug\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE SH4) Release"${M}
-# PROP Intermediate_Dir "Release\\${subdir}"${M}
-# PROP Output_Dir "Release\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE SH4) Debug"${M}
-# PROP Intermediate_Dir "Debug\\${subdir}"${M}
-# PROP Output_Dir "Debug\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE SH3) Release"${M}
-# PROP Intermediate_Dir "Release\\${subdir}"${M}
-# PROP Output_Dir "Release\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE SH3) Debug"${M}
-# PROP Intermediate_Dir "Debug\\${subdir}"${M}
-# PROP Output_Dir "Debug\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE ARM) Release"${M}
-# PROP Intermediate_Dir "Release\\${subdir}"${M}
-# PROP Output_Dir "Release\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE ARM) Debug"${M}
-# PROP Intermediate_Dir "Debug\\${subdir}"${M}
-# PROP Output_Dir "Debug\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE x86em) Release"${M}
-# PROP Intermediate_Dir "Release\\${subdir}"${M}
-# PROP Output_Dir "Release\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE x86em) Debug"${M}
-# PROP Intermediate_Dir "Debug\\${subdir}"${M}
-# PROP Output_Dir "Debug\\${subdir}"${M}
-!ENDIF${M}
-# End Source File${M}
-EOF
- else
- cat >> ${target} << EOF
-# Begin Source File${M}
-SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M}
-# ADD CPP /D "__VLC__" /D PLUGIN_PATH=\\"plugins\\" /D DATA_PATH=\\"share\\"${M}
-!IF "\$(CFG)" == "vlc - Win32 Release"${M}
-# PROP Intermediate_Dir "Release\\${subdir}"${M}
-# PROP Output_Dir "Release\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 Debug"${M}
-# PROP Intermediate_Dir "Debug\\${subdir}"${M}
-# PROP Output_Dir "Debug\\${subdir}"${M}
-!ENDIF${M}
-# End Source File${M}
-EOF
- fi
- done
- cat >> ${target} << EOF
-# End Group${M}
-EOF
- done
- cat >> ${target} << EOF
-# End Group${M}
-# End Group${M}
-EOF
- # The modules
- echo 'no modules yet'
- # The headers
- cat >> ${target} << EOF
-# Begin Group "Header Files"${M}
-# PROP Default_Filter "h;hpp;hxx;hm;inl"${M}
-EOF
- for file in ${LIBVLC_HEADERS}
- do
- cat >> ${target} << EOF
-# Begin Source File${M}
-SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M}
-# End Source File${M}
-EOF
- done
- cat >> ${target} << EOF
-# Begin Group "vlc"${M}
-EOF
- for file in ${LIBVLC_PKG_HEADERS}
- do
- cat >> ${target} << EOF
-# Begin Source File${M}
-SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M}
-# End Source File${M}
-EOF
- done
- cat >> ${target} << EOF
-# End Group${M}
-# End Group${M}
-EOF
- # Bottom of the project file - handles resource files too
- cat ${target}.out >> ${target}
- done
-
- exit 0
+# Check for contrib directory
+if test -d extras/contrib/build/bin; then
+ PATH="`pwd`/extras/contrib/build/bin:$PATH"
+ if test -d extras/contrib/build/share/aclocal; then
+ ACLOCAL_ARGS="${ACLOCAL_ARGS} -I extras/contrib/build/share/aclocal"
+ fi
+ if test ".`uname -s`" = ".Darwin"; then
+ LD_LIBRARY_PATH=./extras/contrib/build/lib:$LD_LIBRARY_PATH
+ DYLD_LIBRARY_PATH=./extras/contrib/build/lib:$DYLD_LIBRARY_PATH
+ export LD_LIBRARY_PATH
+ export DYLD_LIBRARY_PATH
+ elif test ".`uname -s`" = ".BeOS"; then
+ LIBRARY_PATH=./extras/contrib/build/lib:$LIBRARY_PATH
+ BELIBRARIES=./extras/contrib/build/lib:$BELIBRARIES
+ export LIBRARY_PATH
+ export BELIBRARIES
+ fi
+elif test ".`uname -s`" = ".Darwin"; then
+ set +x
+ echo ""
+ echo "ERR: Contribs haven't been built"
+ echo "ERR: Please run:"
+ echo "ERR: "
+ echo "ERR: 'cd extras/contrib && ./bootstrap && make && cd ../..'"
+ echo "ERR: "
+ echo "ERR: Make sure fink has been disabled too."
+ echo ""
+ set -x
+ exit 1