Commit 165ae853 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Backport a bunch of build system fixes

parent 7d0d58d2
...@@ -44,6 +44,9 @@ BUILT_SOURCES = $(BUILT_SOURCES_distclean) $(BUILT_SOURCES_clean) ...@@ -44,6 +44,9 @@ BUILT_SOURCES = $(BUILT_SOURCES_distclean) $(BUILT_SOURCES_clean)
SUFFIXES = SUFFIXES =
DISTCHECK_CONFIGURE_FLAGS = --disable-dvd --disable-mad --disable-libmpeg2 \
--disable-ffmpeg --disable-faad --disable-skins2
# Tell aclocal to use -I m4. Wonder if it really works. # Tell aclocal to use -I m4. Wonder if it really works.
ACLOCAL_AMFLAGS = -I m4 ACLOCAL_AMFLAGS = -I m4
...@@ -183,7 +186,7 @@ EXTRA_DIST += \ ...@@ -183,7 +186,7 @@ EXTRA_DIST += \
extras/MacOSX/Resources/English.lproj/Extended.nib/keyedobjects.nib \ extras/MacOSX/Resources/English.lproj/Extended.nib/keyedobjects.nib \
extras/MacOSX/Resources/English.lproj/InfoPlist.strings \ extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
extras/MacOSX/Delete_Preferences.app/Contents/Info.plist \ extras/MacOSX/Delete_Preferences.app/Contents/Info.plist \
extras/MacOSX/Delete_Preferences.app/Contents/Pkginfo \ extras/MacOSX/Delete_Preferences.app/Contents/PkgInfo \
extras/MacOSX/Delete_Preferences.app/Contents/MacOS/applet \ extras/MacOSX/Delete_Preferences.app/Contents/MacOS/applet \
extras/MacOSX/Delete_Preferences.app/Contents/Resources/description.rtfd/TXT.rtf \ extras/MacOSX/Delete_Preferences.app/Contents/Resources/description.rtfd/TXT.rtf \
extras/MacOSX/Delete_Preferences.app/Contents/Resources/applet.icns \ extras/MacOSX/Delete_Preferences.app/Contents/Resources/applet.icns \
...@@ -545,7 +548,7 @@ endif ...@@ -545,7 +548,7 @@ endif
install-exec-local: install-exec-local:
for i in "" $(ALIASES) ; do if test -n "$$i" ; then \ for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
rm -f "$(DESTDIR)$(bindir)/$$i" && \ rm -f "$(DESTDIR)$(bindir)/$$i" && \
ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \ ln -sf vlc "$(DESTDIR)$(bindir)/$$i" ; \
fi ; done fi ; done
test -z "$(DATA_noinst_libvlc)" || $(INSTALL_PROGRAM) "$(DATA_noinst_libvlc)" "$(DESTDIR)$(libdir)" test -z "$(DATA_noinst_libvlc)" || $(INSTALL_PROGRAM) "$(DATA_noinst_libvlc)" "$(DESTDIR)$(libdir)"
......
...@@ -75,8 +75,6 @@ src/audio_output/mixer.c ...@@ -75,8 +75,6 @@ src/audio_output/mixer.c
src/audio_output/output.c src/audio_output/output.c
src/control/audio_video.c src/control/audio_video.c
src/control/core.c src/control/core.c
src/control/init.c
src/control/plugin.c
src/control/util.c src/control/util.c
src/extras/dirent.c src/extras/dirent.c
src/extras/getopt.c src/extras/getopt.c
...@@ -214,7 +212,6 @@ modules/access/vcd/cdrom.h ...@@ -214,7 +212,6 @@ modules/access/vcd/cdrom.h
modules/access/vcd/cdrom_internals.h modules/access/vcd/cdrom_internals.h
modules/access/vcd/vcd.c modules/access/vcd/vcd.c
modules/access/vcdx/access.c modules/access/vcdx/access.c
modules/access/vcdx/demux.c
modules/access/vcdx/info.c modules/access/vcdx/info.c
modules/access/vcdx/info.h modules/access/vcdx/info.h
modules/access/vcdx/intf.c modules/access/vcdx/intf.c
...@@ -339,7 +336,6 @@ modules/codec/x264.c ...@@ -339,7 +336,6 @@ modules/codec/x264.c
modules/control/corba/corba.c modules/control/corba/corba.c
modules/control/corba/mediacontrol-core.c modules/control/corba/mediacontrol-core.c
modules/control/corba/mediacontrol-core.h modules/control/corba/mediacontrol-core.h
modules/control/corba/mediacontrol-init.c
modules/control/corba/mediacontrol-plugin.c modules/control/corba/mediacontrol-plugin.c
modules/control/gestures.c modules/control/gestures.c
modules/control/hotkeys.c modules/control/hotkeys.c
...@@ -751,7 +747,6 @@ modules/misc/qte_main.cpp ...@@ -751,7 +747,6 @@ modules/misc/qte_main.cpp
modules/misc/rtsp.c modules/misc/rtsp.c
modules/misc/screensaver.c modules/misc/screensaver.c
modules/misc/svg.c modules/misc/svg.c
modules/misc/testsuite/playlist.c
modules/misc/testsuite/test1.c modules/misc/testsuite/test1.c
modules/misc/testsuite/test2.cpp modules/misc/testsuite/test2.cpp
modules/misc/testsuite/test3.m modules/misc/testsuite/test3.m
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
## Copyright (C) 2005 the VideoLAN team ## Copyright (C) 2005 the VideoLAN team
## ##
## Authors: Samuel Hocevar <sam@zoy.org> ## Authors: Samuel Hocevar <sam@zoy.org>
## Rmi Denis-Courmont <rem # videolan.org> ## Rémi Denis-Courmont <rem # videolan.org>
### ###
### Get a sane environment, just in case ### Get a sane environment, just in case
...@@ -178,7 +178,7 @@ then ...@@ -178,7 +178,7 @@ then
do do
printf "." printf "."
# Top of the project file # Top of the project file
perl -pe 'if(/SOURCES/){last;}' < ${target}.in > ${target} perl -pe 'if(/§SOURCES§/){last;}' < ${target}.in > ${target}
# The source files # The source files
for file in `for i in ${LIBVLC_SOURCES} ; do echo $i ; done | grep -v "/.*/"` for file in `for i in ${LIBVLC_SOURCES} ; do echo $i ; done | grep -v "/.*/"`
do do
...@@ -275,7 +275,7 @@ EOF ...@@ -275,7 +275,7 @@ EOF
EOF EOF
done done
# The headers # The headers
perl -e 'while(<>){if(/SOURCES/){last;}}while(<>){if(/HEADERS/){last;}print $_}' < ${target}.in >> ${target} perl -e 'while(<>){if(/§SOURCES§/){last;}}while(<>){if(/§HEADERS§/){last;}print $_}' < ${target}.in >> ${target}
for file in ${LIBVLC_HEADERS} for file in ${LIBVLC_HEADERS}
do do
cat >> ${target} << EOF cat >> ${target} << EOF
...@@ -298,7 +298,7 @@ EOF ...@@ -298,7 +298,7 @@ EOF
cat >> ${target} << EOF cat >> ${target} << EOF
# End Group${M} # End Group${M}
EOF EOF
perl -e 'while(<>){if(/HEADERS/){last;}}while(<>){print $_}' < ${target}.in >> ${target} perl -e 'while(<>){if(/§HEADERS§/){last;}}while(<>){print $_}' < ${target}.in >> ${target}
done done
# plugins files # plugins files
...@@ -319,7 +319,7 @@ EOF ...@@ -319,7 +319,7 @@ EOF
source="${msdir}/plugins.${suf}.in" source="${msdir}/plugins.${suf}.in"
target="${msdir}/plugin_${mod}.${suf}" target="${msdir}/plugin_${mod}.${suf}"
printf "." printf "."
perl -pe 'if(/SOURCES/){last;} s/PLUGIN/'${mod}'/g' < ${source} > ${target} perl -pe 'if(/§SOURCES§/){last;} s/§PLUGIN§/'${mod}'/g' < ${source} > ${target}
for cfile in ${cfiles} for cfile in ${cfiles}
do do
cat >> ${target} << EOF cat >> ${target} << EOF
...@@ -336,8 +336,8 @@ SOURCE="..\\modules\\`echo ${dir}/${cfile} | sed 's,/,\\\\,g'`"${M} ...@@ -336,8 +336,8 @@ SOURCE="..\\modules\\`echo ${dir}/${cfile} | sed 's,/,\\\\,g'`"${M}
EOF EOF
done done
# sed is really nicer for this... unfortunately it's broken under cygwin # sed is really nicer for this... unfortunately it's broken under cygwin
# sed -ne '1,/SOURCES/d; /HEADERS/,$d; p' < ${source} >> ${target} # sed -ne '1,/§SOURCES§/d; /§HEADERS§/,$d; p' < ${source} >> ${target}
perl -e 'while(<>){if(/SOURCES/){last;}}while(<>){if(/HEADERS/){last;}print $_}' < ${source} >> ${target} perl -e 'while(<>){if(/§SOURCES§/){last;}}while(<>){if(/§HEADERS§/){last;}print $_}' < ${source} >> ${target}
for hfile in ${hfiles} for hfile in ${hfiles}
do do
cat >> ${target} << EOF cat >> ${target} << EOF
...@@ -346,8 +346,8 @@ SOURCE="..\\modules\\`echo ${dir}/${hfile} | sed 's,/,\\\\,g'`"${M} ...@@ -346,8 +346,8 @@ SOURCE="..\\modules\\`echo ${dir}/${hfile} | sed 's,/,\\\\,g'`"${M}
# End Source File${M} # End Source File${M}
EOF EOF
done done
# sed -ne '1,/HEADERS/d; p' < ${source} >> ${target} # sed -ne '1,/§HEADERS§/d; p' < ${source} >> ${target}
perl -e 'while(<>){if(/HEADERS/){last;}}while(<>){print $_}' < ${source} >> ${target} perl -e 'while(<>){if(/§HEADERS§/){last;}}while(<>){print $_}' < ${source} >> ${target}
done done
done done
done done
...@@ -357,7 +357,7 @@ EOF ...@@ -357,7 +357,7 @@ EOF
do do
printf "." printf "."
# Top of the project file # Top of the project file
perl -pe 'if(/SOURCES/){last;}' < ${target}.in > ${target} perl -pe 'if(/§SOURCES§/){last;}' < ${target}.in > ${target}
# The source files # The source files
cat >> ${target} << EOF cat >> ${target} << EOF
# Begin Source File${M} # Begin Source File${M}
...@@ -365,7 +365,7 @@ SOURCE="..\\src\\vlc.c"${M} ...@@ -365,7 +365,7 @@ SOURCE="..\\src\\vlc.c"${M}
# End Source File${M} # End Source File${M}
EOF EOF
# Bottom of the project file - handles resource files too # Bottom of the project file - handles resource files too
perl -e 'while(<>){if(/SOURCES/){last;}}while(<>){print $_}' < ${target}.in >> ${target} perl -e 'while(<>){if(/§SOURCES§/){last;}}while(<>){print $_}' < ${target}.in >> ${target}
done done
echo " done." echo " done."
...@@ -415,20 +415,20 @@ then ...@@ -415,20 +415,20 @@ then
printf "." printf "."
# Top of the project file # Top of the project file
guid=`perl -e 'sub r {return sprintf("%X", int rand(65536))} print r.r."-".r."-".r."-".r."-".r.r.r'` guid=`perl -e 'sub r {return sprintf("%X", int rand(65536))} print r.r."-".r."-".r."-".r."-".r.r.r'`
perl -pe 'if(/SOURCES/){last;} s/GUID/'${guid}'/g' < ${target}.in > ${target} perl -pe 'if(/§SOURCES§/){last;} s/§GUID§/'${guid}'/g' < ${target}.in > ${target}
# The source files # The source files
cat >> ${target} << EOF cat >> ${target} << EOF
<File RelativePath="..\\src\\vlc.c"></File>${M} <File RelativePath="..\\src\\vlc.c"></File>${M}
EOF EOF
# Bottom of the project file - handles resource files too # Bottom of the project file - handles resource files too
perl -e 'while(<>){if(/SOURCES/){last;}}while(<>){print $_}' < ${target}.in >> ${target} perl -e 'while(<>){if(/§SOURCES§/){last;}}while(<>){print $_}' < ${target}.in >> ${target}
# libvlc files # libvlc files
target=msvc/libvlc.vcproj target=msvc/libvlc.vcproj
printf "." printf "."
# Top of the project file # Top of the project file
guid=`perl -e 'sub r {return sprintf("%X", int rand(65536))} print r.r."-".r."-".r."-".r."-".r.r.r'` guid=`perl -e 'sub r {return sprintf("%X", int rand(65536))} print r.r."-".r."-".r."-".r."-".r.r.r'`
perl -pe 'if(/SOURCES/){last;} s/GUID/'${guid}'/g' < ${target}.in > ${target} perl -pe 'if(/§SOURCES§/){last;} s/§GUID§/'${guid}'/g' < ${target}.in > ${target}
# The source files # The source files
for file in `for i in ${LIBVLC_SOURCES} ; do echo $i ; done | grep -v "/.*/"` for file in `for i in ${LIBVLC_SOURCES} ; do echo $i ; done | grep -v "/.*/"`
do do
...@@ -463,7 +463,7 @@ EOF ...@@ -463,7 +463,7 @@ EOF
EOF EOF
done done
# The headers # The headers
perl -e 'while(<>){if(/SOURCES/){last;}}while(<>){if(/HEADERS/){last;}print $_}' < ${target}.in >> ${target} perl -e 'while(<>){if(/§SOURCES§/){last;}}while(<>){if(/§HEADERS§/){last;}print $_}' < ${target}.in >> ${target}
for file in ${LIBVLC_HEADERS} for file in ${LIBVLC_HEADERS}
do do
cat >> ${target} << EOF cat >> ${target} << EOF
...@@ -482,7 +482,7 @@ EOF ...@@ -482,7 +482,7 @@ EOF
cat >> ${target} << EOF cat >> ${target} << EOF
</Filter>${M} </Filter>${M}
EOF EOF
perl -e 'while(<>){if(/HEADERS/){last;}}while(<>){print $_}' < ${target}.in >> ${target} perl -e 'while(<>){if(/§HEADERS§/){last;}}while(<>){print $_}' < ${target}.in >> ${target}
# plugins files # plugins files
for dir in `sed -ne 's,modules/\(.*\)/Makefile,\1,p' ${srcdir}/configure.ac` for dir in `sed -ne 's,modules/\(.*\)/Makefile,\1,p' ${srcdir}/configure.ac`
...@@ -502,7 +502,7 @@ EOF ...@@ -502,7 +502,7 @@ EOF
target="${msdir}/plugin_${mod}.vcproj" target="${msdir}/plugin_${mod}.vcproj"
printf "." printf "."
guid=`perl -e 'sub r {return sprintf("%X", int rand(65536))} print r.r."-".r."-".r."-".r."-".r.r.r'` guid=`perl -e 'sub r {return sprintf("%X", int rand(65536))} print r.r."-".r."-".r."-".r."-".r.r.r'`
perl -pe 'if(/SOURCES/){last;} s/PLUGIN/'${mod}'/g' < ${source} | sed 's,GUID,'${guid}',' > ${target} perl -pe 'if(/§SOURCES§/){last;} s/§PLUGIN§/'${mod}'/g' < ${source} | sed 's,§GUID§,'${guid}',' > ${target}
for cfile in ${cfiles} for cfile in ${cfiles}
do do
cat >> ${target} << EOF cat >> ${target} << EOF
...@@ -510,16 +510,16 @@ EOF ...@@ -510,16 +510,16 @@ EOF
EOF EOF
done done
# sed is really nicer for this... unfortunately it's broken under cygwin # sed is really nicer for this... unfortunately it's broken under cygwin
# sed -ne '1,/SOURCES/d; /HEADERS/,$d; p' < ${source} >> ${target} # sed -ne '1,/§SOURCES§/d; /§HEADERS§/,$d; p' < ${source} >> ${target}
perl -e 'while(<>){if(/SOURCES/){last;}}while(<>){if(/HEADERS/){last;}print $_}' < ${source} >> ${target} perl -e 'while(<>){if(/§SOURCES§/){last;}}while(<>){if(/§HEADERS§/){last;}print $_}' < ${source} >> ${target}
for hfile in ${hfiles} for hfile in ${hfiles}
do do
cat >> ${target} << EOF cat >> ${target} << EOF
<File RelativePath="..\\modules\\`echo ${dir}/${hfile} | sed 's,/,\\\\,g'`"></File>${M} <File RelativePath="..\\modules\\`echo ${dir}/${hfile} | sed 's,/,\\\\,g'`"></File>${M}
EOF EOF
done done
# sed -ne '1,/HEADERS/d; p' < ${source} >> ${target} # sed -ne '1,/§HEADERS§/d; p' < ${source} >> ${target}
perl -e 'while(<>){if(/HEADERS/){last;}}while(<>){print $_}' < ${source} >> ${target} perl -e 'while(<>){if(/§HEADERS§/){last;}}while(<>){print $_}' < ${source} >> ${target}
done done
done done
done done
...@@ -556,33 +556,34 @@ then ...@@ -556,33 +556,34 @@ then
file="${builddir}/src/misc/modules_builtin.h" file="${builddir}/src/misc/modules_builtin.h"
rm -f ${file}.tmp && cp ${srcdir}/src/misc/modules_builtin.h.in ${file}.tmp rm -f "${file}.tmp"
cat "${srcdir}/src/misc/modules_builtin.h.in" > "${file}.tmp" || exit 1
if test -n "${BUILTINS}" if test -n "${BUILTINS}"
then then
for i in `echo ${BUILTINS}` for i in `echo ${BUILTINS}`
do do
echo "int vlc_entry__`echo $i | sed -e 'y@/@_@' -e 's@\..*@@'`( module_t* );" >>${file}.tmp echo "int vlc_entry__`echo $i | sed -e 'y@/@_@' -e 's@\..*@@'`( module_t* );" >> "${file}.tmp"
done done
echo "" >> ${file}.tmp echo "" >> "${file}.tmp"
fi fi
echo "#define ALLOCATE_ALL_BUILTINS() \\" >> ${file}.tmp echo "#define ALLOCATE_ALL_BUILTINS() \\" >> ${file}.tmp
echo " do \\" >> ${file}.tmp echo " do \\" >> "${file}.tmp"
echo " { \\" >> ${file}.tmp echo " { \\" >> "${file}.tmp"
if test -n "${BUILTINS}" if test -n "${BUILTINS}"
then then
for i in `echo ${BUILTINS}` for i in `echo ${BUILTINS}`
do do
echo " ALLOCATE_BUILTIN(`echo $i | sed -e 'y@/@_@' -e 's@\..*@@'`); \\" >> ${file}.tmp echo " ALLOCATE_BUILTIN(`echo $i | sed -e 'y@/@_@' -e 's@\..*@@'`); \\" >> "${file}.tmp"
done done
fi fi
echo " } while( 0 );" >> ${file}.tmp echo " } while( 0 );" >> "${file}.tmp"
echo "" >> ${file}.tmp echo "" >> "${file}.tmp" || exit 1
if diff >/dev/null 2>&1 ${file} ${file}.tmp if diff >/dev/null 2>&1 "${file}" "${file}.tmp"
then then
rm -f ${file}.tmp rm -f "${file}.tmp"
else else
echo "creating new ${file}" echo "creating new ${file}"
mv -f ${file}.tmp ${file} mv -f "${file}.tmp" "${file}"
fi fi
exit 0 exit 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment