Commit 255db009 authored by Sam Hocevar's avatar Sam Hocevar

* ./configure.in: workaround Debian bug #150490 (bad mozilla-config output).

  * ./mozilla/vlcplugin.h: added .mov and .mp4 files to the plugin.
  * ./Makefile: we no longer try to merge .a files into libvlc.a, but rather
    add them to the vlc-config output.
parent 8a430a88
...@@ -321,9 +321,9 @@ distclean: clean ...@@ -321,9 +321,9 @@ distclean: clean
# #
# Install/uninstall rules # Install/uninstall rules
# #
install: vlc-install plugins-install libvlc-install po-install mozilla-install install: vlc-install plugins-install builtins-install libvlc-install po-install mozilla-install
uninstall: vlc-uninstall plugins-uninstall libvlc-install po-uninstall mozilla-uninstall uninstall: vlc-uninstall plugins-uninstall builtins-uninstall libvlc-uninstall po-uninstall mozilla-uninstall
vlc-install: vlc-install:
mkdir -p $(DESTDIR)$(bindir) mkdir -p $(DESTDIR)$(bindir)
...@@ -615,7 +615,7 @@ endif ...@@ -615,7 +615,7 @@ endif
# Main application target # Main application target
# #
vlc: Makefile.config Makefile.opts Makefile.dep Makefile $(VLC_OBJ) lib/libvlc.a $(BUILTIN_OBJ) vlc: Makefile.config Makefile.opts Makefile.dep Makefile $(VLC_OBJ) lib/libvlc.a $(BUILTIN_OBJ)
$(CC) $(CFLAGS) -o $@ $(VLC_OBJ) lib/libvlc.a $(LDFLAGS) $(vlc_LDFLAGS) $(builtins_LDFLAGS) $(CC) $(CFLAGS) -o $@ $(VLC_OBJ) lib/libvlc.a $(LDFLAGS) $(vlc_LDFLAGS) $(BUILTIN_OBJ) $(builtins_LDFLAGS)
ifeq ($(SYS),beos) ifeq ($(SYS),beos)
xres -o $@ ./share/vlc_beos.rsrc xres -o $@ ./share/vlc_beos.rsrc
mimeset -f $@ mimeset -f $@
...@@ -628,20 +628,13 @@ endif ...@@ -628,20 +628,13 @@ endif
# #
# Main library target # Main library target
# #
lib/libvlc.a: Makefile.opts Makefile.dep Makefile $(LIBVLC_OBJ) $(BUILTIN_OBJ) lib/libvlc.a: Makefile.opts Makefile.dep Makefile $(LIBVLC_OBJ)
rm -f $@ rm -f $@
ar rc $@ $(LIBVLC_OBJ) ar rc $@ $(LIBVLC_OBJ)
ifneq (,$(BUILTINS))
rm -Rf lib/tmp && mkdir -p lib/tmp
cd lib/tmp && for i in $(BUILTINS) ; do ar x ../../plugins/$$i.a ; done
ar rcs $@ lib/tmp/*
rm -Rf lib/tmp
endif
$(RANLIB) $@ $(RANLIB) $@
#lib/libvlc.so: Makefile.opts Makefile.dep Makefile $(LIBVLC_OBJ) #lib/libvlc.so: Makefile.opts Makefile.dep Makefile $(LIBVLC_OBJ)
# $(CC) -shared $(LIBVLC_OBJ) $(LDFLAGS) $(vlc_LDFLAGS) -o $@ # $(CC) -shared $(LIBVLC_OBJ) $(LDFLAGS) $(vlc_LDFLAGS) -o $@
# chmod a-x $@
# #
# Plugins target # Plugins target
......
...@@ -9137,7 +9137,7 @@ fi ...@@ -9137,7 +9137,7 @@ fi
then then
MOZILLA=1 MOZILLA=1
mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`" mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs `" mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs | sed 's#-I\(.*\)/mozilla/\([^ ]*\)#-I\1/\2 -I\1/mozilla/\2#g'`"
fi fi
fi fi
...@@ -9193,7 +9193,7 @@ CFLAGS="${save_CFLAGS}" ...@@ -9193,7 +9193,7 @@ CFLAGS="${save_CFLAGS}"
LDFLAGS="${save_LDFLAGS}" LDFLAGS="${save_LDFLAGS}"
libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}" libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}"
for i in ${BUILTINS} ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} @libdir@/${i}.a `eval echo '$'{${i}_LDFLAGS}`" ; done for i in ${BUILTINS} ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} ${libdir}/vlc/${i}.a `eval echo '$'{${i}_LDFLAGS}`" ; done
......
...@@ -1772,7 +1772,8 @@ then ...@@ -1772,7 +1772,8 @@ then
then then
MOZILLA=1 MOZILLA=1
mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`" mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs `" dnl Workaround for http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=150490
mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs | sed 's#-I\(.*\)/mozilla/\([^ ]*\)#-I\1/\2 -I\1/mozilla/\2#g'`"
fi fi
fi fi
...@@ -1824,7 +1825,7 @@ dnl ...@@ -1824,7 +1825,7 @@ dnl
dnl Create the vlc-config script dnl Create the vlc-config script
dnl dnl
libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}" libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}"
for i in ${BUILTINS} ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} @libdir@/${i}.a `eval echo '$'{${i}_LDFLAGS}`" ; done for i in ${BUILTINS} ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} ${libdir}/vlc/${i}.a `eval echo '$'{${i}_LDFLAGS}`" ; done
AC_SUBST(libvlc_LDFLAGS) AC_SUBST(libvlc_LDFLAGS)
dnl dnl
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
export DH_COMPAT=3 export DH_COMPAT=3
# Compilation options # Compilation options
export FFMPEG_VERSION=20020707 export FFMPEG_VERSION=cvs
export CONFIG_FLAGS="--enable-release --prefix=/usr --enable-gnome --enable-gtk --enable-fb --enable-ggi --enable-sdl --enable-esd --enable-qt --enable-mad --enable-arts --enable-alsa --enable-lirc --enable-a52 --enable-aa --enable-dvbpsi --enable-xosd --enable-mozilla --enable-kde --enable-ffmpeg --with-ffmpeg-tree=ffmpeg-$(FFMPEG_VERSION) --enable-mp4" export CONFIG_FLAGS="--enable-release --prefix=/usr --enable-gnome --enable-gtk --enable-fb --enable-ggi --enable-sdl --enable-esd --enable-qt --enable-mad --enable-arts --enable-alsa --enable-lirc --enable-a52 --enable-aa --enable-dvbpsi --enable-xosd --enable-mozilla --enable-kde --enable-ffmpeg --with-ffmpeg-tree=ffmpeg-$(FFMPEG_VERSION) --enable-mp4"
# Remove --without-dvdcss here in non-totalitarian countries # Remove --without-dvdcss here in non-totalitarian countries
export DVDCSS_FLAGS="--enable-dvd --without-dvdcss" export DVDCSS_FLAGS="--enable-dvd --without-dvdcss"
...@@ -80,7 +80,7 @@ install: build ...@@ -80,7 +80,7 @@ install: build
# install development files # install development files
mv debian/vlc/usr/bin/vlc-config debian/libvlc0-dev/usr/bin/ mv debian/vlc/usr/bin/vlc-config debian/libvlc0-dev/usr/bin/
mv debian/vlc/usr/lib/*.a debian/libvlc0-dev/usr/lib/ mv debian/vlc/usr/lib/*.a debian/libvlc0-dev/usr/lib/
# mv debian/vlc/usr/lib/vlc/*.a debian/libvlc0-dev/usr/lib/vlc/ mv debian/vlc/usr/lib/vlc/*.a debian/libvlc0-dev/usr/lib/vlc/
mv debian/vlc/usr/include/vlc/* debian/libvlc0-dev/usr/include/vlc/ mv debian/vlc/usr/include/vlc/* debian/libvlc0-dev/usr/include/vlc/
ln -s vlc debian/libvlc0-dev/usr/share/doc/libvlc0-dev ln -s vlc debian/libvlc0-dev/usr/share/doc/libvlc0-dev
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* videolan.c: a VideoLAN plugin for Mozilla * videolan.c: a VideoLAN plugin for Mozilla
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: vlcplugin.h,v 1.1 2002/07/04 18:11:57 sam Exp $ * $Id: vlcplugin.h,v 1.2 2002/07/23 20:12:55 sam Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -46,19 +46,29 @@ typedef struct _PluginInstance ...@@ -46,19 +46,29 @@ typedef struct _PluginInstance
* Plugin properties. * Plugin properties.
******************************************************************************/ ******************************************************************************/
#define PLUGIN_NAME "VideoLAN Client Plug-in" #define PLUGIN_NAME "VideoLAN Client Plug-in"
#define PLUGIN_DESCRIPTION "VideoLAN Client (VLC) Multimedia Player Plug-in" #define PLUGIN_DESCRIPTION \
"VideoLAN Client Multimedia Player Plugin <br>" \
" <br>" \
COPYRIGHT_MESSAGE " <br>" \
"VideoLAN WWW: <a href=\"http://www.videolan.org/\">http://www.videolan.org/</a>"
#define PLUGIN_MIMETYPES \ #define PLUGIN_MIMETYPES \
/* MPEG audio */ \ /* MPEG-1 and MPEG-2 */ \
"audio/mpeg:mp2,mp3:MPEG audio;" \ "audio/mpeg:mp2,mp3,mpga,mpega:MPEG audio;" \
"audio/x-mpeg:mp2,mp3:MPEG audio;" \ "audio/x-mpeg:mp2,mp3,mpga,mpega:MPEG audio;" \
/* MPEG video */ \ "video/mpeg:mpg,mpeg,mpe:MPEG video;" \
"video/mpeg:mpg,mpeg:MPEG video;" \ "video/x-mpeg:mpg,mpeg,mpe:MPEG video;" \
"video/x-mpeg:mpg,mpeg:MPEG video;" \ "video/mpeg-system:mpg,mpeg,mpe,vob:MPEG video;" \
"video/mpeg-system:mpg,mpeg:MPEG video;" \ "video/x-mpeg-system:mpg,mpeg,mpe,vob:MPEG video;" \
"video/x-mpeg-system:mpg,mpeg:MPEG video;" \ /* MPEG-4 */ \
/* AVI video */ \ "video/mpeg4:mp4,mpg4:MPEG-4 video;" \
"audio/mpeg4:mp4,mpg4:MPEG-4 audio;" \
"application/mpeg4-iod:mp4,mpg4:MPEG-4 video;" \
"application/mpeg4-muxcodetable:mp4,mpg4:MPEG-4 video;" \
/* AVI */ \
"video/x-msvideo:avi:AVI video;" \ "video/x-msvideo:avi:AVI video;" \
/* QuickTime */ \
"video/quicktime:mov,qt:QuickTime video;" \
/* explicit plugin call */ \ /* explicit plugin call */ \
"application/x-vlc-plugin::VLC plugin" "application/x-vlc-plugin::VLC plugin"
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