Commit 655212dd authored by Sam Hocevar's avatar Sam Hocevar

* Makefile.am:

    + Call $(srcdir)/toolbox from $(builddir) instead of $(srcdir).
    + Call $(builddir)/vlc-config instead of $(srcdir)/vlc-config, because
      generated files end in $(builddir).
    + Added -Imozilla to the mozilla plugin link flags.
    + Look for mozilla/vlcintf.idl in $(srcdir).
  * configure.ac:
    + Set VLC_CONFIG to $(builddir)/vlc-config instead of $(srcdir)/vlc-config.
  * toolbox:
    + Look for Makefile.am in ${srcdir}, and Makefile in ${builddir}.
    + Prepend ${srcdir} to header files we handle.
  * m4/vlc.m4:
    + Look for vlc-config.in.in in ${srcdir} but generate vlc-config.in in
      ${builddir}.
  * modules/gui/skins/src/dialogs.cpp, modules/gui/wxwindows/interface.cpp:
    + Include the pixmap with a path relative to the current directory.

   This commit should fix builds that use --srcdir (Closes: #319).
parent 7cd00a56
...@@ -110,13 +110,13 @@ HEADERS_include_built = \ ...@@ -110,13 +110,13 @@ HEADERS_include_built = \
$(NULL) $(NULL)
include/vlc_symbols.h: Makefile $(HEADERS_include) include/vlc_symbols.h: Makefile $(HEADERS_include)
cd $(srcdir) && $(srcdir)/toolbox --update-includes $(srcdir)/toolbox --update-includes
src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include) src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include)
cd $(srcdir) && $(srcdir)/toolbox --update-includes $(srcdir)/toolbox --update-includes
src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in
cd $(srcdir) && $(srcdir)/toolbox --update-includes $(srcdir)/toolbox --update-includes
# These dependencies are mandatory # These dependencies are mandatory
$(SOURCES): include/vlc_symbols.h $(SOURCES): include/vlc_symbols.h
...@@ -373,10 +373,10 @@ endif ...@@ -373,10 +373,10 @@ endif
# Install the modules and the symlinks # Install the modules and the symlinks
install-exec-local: install-exec-local:
for i in "" `$(srcdir)/vlc-config --target plugin` ; do if test -n "$$i" ; then \ for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
$(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | cut -f2 -d/`" ; \ $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | cut -f2 -d/`" ; \
fi ; done fi ; done
for i in "" `$(srcdir)/vlc-config --target builtin` `$(srcdir)/vlc-config --target builtin pic` ; do if test -n "$$i" ; then \ for i in "" `$(VLC_CONFIG) --target builtin` `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
$(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \ $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
fi ; done fi ; done
for i in "" $(ALIASES) ; do if test -n "$$i" ; then \ for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
...@@ -395,7 +395,7 @@ VLC.app: vlc plugins ...@@ -395,7 +395,7 @@ VLC.app: vlc plugins
$(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS $(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS
$(INSTALL) vlc $(srcdir)/VLC.app/Contents/MacOS/VLC $(INSTALL) vlc $(srcdir)/VLC.app/Contents/MacOS/VLC
$(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS/modules $(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS/modules
for i in "" `$(srcdir)/vlc-config --target plugin` ; do \ for i in "" `$(VLC_CONFIG) --target plugin` ; do \
if test -n "$$i" ; then $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" \ if test -n "$$i" ; then $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" \
"$(srcdir)/VLC.app/Contents/MacOS/modules" ; \ "$(srcdir)/VLC.app/Contents/MacOS/modules" ; \
fi ; done fi ; done
...@@ -461,7 +461,7 @@ package-win32: ...@@ -461,7 +461,7 @@ package-win32:
unix2dos "$(srcdir)/tmp/$${file}.txt" ; done unix2dos "$(srcdir)/tmp/$${file}.txt" ; done
mkdir -p "$(srcdir)/tmp/plugins" mkdir -p "$(srcdir)/tmp/plugins"
for i in "" `$(srcdir)/vlc-config --target plugin` ; do \ for i in "" `$(VLC_CONFIG) --target plugin` ; do \
if test -n "$$i" ; then \ if test -n "$$i" ; then \
$(INSTALL) "$(srcdir)/$$i$(LIBEXT)" "$(srcdir)/tmp/plugins/" ; \ $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" "$(srcdir)/tmp/plugins/" ; \
fi ; done fi ; done
...@@ -603,9 +603,9 @@ endif ...@@ -603,9 +603,9 @@ endif
mozilla_libplugin_a_SOURCES = $(SOURCES_mozilla) mozilla_libplugin_a_SOURCES = $(SOURCES_mozilla)
mozilla_libplugin_a_CFLAGS = `$(VLC_CONFIG) --cflags mozilla pic` \ mozilla_libplugin_a_CFLAGS = `$(VLC_CONFIG) --cflags mozilla pic` \
$(CPPFLAGS_mozilla_EXTRA) $(CPPFLAGS_mozilla_EXTRA) -Imozilla
mozilla_libplugin_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags mozilla pic` \ mozilla_libplugin_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags mozilla pic` \
$(CPPFLAGS_mozilla_EXTRA) $(CPPFLAGS_mozilla_EXTRA) -Imozilla
mozilla_libplugin_a_DEPENDENCIES = lib/libvlc_pic.a $(DATA_npvlc_rc) builtins_pic mozilla_libplugin_a_DEPENDENCIES = lib/libvlc_pic.a $(DATA_npvlc_rc) builtins_pic
BUILT_SOURCES_mozilla = mozilla/vlcintf.h BUILT_SOURCES_mozilla = mozilla/vlcintf.h
...@@ -623,11 +623,11 @@ mozilla_vlcintf_xpt_DATA = mozilla/vlcintf.xpt ...@@ -623,11 +623,11 @@ mozilla_vlcintf_xpt_DATA = mozilla/vlcintf.xpt
mozilla_vlcintf_xptdir = $(libdir)/mozilla/components mozilla_vlcintf_xptdir = $(libdir)/mozilla/components
mozilla/vlcintf.xpt: Makefile mozilla/vlcintf.idl mozilla/vlcintf.xpt: Makefile mozilla/vlcintf.idl
$(XPIDL) -I/usr/share/idl/mozilla -m typelib \ $(XPIDL) -I/usr/share/idl/mozilla -m typelib \
-o mozilla/vlcintf mozilla/vlcintf.idl -o mozilla/vlcintf $(srcdir)/mozilla/vlcintf.idl
mozilla/vlcintf.h: Makefile mozilla/vlcintf.idl mozilla/vlcintf.h: Makefile mozilla/vlcintf.idl
$(XPIDL) -I/usr/share/idl/mozilla -m header \ $(XPIDL) -I/usr/share/idl/mozilla -m header \
-o mozilla/vlcintf mozilla/vlcintf.idl -o mozilla/vlcintf $(srcdir)/mozilla/vlcintf.idl
if HAVE_WIN32 if HAVE_WIN32
DATA_npvlc_rc = $(noinst_mozilla_npvlc_rc_DATA) DATA_npvlc_rc = $(noinst_mozilla_npvlc_rc_DATA)
......
...@@ -3107,7 +3107,7 @@ AC_SUBST(PLUGIN_PATH) ...@@ -3107,7 +3107,7 @@ AC_SUBST(PLUGIN_PATH)
dnl dnl
dnl Handle substvars that use $(top_srcdir) dnl Handle substvars that use $(top_srcdir)
dnl dnl
VLC_CONFIG="\$(top_srcdir)/vlc-config" VLC_CONFIG="\$(top_builddir)/vlc-config"
AC_SUBST(VLC_CONFIG) AC_SUBST(VLC_CONFIG)
CPPFLAGS_save="${CPPFLAGS_save} -I\$(top_srcdir)/include" CPPFLAGS_save="${CPPFLAGS_save} -I\$(top_srcdir)/include"
......
vlc (0.6.0+cvs-20030627-2) unstable; urgency=low
* extras/ffmpeg:
+ Fixed compilation for Alpha.
-- Sam Hocevar (Debian packages) <sam+deb@zoy.org> Sat, 21 Jun 2003 17:55:07 +0200
vlc (0.6.0+cvs-20030627-1) unstable; urgency=low vlc (0.6.0+cvs-20030627-1) unstable; urgency=low
* New upstream release. * New upstream release.
......
...@@ -29,36 +29,36 @@ AC_DEFUN([AX_RESTORE_FLAGS], [ ...@@ -29,36 +29,36 @@ AC_DEFUN([AX_RESTORE_FLAGS], [
dnl Special cases: vlc, pics, plugins, save dnl Special cases: vlc, pics, plugins, save
AC_DEFUN([AX_ADD_CPPFLAGS], [ AC_DEFUN([AX_ADD_CPPFLAGS], [
for element in [$1]; do for element in [$1]; do
eval "CPPFLAGS_$element="'"$'"{CPPFLAGS_$element} $2"'"' eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} $2"'"'
am_plugins_with_cppflags="${am_plugins_with_cppflags} $element" am_plugins_with_cppflags="${am_plugins_with_cppflags} ${element}"
done done
]) ])
AC_DEFUN([AX_ADD_CFLAGS], [ AC_DEFUN([AX_ADD_CFLAGS], [
for element in [$1]; do for element in [$1]; do
eval "CFLAGS_$element="'"$'"{CFLAGS_$element} $2"'"' eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $2"'"'
am_plugins_with_cflags="${am_plugins_with_cflags} $element" am_plugins_with_cflags="${am_plugins_with_cflags} ${element}"
done done
]) ])
AC_DEFUN([AX_ADD_CXXFLAGS], [ AC_DEFUN([AX_ADD_CXXFLAGS], [
for element in [$1]; do for element in [$1]; do
eval "CXXFLAGS_$element="'"$'"{CXXFLAGS_$element} $2"'"' eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} $2"'"'
am_plugins_with_cxxflags="${am_plugins_with_cxxflags} $element" am_plugins_with_cxxflags="${am_plugins_with_cxxflags} ${element}"
done done
]) ])
AC_DEFUN([AX_ADD_OBJCFLAGS], [ AC_DEFUN([AX_ADD_OBJCFLAGS], [
for element in [$1]; do for element in [$1]; do
eval "OBJCFLAGS_$element="'"$'"{OBJCFLAGS_$element} $2"'"' eval "OBJCFLAGS_${element}="'"$'"{OBJCFLAGS_${element}} $2"'"'
am_plugins_with_objcflags="${am_plugins_with_objcflags} $element" am_plugins_with_objcflags="${am_plugins_with_objcflags} ${element}"
done done
]) ])
AC_DEFUN([AX_ADD_LDFLAGS], [ AC_DEFUN([AX_ADD_LDFLAGS], [
for element in [$1]; do for element in [$1]; do
eval "LDFLAGS_$element="'"$'"{LDFLAGS_$element} $2"'"' eval "LDFLAGS_${element}="'"$'"{LDFLAGS_${element}} $2"'"'
am_plugins_with_ldflags="${am_plugins_with_ldflags} $element" am_plugins_with_ldflags="${am_plugins_with_ldflags} ${element}"
done done
]) ])
...@@ -67,7 +67,7 @@ AC_DEFUN([AX_OUTPUT_VLC_CONFIG_IN], [ ...@@ -67,7 +67,7 @@ AC_DEFUN([AX_OUTPUT_VLC_CONFIG_IN], [
AC_MSG_RESULT(configure: creating ./vlc-config.in) AC_MSG_RESULT(configure: creating ./vlc-config.in)
rm -f vlc-config.in rm -f vlc-config.in
sed -ne '/#@1@#/q;p' < vlc-config.in.in \ sed -ne '/#@1@#/q;p' < "${srcdir}/vlc-config.in.in" \
| sed -e "s/@gprof@/${enable_gprof}/" \ | sed -e "s/@gprof@/${enable_gprof}/" \
-e "s/@cprof@/${enable_cprof}/" \ -e "s/@cprof@/${enable_cprof}/" \
-e "s/@optim@/${enable_optimizations}/" \ -e "s/@optim@/${enable_optimizations}/" \
...@@ -110,11 +110,13 @@ AC_DEFUN([AX_OUTPUT_VLC_CONFIG_IN], [ ...@@ -110,11 +110,13 @@ AC_DEFUN([AX_OUTPUT_VLC_CONFIG_IN], [
] done ] done
dnl '/#@1@#/,/#@2@#/{/#@.@#/d;p}' won't work on OS X dnl '/#@1@#/,/#@2@#/{/#@.@#/d;p}' won't work on OS X
sed -ne '/#@1@#/,/#@2@#/p' < vlc-config.in.in | sed -e '/#@.@#/d' >> vlc-config.in sed -ne '/#@1@#/,/#@2@#/p' < "${srcdir}/vlc-config.in.in" \
| sed -e '/#@.@#/d' >> vlc-config.in
AX_VLC_CONFIG_HELPER AX_VLC_CONFIG_HELPER
dnl '/#@2@#/,${/#@.@#/d;p}' won't work on OS X dnl '/#@2@#/,${/#@.@#/d;p}' won't work on OS X
sed -ne '/#@2@#/,$p' < vlc-config.in.in | sed -e '/#@.@#/d' >> vlc-config.in sed -ne '/#@2@#/,$p' < "${srcdir}/vlc-config.in.in" \
| sed -e '/#@.@#/d' >> vlc-config.in
]) ])
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* dialogs.cpp: Handles all the different dialog boxes we provide. * dialogs.cpp: Handles all the different dialog boxes we provide.
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: dialogs.cpp,v 1.7 2003/06/11 10:42:34 gbazin Exp $ * $Id: dialogs.cpp,v 1.8 2003/06/28 13:04:52 sam Exp $
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -59,7 +59,7 @@ void Dialogs::ShowPopup(){} ...@@ -59,7 +59,7 @@ void Dialogs::ShowPopup(){}
#else // !MODULE_NAME_IS_basic_skins #else // !MODULE_NAME_IS_basic_skins
#include "../../wxwindows/wxwindows.h" #include "../../wxwindows/wxwindows.h"
#include "share/vlc32x32.xpm" // include the graphic icon #include "../../../../share/vlc32x32.xpm" // include the graphic icon
#define ShowOpen_Event 0 #define ShowOpen_Event 0
#define ShowOpenSkin_Event 1 #define ShowOpenSkin_Event 1
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* interface.cpp : wxWindows plugin for vlc * interface.cpp : wxWindows plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2000-2001 VideoLAN * Copyright (C) 2000-2001 VideoLAN
* $Id: interface.cpp,v 1.41 2003/06/19 12:21:53 gbazin Exp $ * $Id: interface.cpp,v 1.42 2003/06/28 13:04:52 sam Exp $
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
#define TOOLBAR_BMP_HEIGHT 36 #define TOOLBAR_BMP_HEIGHT 36
/* include the icon graphic */ /* include the icon graphic */
#include "share/vlc32x32.xpm" #include "../../../share/vlc32x32.xpm"
/***************************************************************************** /*****************************************************************************
* Local class declarations. * Local class declarations.
......
#! /bin/sh #! /bin/sh
## toolbox for the VLC media player ## toolbox for the VLC media player
## $Id: toolbox,v 1.29 2003/06/28 01:17:47 sam Exp $ ## $Id: toolbox,v 1.30 2003/06/28 13:04:52 sam Exp $
## ##
## Authors: Samuel Hocevar <sam@zoy.org> ## Authors: Samuel Hocevar <sam@zoy.org>
...@@ -37,9 +37,10 @@ EOF ...@@ -37,9 +37,10 @@ EOF
## ##
getfiles() getfiles()
{ {
awk 'BEGIN{a=0}{if(!a&&/^'"$1"'[^-_a-zA-Z0-9]*=/){a=1;print$0;next;}if(a){if(/^[a-zA-Z]/){exit;}print $0}}' < Makefile.am | \ awk 'BEGIN{a=0}{if(!a&&/^'"$1"'[^-_a-zA-Z0-9]*=/){a=1;print$0;next;}if(a){if(/^[a-zA-Z]/){exit;}print $0}}' < "${srcdir}/Makefile.am" | \
tr '\\ ' '\n\n' | \ tr '\\ ' '\n\n' | \
sed -ne 's/[^-$()_a-zA-Z0-9][^-$()_a-zA-Z0-9]*\([a-zA-Z]\)/\1/p' sed -ne 's/[^-$()_a-zA-Z0-9][^-$()_a-zA-Z0-9]*\([a-zA-Z]\)/\1/p' | \
sed -e "s,^,${srcdir}/,"
} }
### ###
...@@ -115,6 +116,8 @@ if test "${action}" = "vc" ...@@ -115,6 +116,8 @@ if test "${action}" = "vc"
then then
echo "generating Visual Studio files..." echo "generating Visual Studio files..."
srcdir="`sed -ne 's/^srcdir *= *//p;T;q' < Makefile`"
# The evil ^M # The evil ^M
M="`printf '\r'`" M="`printf '\r'`"
...@@ -364,10 +367,11 @@ if test "${action}" = "includes" ...@@ -364,10 +367,11 @@ if test "${action}" = "includes"
then then
#set -x #set -x
srcdir="`sed -ne 's/^srcdir *= *//p;T;q' < Makefile`"
LIBVLC_HEADERS=`getfiles HEADERS_include` LIBVLC_HEADERS=`getfiles HEADERS_include`
BUILTINS=`sed -ne 's/.*builtins *= *" *\([^"]*\)".*/\1/p' vlc-config` BUILTINS=`sed -ne 's/.*builtins *= *" *\([^"]*\)".*/\1/p' vlc-config`
file=include/vlc_symbols.h file="${srcdir}/include/vlc_symbols.h"
rm -f ${file}.in rm -f ${file}.in
echo '/* DO NOT EDIT THIS FILE! See Makefile.am */' >> ${file}.in echo '/* DO NOT EDIT THIS FILE! See Makefile.am */' >> ${file}.in
...@@ -385,7 +389,7 @@ then ...@@ -385,7 +389,7 @@ then
mv -f ${file}.in ${file} mv -f ${file}.in ${file}
fi fi
file=src/misc/modules_plugin.h file="${srcdir}/src/misc/modules_plugin.h"
rm -f ${file}.tmp && cp ${file}.in ${file}.tmp rm -f ${file}.tmp && cp ${file}.in ${file}.tmp
sed -e 's#.*\$[I][d]:.*# * Automatically generated from '${file}'.in by bootstrap#' < ${file}.in > ${file}.tmp sed -e 's#.*\$[I][d]:.*# * Automatically generated from '${file}'.in by bootstrap#' < ${file}.in > ${file}.tmp
...@@ -400,7 +404,7 @@ then ...@@ -400,7 +404,7 @@ then
mv -f ${file}.tmp ${file} mv -f ${file}.tmp ${file}
fi fi
file=src/misc/modules_builtin.h file="${srcdir}/src/misc/modules_builtin.h"
rm -f ${file}.tmp && cp ${file}.in ${file}.tmp rm -f ${file}.tmp && cp ${file}.in ${file}.tmp
if test "${BUILTINS}" != "" if test "${BUILTINS}" != ""
......
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