2002-09-30 19:05:42 +08:00
|
|
|
###############################################################################
|
|
|
|
# Automake targets and declarations
|
|
|
|
###############################################################################
|
2002-08-26 07:18:05 +08:00
|
|
|
|
2003-03-26 07:32:00 +08:00
|
|
|
NULL =
|
|
|
|
|
2002-09-30 19:05:42 +08:00
|
|
|
# SUBDIRS stores the directories where a "make" is required when building
|
|
|
|
# something. DIST_SUBDIRS stores the directories where nothing is built but
|
|
|
|
# which have makefiles with distribution information.
|
2003-07-31 19:02:01 +08:00
|
|
|
# - intl should come before modules and . because all the code uses gettext
|
|
|
|
# - modules should come before . because vlc needs the builtins
|
|
|
|
# - . should come before mozilla because the plugin needs libvlc_pic.a
|
|
|
|
# - po should come before . because VLC.app needs the pofiles
|
2003-10-25 00:34:30 +08:00
|
|
|
SUBDIRS = intl modules po . mozilla share m4 doc
|
|
|
|
DIST_SUBDIRS = $(SUBDIRS) src debian ipkg lib autotools
|
2002-08-26 07:18:05 +08:00
|
|
|
|
2003-03-26 07:32:00 +08:00
|
|
|
EXTRA_DIST = \
|
|
|
|
HACKING \
|
|
|
|
INSTALL.win32 \
|
2004-03-04 01:18:38 +08:00
|
|
|
vlc.exe.manifest \
|
2003-03-26 07:32:00 +08:00
|
|
|
MAINTAINERS \
|
|
|
|
README.MacOSX.rtf \
|
|
|
|
bootstrap \
|
|
|
|
install-win32 \
|
|
|
|
src/extras/COPYING \
|
|
|
|
toolbox \
|
2003-06-27 21:50:13 +08:00
|
|
|
vlc-config.in.in \
|
2003-05-15 08:46:23 +08:00
|
|
|
vlc.ebuild \
|
2003-03-26 07:32:00 +08:00
|
|
|
vlc.spec \
|
2003-07-16 02:01:42 +08:00
|
|
|
vlc.spec.mdk \
|
2003-03-26 07:32:00 +08:00
|
|
|
$(NULL)
|
|
|
|
|
2002-09-30 19:05:42 +08:00
|
|
|
BUILT_SOURCES =
|
|
|
|
SUFFIXES =
|
|
|
|
|
|
|
|
# Tell aclocal to use -I m4. Wonder if it really works.
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2003-06-22 01:04:20 +08:00
|
|
|
# XXX: these flags could be set in configure.ac, but we set them here
|
2002-10-02 20:59:59 +08:00
|
|
|
# because old versions of automake don't support them in configure.ac.
|
2003-02-01 06:35:44 +08:00
|
|
|
AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
|
2002-10-02 20:59:59 +08:00
|
|
|
|
2002-09-30 19:05:42 +08:00
|
|
|
###############################################################################
|
|
|
|
# Headers
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
BUILT_SOURCES += \
|
|
|
|
include/vlc_symbols.h \
|
|
|
|
src/misc/modules_builtin.h \
|
2002-11-10 00:34:53 +08:00
|
|
|
src/misc/modules_plugin.h \
|
|
|
|
$(NULL)
|
2002-09-30 19:05:42 +08:00
|
|
|
|
|
|
|
pkgincludedir = $(includedir)/vlc
|
|
|
|
|
|
|
|
dist_pkginclude_HEADERS = \
|
|
|
|
include/vlc/vlc.h \
|
|
|
|
include/vlc/aout.h \
|
|
|
|
include/vlc/vout.h \
|
|
|
|
include/vlc/sout.h \
|
|
|
|
include/vlc/decoder.h \
|
|
|
|
include/vlc/input.h \
|
2002-11-10 00:34:53 +08:00
|
|
|
include/vlc/intf.h \
|
|
|
|
$(NULL)
|
2002-09-30 19:05:42 +08:00
|
|
|
|
2003-06-27 21:50:13 +08:00
|
|
|
noinst_HEADERS = $(HEADERS_include) $(HEADERS_include_built)
|
2002-09-30 19:05:42 +08:00
|
|
|
|
|
|
|
HEADERS_include = \
|
|
|
|
include/aout_internal.h \
|
|
|
|
include/audio_output.h \
|
|
|
|
include/beos_specific.h \
|
|
|
|
include/configuration.h \
|
|
|
|
include/darwin_specific.h \
|
2003-08-23 20:59:31 +08:00
|
|
|
include/charset.h \
|
2002-11-04 23:04:45 +08:00
|
|
|
include/codecs.h \
|
2003-08-01 08:00:12 +08:00
|
|
|
include/ninput.h \
|
2002-09-30 19:05:42 +08:00
|
|
|
include/input_ext-dec.h \
|
|
|
|
include/input_ext-intf.h \
|
|
|
|
include/input_ext-plugins.h \
|
|
|
|
include/intf_eject.h \
|
|
|
|
include/iso_lang.h \
|
2004-03-03 21:24:31 +08:00
|
|
|
include/vlc_httpd.h \
|
2002-09-30 19:05:42 +08:00
|
|
|
include/main.h \
|
|
|
|
include/mmx.h \
|
|
|
|
include/modules.h \
|
|
|
|
include/modules_inner.h \
|
|
|
|
include/mtime.h \
|
|
|
|
include/network.h \
|
|
|
|
include/os_specific.h \
|
|
|
|
include/stream_control.h \
|
|
|
|
include/stream_output.h \
|
Changes to the libvlc API:
* ./include/vlc/vlc.h: changed the naming conventions for libvlc. Now
exported functions start with VLC_ instead of vlc_ to avoid conflicts.
* ./include/vlc/vlc.h: removed the vlc_object_t, vlc_list_t, vlc_error_t
and vlc_t types; they are now internal types only.
* ./include/vlc/vlc.h: merged the reentrant and non-reentrant libvlc
calls. In non-reentrant mode, we just use 0 as the first argument. In
reentrant mode, we use an object's ID. (see below)
Internal changes:
* ./src/libvlc.c, ./src/misc/objects.c: instead of manipulating vlc_object_t
pointers, we manipulate their i_object_id. When needed, an object is
retrieved using vlc_object_get (I hope the lookup isn't too expensive,
that's why I designed the pp_objects layout to allow log2(n) seeks).
* ./src/misc/objects.c: activated the per-object variable storage. Unused
yet, unless you want to try "getfoo" and "setfoo blablah" in vlc -I rc.
* ./include/vlc_objects.h: moved the vlc_object_t and vlc_list_t definitions
here.
Misc:
* ./src/vlc.c, ./mozilla/vlcshell.cpp: removed inclusion of config.h in
code portions not part of libvlc; it was just required for the
COPYRIGHT_MESSAGE string which is now available from VLC_Version().
2002-10-12 06:32:56 +08:00
|
|
|
include/variables.h \
|
2002-09-30 19:05:42 +08:00
|
|
|
include/video_output.h \
|
2003-11-19 04:15:38 +08:00
|
|
|
include/vlc_bits.h \
|
2003-11-21 06:10:56 +08:00
|
|
|
include/vlc_block.h \
|
2003-10-08 00:54:53 +08:00
|
|
|
include/vlc_block_helper.h \
|
2003-10-09 05:01:07 +08:00
|
|
|
include/vlc_codec.h \
|
2002-09-30 19:05:42 +08:00
|
|
|
include/vlc_common.h \
|
|
|
|
include/vlc_config.h \
|
|
|
|
include/vlc_cpu.h \
|
2003-07-01 21:13:48 +08:00
|
|
|
include/vlc_error.h \
|
2003-11-21 06:10:56 +08:00
|
|
|
include/vlc_es.h \
|
2003-10-23 19:26:08 +08:00
|
|
|
include/vlc_help.h \
|
2003-06-24 23:50:47 +08:00
|
|
|
include/vlc_interface.h \
|
2003-10-18 02:45:20 +08:00
|
|
|
include/vlc_keys.h \
|
2002-09-30 19:05:42 +08:00
|
|
|
include/vlc_messages.h \
|
2004-01-31 17:52:22 +08:00
|
|
|
include/vlc_meta.h \
|
2004-03-21 20:29:31 +08:00
|
|
|
include/vlc_vlm.h \
|
2002-09-30 19:05:42 +08:00
|
|
|
include/vlc_objects.h \
|
|
|
|
include/vlc_playlist.h \
|
|
|
|
include/vlc_threads.h \
|
|
|
|
include/vlc_threads_funcs.h \
|
2003-06-26 20:19:59 +08:00
|
|
|
include/vlc_video.h \
|
2003-04-15 06:22:32 +08:00
|
|
|
include/vout_synchro.h \
|
2002-11-10 00:34:53 +08:00
|
|
|
include/win32_specific.h \
|
2003-03-24 00:38:40 +08:00
|
|
|
include/osd.h \
|
2002-11-10 00:34:53 +08:00
|
|
|
$(NULL)
|
2002-09-30 19:05:42 +08:00
|
|
|
|
|
|
|
HEADERS_include_built = \
|
2002-11-10 00:34:53 +08:00
|
|
|
include/vlc_symbols.h \
|
|
|
|
$(NULL)
|
2002-09-30 19:05:42 +08:00
|
|
|
|
|
|
|
include/vlc_symbols.h: Makefile $(HEADERS_include)
|
2003-07-08 21:09:30 +08:00
|
|
|
srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
|
2002-09-30 19:05:42 +08:00
|
|
|
|
|
|
|
src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include)
|
2003-07-08 21:09:30 +08:00
|
|
|
srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
|
2002-09-30 19:05:42 +08:00
|
|
|
|
|
|
|
src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in
|
2003-07-08 21:09:30 +08:00
|
|
|
srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
|
2002-09-30 19:05:42 +08:00
|
|
|
|
2002-10-02 20:59:59 +08:00
|
|
|
# These dependencies are mandatory
|
|
|
|
$(SOURCES): include/vlc_symbols.h
|
2002-10-16 23:10:39 +08:00
|
|
|
$(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
|
2002-10-02 20:59:59 +08:00
|
|
|
|
2002-10-16 23:10:39 +08:00
|
|
|
###############################################################################
|
|
|
|
# Optional libintl - FIXME, bad dependencies
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
intl/libintl.a: FORCE
|
2003-07-01 20:50:56 +08:00
|
|
|
cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
|
2002-10-16 23:10:39 +08:00
|
|
|
|
|
|
|
if BUILD_INTL
|
|
|
|
LIB_intl = intl/libintl.a
|
|
|
|
endif
|
|
|
|
|
2002-09-30 19:05:42 +08:00
|
|
|
###############################################################################
|
|
|
|
# MacOS X project
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
|
|
|
|
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
|
|
|
|
extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
|
|
|
|
extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
|
2003-04-06 23:43:02 +08:00
|
|
|
extras/MacOSX/Resources/English.lproj/vlc.scriptTerminology \
|
2003-05-15 08:46:23 +08:00
|
|
|
extras/MacOSX/Resources/a52.icns \
|
|
|
|
extras/MacOSX/Resources/aac.icns \
|
|
|
|
extras/MacOSX/Resources/asf.icns \
|
|
|
|
extras/MacOSX/Resources/asx.icns \
|
|
|
|
extras/MacOSX/Resources/avi.icns \
|
|
|
|
extras/MacOSX/Resources/bin.icns \
|
|
|
|
extras/MacOSX/Resources/cue.icns \
|
|
|
|
extras/MacOSX/Resources/dat.icns \
|
2002-09-30 19:05:42 +08:00
|
|
|
extras/MacOSX/Resources/divx.icns \
|
2003-05-15 08:46:23 +08:00
|
|
|
extras/MacOSX/Resources/dv.icns \
|
2002-09-30 19:05:42 +08:00
|
|
|
extras/MacOSX/Resources/generic.icns \
|
2003-05-15 08:46:23 +08:00
|
|
|
extras/MacOSX/Resources/m3u.icns \
|
|
|
|
extras/MacOSX/Resources/mov.icns \
|
|
|
|
extras/MacOSX/Resources/mp3.icns \
|
|
|
|
extras/MacOSX/Resources/mp4.icns \
|
2002-09-30 19:05:42 +08:00
|
|
|
extras/MacOSX/Resources/mpeg.icns \
|
|
|
|
extras/MacOSX/Resources/mpeg1.icns \
|
|
|
|
extras/MacOSX/Resources/mpeg2.icns \
|
|
|
|
extras/MacOSX/Resources/mpeg4.icns \
|
2003-05-15 08:46:23 +08:00
|
|
|
extras/MacOSX/Resources/mpg.icns \
|
|
|
|
extras/MacOSX/Resources/ogg.icns \
|
|
|
|
extras/MacOSX/Resources/ogm.icns \
|
|
|
|
extras/MacOSX/Resources/pls.icns \
|
|
|
|
extras/MacOSX/Resources/srt.icns \
|
|
|
|
extras/MacOSX/Resources/sub.icns \
|
2002-09-30 19:05:42 +08:00
|
|
|
extras/MacOSX/Resources/vlc.icns \
|
2003-05-15 08:46:23 +08:00
|
|
|
extras/MacOSX/Resources/vob.icns \
|
|
|
|
extras/MacOSX/Resources/wma.icns \
|
|
|
|
extras/MacOSX/Resources/wmv.icns \
|
2002-09-30 19:05:42 +08:00
|
|
|
extras/MacOSX/Resources/pause.png \
|
2003-11-17 14:31:22 +08:00
|
|
|
extras/MacOSX/Resources/pause_blue.png \
|
2002-09-30 19:05:42 +08:00
|
|
|
extras/MacOSX/Resources/play.png \
|
2003-11-17 14:31:22 +08:00
|
|
|
extras/MacOSX/Resources/play_blue.png \
|
2002-09-30 19:05:42 +08:00
|
|
|
extras/MacOSX/Resources/stop.png \
|
2003-11-17 14:31:22 +08:00
|
|
|
extras/MacOSX/Resources/stop_blue.png \
|
|
|
|
extras/MacOSX/Resources/display.png \
|
|
|
|
extras/MacOSX/Resources/display_slider.png \
|
|
|
|
extras/MacOSX/Resources/display_track.png \
|
|
|
|
extras/MacOSX/Resources/fullscreen_active.png \
|
|
|
|
extras/MacOSX/Resources/fullscreen_blue.png \
|
|
|
|
extras/MacOSX/Resources/next_active.png \
|
|
|
|
extras/MacOSX/Resources/next_blue.png \
|
|
|
|
extras/MacOSX/Resources/playlistdrawer_active.png \
|
|
|
|
extras/MacOSX/Resources/playlistdrawer_blue.png \
|
|
|
|
extras/MacOSX/Resources/previous_active.png \
|
|
|
|
extras/MacOSX/Resources/previous_blue.png \
|
|
|
|
extras/MacOSX/Resources/skip_forward_active.png \
|
|
|
|
extras/MacOSX/Resources/skip_forward_blue.png \
|
|
|
|
extras/MacOSX/Resources/skip_previous_active.png \
|
|
|
|
extras/MacOSX/Resources/skip_previous_blue.png \
|
|
|
|
extras/MacOSX/Resources/volume_high.png \
|
|
|
|
extras/MacOSX/Resources/volume_low.png \
|
|
|
|
extras/MacOSX/Resources/volumeslider_blue.png \
|
|
|
|
extras/MacOSX/Resources/volumeslider_normal.png \
|
|
|
|
extras/MacOSX/Resources/volumetrack.png \
|
2003-04-10 04:53:28 +08:00
|
|
|
extras/MacOSX/Resources/about_bg.png \
|
2003-03-25 03:58:42 +08:00
|
|
|
extras/MacOSX/Resources/vlc.scriptSuite \
|
2003-04-06 23:43:02 +08:00
|
|
|
extras/MacOSX/Resources/README \
|
2002-11-10 00:34:53 +08:00
|
|
|
extras/MacOSX/vlc.pbproj/project.pbxproj \
|
2003-03-25 03:58:42 +08:00
|
|
|
extras/MacOSX/macosx-dmg \
|
2002-11-10 00:34:53 +08:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
###############################################################################
|
2002-11-13 23:28:24 +08:00
|
|
|
# MS Visual Studio and eMbedded Visual Studio projects
|
2002-11-10 00:34:53 +08:00
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
msvc/vlc.dsw \
|
2002-11-14 04:51:05 +08:00
|
|
|
msvc/libvlc.dsp.in \
|
|
|
|
msvc/plugins.dsp.in \
|
2002-12-13 18:09:14 +08:00
|
|
|
msvc/vlc.dsp.in \
|
2003-01-17 07:37:59 +08:00
|
|
|
msvc/config.h.in \
|
2002-11-10 00:34:53 +08:00
|
|
|
msvc/modules_builtin_msvc.h \
|
2002-11-13 23:28:24 +08:00
|
|
|
evc/vlc.vcw \
|
2002-11-14 04:51:05 +08:00
|
|
|
evc/libvlc.vcp.in \
|
2002-11-13 23:28:24 +08:00
|
|
|
evc/vlc.vcp.in \
|
2002-11-14 04:51:05 +08:00
|
|
|
evc/plugins.vcp.in \
|
2002-12-13 18:09:14 +08:00
|
|
|
evc/vlc.c \
|
2003-01-17 07:37:59 +08:00
|
|
|
evc/config.h.in \
|
2002-11-14 04:51:05 +08:00
|
|
|
evc/modules_builtin_evc.h \
|
2002-11-10 00:34:53 +08:00
|
|
|
$(NULL)
|
|
|
|
|
2003-04-25 00:13:38 +08:00
|
|
|
dist-hook:
|
2004-04-26 21:14:57 +08:00
|
|
|
cp $(distdir)/vlc.ebuild $(distdir)/vlc-${VERSION}.ebuild
|
2003-07-08 21:09:30 +08:00
|
|
|
cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc
|
2003-04-25 00:13:38 +08:00
|
|
|
|
2002-09-30 19:05:42 +08:00
|
|
|
###############################################################################
|
|
|
|
# Building libvlc
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
bin_SCRIPTS = vlc-config
|
|
|
|
|
2003-06-27 21:50:13 +08:00
|
|
|
lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
|
2002-09-30 19:05:42 +08:00
|
|
|
|
|
|
|
lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
|
2003-04-25 00:13:38 +08:00
|
|
|
dist_lib_libvlc_a_SOURCES = src/misc/modules_plugin.h
|
2003-06-27 21:50:13 +08:00
|
|
|
lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
|
|
|
|
lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
|
|
|
|
lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
|
2002-09-30 19:05:42 +08:00
|
|
|
|
|
|
|
lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
|
2003-06-27 21:50:13 +08:00
|
|
|
lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
|
|
|
|
lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
|
|
|
|
lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
|
2002-09-30 19:05:42 +08:00
|
|
|
|
|
|
|
if HAVE_BEOS
|
2002-11-11 02:04:24 +08:00
|
|
|
OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
|
2002-09-30 19:05:42 +08:00
|
|
|
endif
|
|
|
|
if HAVE_DARWIN
|
2002-11-11 02:04:24 +08:00
|
|
|
OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
|
2002-09-30 19:05:42 +08:00
|
|
|
endif
|
|
|
|
if HAVE_WIN32
|
2002-11-11 02:04:24 +08:00
|
|
|
OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
|
2002-11-10 00:34:53 +08:00
|
|
|
endif
|
|
|
|
if BUILD_DIRENT
|
2002-11-11 02:04:24 +08:00
|
|
|
OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
|
2002-11-10 00:34:53 +08:00
|
|
|
endif
|
|
|
|
if BUILD_GETOPT
|
2002-11-11 02:04:24 +08:00
|
|
|
OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
|
2002-11-10 00:34:53 +08:00
|
|
|
endif
|
2002-09-30 19:05:42 +08:00
|
|
|
if BUILD_MOZILLA
|
2003-10-20 18:37:56 +08:00
|
|
|
if !HAVE_WIN32
|
2002-09-30 19:05:42 +08:00
|
|
|
LIBRARIES_libvlc_pic = lib/libvlc_pic.a
|
|
|
|
endif
|
2003-10-20 18:37:56 +08:00
|
|
|
endif
|
2002-09-30 19:05:42 +08:00
|
|
|
|
|
|
|
EXTRA_DIST += \
|
2002-11-11 02:04:24 +08:00
|
|
|
$(SOURCES_libvlc_beos) \
|
|
|
|
$(SOURCES_libvlc_darwin) \
|
|
|
|
$(SOURCES_libvlc_win32) \
|
|
|
|
$(SOURCES_libvlc_dirent) \
|
|
|
|
$(SOURCES_libvlc_getopt) \
|
2002-11-10 00:34:53 +08:00
|
|
|
$(NULL)
|
|
|
|
|
2002-11-11 02:04:24 +08:00
|
|
|
SOURCES_libvlc_beos = \
|
2002-09-30 19:05:42 +08:00
|
|
|
src/misc/beos_specific.cpp \
|
2002-11-10 00:34:53 +08:00
|
|
|
$(NULL)
|
|
|
|
|
2002-11-11 02:04:24 +08:00
|
|
|
SOURCES_libvlc_darwin = \
|
2002-12-30 16:56:19 +08:00
|
|
|
src/misc/darwin_specific.m \
|
2002-11-10 00:34:53 +08:00
|
|
|
$(NULL)
|
|
|
|
|
2002-11-11 02:04:24 +08:00
|
|
|
SOURCES_libvlc_win32 = \
|
2002-11-10 00:34:53 +08:00
|
|
|
src/misc/win32_specific.c \
|
|
|
|
$(NULL)
|
|
|
|
|
2002-11-11 02:04:24 +08:00
|
|
|
SOURCES_libvlc_dirent = \
|
2002-11-10 00:34:53 +08:00
|
|
|
src/extras/dirent.c \
|
|
|
|
src/extras/dirent.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2002-11-11 02:04:24 +08:00
|
|
|
SOURCES_libvlc_getopt = \
|
2002-11-10 00:34:53 +08:00
|
|
|
src/extras/getopt.c \
|
|
|
|
src/extras/getopt.h \
|
|
|
|
src/extras/getopt1.c \
|
|
|
|
$(NULL)
|
|
|
|
|
2002-11-11 02:04:24 +08:00
|
|
|
SOURCES_libvlc_common = \
|
2002-09-30 19:05:42 +08:00
|
|
|
src/libvlc.c \
|
|
|
|
src/libvlc.h \
|
|
|
|
src/interface/interface.c \
|
|
|
|
src/interface/intf_eject.c \
|
|
|
|
src/playlist/playlist.c \
|
* src/playlist/* && Makefile.am
- splitted the enormous playlist.c file
- implemented a better item group system: groups have a name
and must be created before use by
playlist_CreateGroup( p_playlist, "newgroupname")
* modules/misc/sap.c
- Create our own playlist group ("SAP") and use it
* modules/access/slp.c
- Create our own playlist group ("SLP") and use it
* modules/demux/util/id3tag.c
- Trigger playlist update when we have parsed our tag
* modules/gui/wxwindows/interface.cpp
- Fixed the about box by using vlc_wraptext
- Added the simple open and the streaming wizard icons
*** Icons need to be changed ! ***
- Added the visualization to the extended gui
* modules/gui/wxwindows/preferences.cpp && include/vlc_help.h
- Enlarged the window to fit the wrapped text
- Added help for audio encoders
* modules/gui/wxwindows/stream.cpp & open.cpp & include/vlc_interface.h
- Created a "streaming wizard" window (3-step streaming)
* modules/gui/wxwindows/iteminfo.cpp:
- Group change is now based on the name
* modules/gui/wxwindows/playlist.cpp
- Added author and group columns to the listview
- Redesigned the window
- Added the Sort menu with several criteria (title, author, group)
- Added up/down buttons to move an item in the playlist
- Added the group menu to enable/disable a group in an understandable way
TODO:
-----
* playlist core :
- Implement advanced sort capabilities (multi-criteria)
- File format to save the new features
- export playlist (to M3U, eg)
- more robust group creation (duplicates check, ...)
* wxWindows playlist:
The idea of a treeview seems impossible, because of wxWindow's treeview,
that don't allow multi-selection, and, as far as I know, multi-columns.
- Provide a frontend to advanced sort (when it's done :-) )
- Allow moving items by drag & drop (well, if possible, haven't checked yet)
- Allow moving several items at once
- Customizable listview (ability to remove/move columns)
- Find a solution to the focus problem
(when you change track, the selected one scrolls at the
bottom of the visible screen)
* wxWindows interface:
- New icons, our icons begin to get old and not so pretty
- Find a solution for the volume bar (nobody understands what it is)
2003-10-30 01:32:55 +08:00
|
|
|
src/playlist/sort.c \
|
|
|
|
src/playlist/loadsave.c \
|
|
|
|
src/playlist/group.c \
|
|
|
|
src/playlist/item.c \
|
2004-01-05 20:59:43 +08:00
|
|
|
src/playlist/item-ext.c \
|
2004-01-09 20:23:47 +08:00
|
|
|
src/playlist/info.c \
|
2002-09-30 19:05:42 +08:00
|
|
|
src/input/input.c \
|
2004-03-24 07:44:49 +08:00
|
|
|
src/input/control.c \
|
2003-11-25 04:50:45 +08:00
|
|
|
src/input/es_out.c \
|
2003-08-01 08:00:12 +08:00
|
|
|
src/input/stream.c \
|
2003-08-03 00:43:59 +08:00
|
|
|
src/input/demux.c \
|
2003-09-22 11:40:06 +08:00
|
|
|
src/input/subtitles.c \
|
2003-11-24 08:39:02 +08:00
|
|
|
src/input/input_ext-plugins.c \
|
2002-09-30 19:05:42 +08:00
|
|
|
src/input/input_ext-intf.c \
|
|
|
|
src/input/input_dec.c \
|
|
|
|
src/input/input_programs.c \
|
|
|
|
src/input/input_clock.c \
|
|
|
|
src/video_output/video_output.c \
|
|
|
|
src/video_output/vout_pictures.c \
|
|
|
|
src/video_output/vout_pictures.h \
|
|
|
|
src/video_output/video_text.c \
|
|
|
|
src/video_output/vout_subpictures.c \
|
2003-04-15 06:22:32 +08:00
|
|
|
src/video_output/vout_synchro.c \
|
2004-03-24 07:44:49 +08:00
|
|
|
src/video_output/vout_intf.c \
|
2002-09-30 19:05:42 +08:00
|
|
|
src/audio_output/common.c \
|
|
|
|
src/audio_output/dec.c \
|
|
|
|
src/audio_output/filters.c \
|
|
|
|
src/audio_output/input.c \
|
|
|
|
src/audio_output/mixer.c \
|
|
|
|
src/audio_output/output.c \
|
|
|
|
src/audio_output/intf.c \
|
|
|
|
src/stream_output/stream_output.c \
|
* ALL: Better announce system
- The SAP handler now runs in a separate thread.
- RTP sessions can be announced with sap (sdp=sap://,name=...)
TODO: Make this more configurable
- Better SDP generation (the timestamp problem is not resolved)
About this, there is a problem : as, for a RTP session, the URI
is the complete SDP, if the session is recreated, as the URI has
changed, a new item is added to the playlist
- Experimental flow control algorithm :
It does not follow the "Recommended" implementation, as it needs
to count the sessions (to achieve this, we should make this work
together with the SAP listener)
It is disabled by default (use --sap-flow-control to enable).
When it is disabled, sap announcement interval is set by --sap-interval
* src/misc/net.c : created net_ReadNonBlock
* sap.c : Fixed memory problem
2004-04-19 02:21:09 +08:00
|
|
|
src/stream_output/announce.c \
|
|
|
|
src/stream_output/sap.c \
|
2003-08-23 20:59:31 +08:00
|
|
|
src/misc/charset.c \
|
2004-03-03 21:24:31 +08:00
|
|
|
src/misc/httpd.c \
|
2002-09-30 19:05:42 +08:00
|
|
|
src/misc/mtime.c \
|
2003-08-24 06:49:50 +08:00
|
|
|
src/misc/block.c \
|
2002-09-30 19:05:42 +08:00
|
|
|
src/misc/modules.c \
|
|
|
|
src/misc/threads.c \
|
|
|
|
src/misc/cpu.c \
|
|
|
|
src/misc/configuration.c \
|
|
|
|
src/misc/iso_lang.c \
|
2002-11-11 02:04:24 +08:00
|
|
|
src/misc/iso-639_def.h \
|
2002-09-30 19:05:42 +08:00
|
|
|
src/misc/messages.c \
|
|
|
|
src/misc/objects.c \
|
Changes to the libvlc API:
* ./include/vlc/vlc.h: changed the naming conventions for libvlc. Now
exported functions start with VLC_ instead of vlc_ to avoid conflicts.
* ./include/vlc/vlc.h: removed the vlc_object_t, vlc_list_t, vlc_error_t
and vlc_t types; they are now internal types only.
* ./include/vlc/vlc.h: merged the reentrant and non-reentrant libvlc
calls. In non-reentrant mode, we just use 0 as the first argument. In
reentrant mode, we use an object's ID. (see below)
Internal changes:
* ./src/libvlc.c, ./src/misc/objects.c: instead of manipulating vlc_object_t
pointers, we manipulate their i_object_id. When needed, an object is
retrieved using vlc_object_get (I hope the lookup isn't too expensive,
that's why I designed the pp_objects layout to allow log2(n) seeks).
* ./src/misc/objects.c: activated the per-object variable storage. Unused
yet, unless you want to try "getfoo" and "setfoo blablah" in vlc -I rc.
* ./include/vlc_objects.h: moved the vlc_object_t and vlc_list_t definitions
here.
Misc:
* ./src/vlc.c, ./mozilla/vlcshell.cpp: removed inclusion of config.h in
code portions not part of libvlc; it was just required for the
COPYRIGHT_MESSAGE string which is now available from VLC_Version().
2002-10-12 06:32:56 +08:00
|
|
|
src/misc/variables.c \
|
2002-10-15 00:46:56 +08:00
|
|
|
src/misc/error.c \
|
2004-01-05 22:10:58 +08:00
|
|
|
src/misc/net.c \
|
2004-03-21 23:09:21 +08:00
|
|
|
src/misc/vlm.c \
|
2002-12-27 23:31:56 +08:00
|
|
|
src/extras/libc.c \
|
2002-11-11 02:04:24 +08:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
SOURCES_libvlc = \
|
|
|
|
$(SOURCES_libvlc_common) \
|
|
|
|
$(OPT_SOURCES_libvlc_beos) \
|
|
|
|
$(OPT_SOURCES_libvlc_darwin) \
|
|
|
|
$(OPT_SOURCES_libvlc_win32) \
|
|
|
|
$(OPT_SOURCES_libvlc_dirent) \
|
|
|
|
$(OPT_SOURCES_libvlc_getopt) \
|
2002-11-10 00:34:53 +08:00
|
|
|
$(NULL)
|
2002-09-30 19:05:42 +08:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Building vlc
|
|
|
|
###############################################################################
|
|
|
|
|
2003-06-27 21:50:13 +08:00
|
|
|
bin_PROGRAMS = vlc
|
2002-09-30 19:05:42 +08:00
|
|
|
|
2002-11-10 00:34:53 +08:00
|
|
|
vlc_SOURCES = src/vlc.c
|
2002-09-30 19:05:42 +08:00
|
|
|
|
2003-06-27 21:50:13 +08:00
|
|
|
vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin`
|
|
|
|
vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
|
|
|
|
vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
|
2002-09-30 19:05:42 +08:00
|
|
|
|
2002-10-02 21:26:14 +08:00
|
|
|
# We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
|
|
|
|
# old automake-1.5 bug (automake/279).
|
2003-07-01 20:50:56 +08:00
|
|
|
DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
|
2002-10-02 21:26:14 +08:00
|
|
|
|
2003-07-03 10:56:35 +08:00
|
|
|
vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
|
|
|
|
@rm -f $(top_builddir)/vlc$(EXEEXT)
|
2003-07-03 19:23:09 +08:00
|
|
|
@case `$(VLC_CONFIG) --linkage vlc builtin` in \
|
|
|
|
c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
|
|
|
|
objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
|
|
|
|
c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
|
2003-06-27 21:50:13 +08:00
|
|
|
esac
|
2003-04-18 23:25:51 +08:00
|
|
|
|
2002-09-30 19:05:42 +08:00
|
|
|
if HAVE_BEOS
|
2003-05-24 20:35:06 +08:00
|
|
|
xres -o $@ $(srcdir)/share/vlc_beos.rsrc
|
2002-09-30 19:05:42 +08:00
|
|
|
mimeset -f $@
|
2003-06-28 00:26:02 +08:00
|
|
|
rm -Rf $(srcdir)/locale ; mkdir -p "$(srcdir)/locale"
|
2003-04-18 23:25:51 +08:00
|
|
|
for i in $(ALL_LINGUAS); do \
|
2003-06-28 00:26:02 +08:00
|
|
|
mkdir -p "$(srcdir)/locale/$${i}/LC_MESSAGES" ; \
|
|
|
|
cp "$(srcdir)/po/$${i}.gmo" \
|
|
|
|
"$(srcdir)/locale/$${i}/LC_MESSAGES/vlc.mo" || true ; \
|
2003-04-18 23:25:51 +08:00
|
|
|
done
|
2002-09-30 19:05:42 +08:00
|
|
|
endif
|
|
|
|
|
2003-06-27 21:50:13 +08:00
|
|
|
# Install the modules and the symlinks
|
2002-09-30 19:05:42 +08:00
|
|
|
install-exec-local:
|
2003-06-28 21:04:52 +08:00
|
|
|
for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
|
2003-07-19 19:29:20 +08:00
|
|
|
echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
|
|
|
|
$(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
|
2003-06-27 21:50:13 +08:00
|
|
|
fi ; done
|
2003-07-08 02:14:17 +08:00
|
|
|
for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
|
2003-07-03 17:37:46 +08:00
|
|
|
echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
|
2003-07-02 02:28:43 +08:00
|
|
|
$(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
|
2003-06-27 21:50:13 +08:00
|
|
|
fi ; done
|
2003-07-08 02:14:17 +08:00
|
|
|
if BUILD_MOZILLA
|
|
|
|
for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
|
|
|
|
echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
|
|
|
|
$(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
|
|
|
|
fi ; done
|
|
|
|
endif
|
2003-06-28 00:26:02 +08:00
|
|
|
for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
|
2003-06-27 21:50:13 +08:00
|
|
|
rm -f "$(DESTDIR)$(bindir)/$$i" && \
|
|
|
|
ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
|
2002-09-30 19:05:42 +08:00
|
|
|
fi ; done
|
|
|
|
|
|
|
|
if HAVE_DARWIN
|
|
|
|
# Create the MacOS X app
|
2003-02-11 23:35:29 +08:00
|
|
|
vlc_app_DATA = VLC.app
|
2002-09-30 19:05:42 +08:00
|
|
|
vlc_appdir = $(bindir)
|
2003-07-01 20:50:56 +08:00
|
|
|
VLC.app: vlc
|
2003-08-24 08:29:03 +08:00
|
|
|
@if test -e "$(top_builddir)/tmp"; then \
|
|
|
|
echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
|
|
|
|
false; \
|
|
|
|
else \
|
|
|
|
echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
|
|
|
|
fi
|
|
|
|
rm -Rf $(top_builddir)/VLC.app
|
|
|
|
cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
|
|
|
|
for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
|
|
|
|
cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
|
|
|
|
done
|
|
|
|
mkdir -p $(top_builddir)/tmp/modules/audio_output
|
|
|
|
cp $(srcdir)/modules/audio_output/coreaudio.c \
|
|
|
|
$(top_builddir)/tmp/modules/audio_output/coreaudio.c
|
|
|
|
mkdir -p $(top_builddir)/tmp/modules/gui/macosx
|
|
|
|
for i in \
|
|
|
|
about.h \
|
|
|
|
about.m \
|
|
|
|
applescript.h \
|
|
|
|
applescript.m \
|
|
|
|
controls.h \
|
|
|
|
controls.m \
|
|
|
|
info.h \
|
|
|
|
info.m \
|
|
|
|
intf.h \
|
|
|
|
intf.m \
|
|
|
|
macosx.m \
|
|
|
|
misc.h \
|
|
|
|
misc.m \
|
|
|
|
open.h \
|
|
|
|
open.m \
|
|
|
|
output.h \
|
|
|
|
output.m \
|
|
|
|
playlist.h \
|
|
|
|
playlist.m \
|
2004-04-30 02:32:58 +08:00
|
|
|
playlistinfo.h \
|
|
|
|
playlistinfo.m \
|
2004-02-06 05:01:44 +08:00
|
|
|
prefs_widgets.h \
|
|
|
|
prefs_widgets.m \
|
2003-08-24 08:29:03 +08:00
|
|
|
prefs.h \
|
|
|
|
prefs.m \
|
|
|
|
vout.h \
|
|
|
|
vout.m; do \
|
|
|
|
cp "$(srcdir)/modules/gui/macosx/$$i" \
|
|
|
|
$(top_builddir)/tmp/modules/gui/macosx; \
|
|
|
|
done
|
2003-11-03 23:27:28 +08:00
|
|
|
cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
|
2003-08-24 08:29:03 +08:00
|
|
|
cp -r $(top_builddir)/tmp/extras/MacOSX/build/vlc.bundle \
|
|
|
|
$(top_builddir)/VLC.app
|
|
|
|
rm -Rf $(top_builddir)/tmp
|
|
|
|
$(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
|
|
|
|
$(INSTALL) $(top_builddir)/vlc \
|
|
|
|
$(top_builddir)/VLC.app/Contents/MacOS/VLC
|
|
|
|
$(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
|
2003-06-28 21:04:52 +08:00
|
|
|
for i in "" `$(VLC_CONFIG) --target plugin` ; do \
|
2003-08-24 08:29:03 +08:00
|
|
|
if test -n "$$i" ; \
|
|
|
|
then $(INSTALL) "$$i$(LIBEXT)" \
|
|
|
|
"$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
|
2003-06-27 21:50:13 +08:00
|
|
|
fi ; done
|
2003-11-15 09:21:48 +08:00
|
|
|
if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
|
2003-11-23 21:06:43 +08:00
|
|
|
mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
|
|
|
|
for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
|
2003-12-19 00:29:47 +08:00
|
|
|
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
|
2003-11-23 21:06:43 +08:00
|
|
|
done ; \
|
2003-11-15 09:21:48 +08:00
|
|
|
fi
|
2003-08-24 08:29:03 +08:00
|
|
|
$(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share
|
|
|
|
$(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http
|
2003-12-19 00:29:47 +08:00
|
|
|
for i in $(srcdir)/share/http/* ; do \
|
|
|
|
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/`basename $${i}` ; \
|
|
|
|
done ; \
|
2004-04-20 09:00:29 +08:00
|
|
|
$(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/vlm
|
|
|
|
for i in $(srcdir)/share/http/vlm/* ; do \
|
|
|
|
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
|
|
|
|
done ; \
|
2003-08-24 08:29:03 +08:00
|
|
|
$(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin
|
2003-12-19 00:29:47 +08:00
|
|
|
for i in $(srcdir)/share/http/admin/* ; do \
|
|
|
|
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
|
|
|
|
done ; \
|
2004-05-06 05:53:07 +08:00
|
|
|
$(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/.access
|
2003-08-24 08:29:03 +08:00
|
|
|
$(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
|
2003-03-21 15:54:24 +08:00
|
|
|
for i in $(ALL_LINGUAS); do \
|
2003-08-24 08:29:03 +08:00
|
|
|
mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
|
|
|
|
cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
|
|
|
|
mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
|
|
|
|
ln -sf ../English.lproj/InfoPlist.strings \
|
|
|
|
$(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
|
|
|
|
ln -sf ../English.lproj/MainMenu.nib \
|
|
|
|
$(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
|
|
|
|
ln -sf ../English.lproj/vlc.scriptTerminology \
|
|
|
|
$(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
|
2002-12-27 08:17:49 +08:00
|
|
|
done
|
2003-08-24 08:29:03 +08:00
|
|
|
printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
|
2002-09-30 19:05:42 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_WIN32
|
2002-10-02 20:59:59 +08:00
|
|
|
DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
|
2002-09-30 19:05:42 +08:00
|
|
|
noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
|
|
|
|
noinst_share_vlc_win32_rcdir = $(libdir)
|
|
|
|
share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
|
2003-07-07 00:35:38 +08:00
|
|
|
$(WINDRES) -DVERSION=$(VERSION) -DVERSION_NUMBER=`echo $(VERSION).0.0.0 | sed 's/\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\).*/\1,\2,\3,\4/'` --include-dir $(srcdir)/share -i $< -o $@
|
2002-09-30 19:05:42 +08:00
|
|
|
endif
|
|
|
|
|
2003-07-05 22:47:53 +08:00
|
|
|
###############################################################################
|
|
|
|
# Building specific source packages
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
dist-woody: distdir
|
|
|
|
$(remove_distdir_woody)
|
|
|
|
mv $(distdir) $(PACKAGE)-woody-$(VERSION)
|
|
|
|
$(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
|
|
|
|
$(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
|
|
|
|
| GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
|
|
|
|
$(remove_distdir_woody)
|
|
|
|
|
|
|
|
remove_distdir_woody = \
|
|
|
|
{ test ! -d $(PACKAGE)-woody-$(VERSION) \
|
|
|
|
|| { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
|
|
|
|
-exec chmod u+w {} ';' \
|
|
|
|
&& rm -fr $(PACKAGE)-woody-$(VERSION); }; }
|
|
|
|
|
2002-12-26 05:02:35 +08:00
|
|
|
###############################################################################
|
|
|
|
# Building architecture-specific binary packages
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
# XXX: this rule is probably only useful to you if you have exactly
|
|
|
|
# the same setup as me. Contact sam@zoy.org if you need to use it.
|
|
|
|
#
|
|
|
|
# Check that tmp isn't in the way
|
2003-08-29 01:46:34 +08:00
|
|
|
package-win32-base:
|
|
|
|
@if test -e "$(srcdir)/vlc-${VERSION}"; then \
|
|
|
|
echo "Error: please remove $(srcdir)/vlc-${VERSION}, it is in the way"; \
|
2003-06-28 00:26:02 +08:00
|
|
|
false; \
|
2002-12-26 05:02:35 +08:00
|
|
|
else \
|
2003-08-29 01:46:34 +08:00
|
|
|
echo "OK."; mkdir -p "$(srcdir)/vlc-${VERSION}"; \
|
2002-12-26 05:02:35 +08:00
|
|
|
fi
|
|
|
|
# Create installation script
|
2003-08-29 01:46:34 +08:00
|
|
|
cp "$(srcdir)/install-win32" "$(srcdir)/vlc-${VERSION}/nsi"
|
2002-12-26 05:02:35 +08:00
|
|
|
# Copy relevant files
|
2003-08-29 01:46:34 +08:00
|
|
|
cp "$(top_builddir)/vlc$(EXEEXT)" "$(srcdir)/vlc-${VERSION}/"
|
2003-12-21 06:57:36 +08:00
|
|
|
cp "$(top_builddir)/vlc$(EXEEXT).manifest" "$(srcdir)/vlc-${VERSION}/"
|
2003-08-29 01:46:34 +08:00
|
|
|
$(STRIP) "$(srcdir)/vlc-${VERSION}/vlc$(EXEEXT)"
|
2004-04-28 21:01:14 +08:00
|
|
|
@if test -n "$(UPX)"; then \
|
|
|
|
$(UPX) -9 "$(srcdir)/vlc-${VERSION}/vlc$(EXEEXT)"; fi ;
|
|
|
|
|
2003-02-27 03:39:43 +08:00
|
|
|
for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
|
2003-08-29 01:46:34 +08:00
|
|
|
do cp "$(srcdir)/$$file" "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; \
|
|
|
|
unix2dos "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; done
|
2003-02-27 03:39:43 +08:00
|
|
|
|
2003-08-29 01:46:34 +08:00
|
|
|
mkdir -p "$(srcdir)/vlc-${VERSION}/plugins"
|
2003-06-28 21:04:52 +08:00
|
|
|
for i in "" `$(VLC_CONFIG) --target plugin` ; do \
|
2003-06-28 00:26:02 +08:00
|
|
|
if test -n "$$i" ; then \
|
2003-08-29 02:44:51 +08:00
|
|
|
$(INSTALL) "$(srcdir)/$$i$(LIBEXT)" \
|
|
|
|
"$(srcdir)/vlc-${VERSION}/plugins/" ; \
|
2003-06-27 21:50:13 +08:00
|
|
|
fi ; done
|
2003-02-27 03:39:43 +08:00
|
|
|
|
2003-08-29 01:46:34 +08:00
|
|
|
for i in "" $(srcdir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
|
2004-04-28 21:01:14 +08:00
|
|
|
do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; \
|
|
|
|
if test -n "$(UPX)" -a -n "$$i"; then $(UPX) -9 "$$i"; fi ; \
|
|
|
|
done
|
2003-04-07 01:14:43 +08:00
|
|
|
|
2003-08-29 01:46:34 +08:00
|
|
|
mkdir $(srcdir)/vlc-${VERSION}/locale
|
2003-02-27 03:39:43 +08:00
|
|
|
for i in $(ALL_LINGUAS); do \
|
2003-08-29 01:46:34 +08:00
|
|
|
mkdir -p "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
|
2003-06-28 00:26:02 +08:00
|
|
|
cp "$(srcdir)/po/$${i}.gmo" \
|
2003-08-29 01:46:34 +08:00
|
|
|
"$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
|
|
|
|
|| true ; \
|
2003-02-27 03:39:43 +08:00
|
|
|
done
|
|
|
|
|
2003-08-29 01:46:34 +08:00
|
|
|
mkdir -p $(srcdir)/vlc-${VERSION}/skins/default
|
2003-05-24 20:35:06 +08:00
|
|
|
for i in $(srcdir)/share/skins/default/*.*; do \
|
2003-08-29 01:46:34 +08:00
|
|
|
cp $$i $(srcdir)/vlc-${VERSION}/skins/default/ || true ; \
|
2003-04-07 01:14:43 +08:00
|
|
|
done
|
2003-05-24 20:35:06 +08:00
|
|
|
for i in $(srcdir)/doc/skins/*.txt; do \
|
2003-08-29 01:46:34 +08:00
|
|
|
cp $$i $(srcdir)/vlc-${VERSION}/skins/ || true ; \
|
2003-04-07 01:14:43 +08:00
|
|
|
done
|
2004-03-23 04:54:35 +08:00
|
|
|
mkdir -p $(srcdir)/vlc-${VERSION}/skins2/fonts
|
|
|
|
for i in $(srcdir)/share/skins2/fonts/*.*; do \
|
|
|
|
cp $$i $(srcdir)/vlc-${VERSION}/skins2/fonts/ || true ; \
|
|
|
|
done
|
2004-03-02 03:41:42 +08:00
|
|
|
mkdir -p $(srcdir)/vlc-${VERSION}/skins2/default
|
2004-03-23 04:54:35 +08:00
|
|
|
for i in $(srcdir)/share/skins2/default/*.*; do \
|
2004-03-02 03:41:42 +08:00
|
|
|
cp $$i $(srcdir)/vlc-${VERSION}/skins2/default/ || true ; \
|
|
|
|
done
|
2004-04-30 23:30:43 +08:00
|
|
|
for i in $(srcdir)/share/skins2/*.*; do \
|
|
|
|
cp $$i $(srcdir)/vlc-${VERSION}/skins2/ || true ; \
|
|
|
|
done
|
2003-04-07 01:14:43 +08:00
|
|
|
|
2003-08-29 02:44:51 +08:00
|
|
|
mkdir -p "$(srcdir)/vlc-${VERSION}/http/admin"
|
2004-05-06 16:14:03 +08:00
|
|
|
mkdir -p "$(srcdir)/vlc-${VERSION}/http/vlm"
|
2003-08-29 01:46:34 +08:00
|
|
|
cp $(srcdir)/share/http/*.html $(srcdir)/vlc-${VERSION}/http/ ;
|
2003-11-03 05:26:41 +08:00
|
|
|
cp $(srcdir)/share/http/*.css $(srcdir)/vlc-${VERSION}/http/ ;
|
2003-08-29 01:46:34 +08:00
|
|
|
cp $(srcdir)/share/http/admin/*.html \
|
|
|
|
$(srcdir)/vlc-${VERSION}/http/admin/ ;
|
|
|
|
cp $(srcdir)/share/http/admin/.access \
|
|
|
|
$(srcdir)/vlc-${VERSION}/http/admin/ ;
|
2004-05-06 16:14:03 +08:00
|
|
|
cp $(srcdir)/share/http/vlm/*.html \
|
|
|
|
$(srcdir)/vlc-${VERSION}/http/vlm/ ;
|
2003-08-29 01:46:34 +08:00
|
|
|
|
2003-10-21 05:48:46 +08:00
|
|
|
mkdir -p "$(srcdir)/vlc-${VERSION}/mozilla"
|
|
|
|
if BUILD_MOZILLA
|
2003-11-03 06:28:46 +08:00
|
|
|
cp $(srcdir)/mozilla/*$(LIBEXT) $(srcdir)/vlc-${VERSION}/mozilla/ ;
|
|
|
|
$(STRIP) $(srcdir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
|
2004-04-28 21:01:14 +08:00
|
|
|
@if test $(UPX); then \
|
|
|
|
$(UPX) -9 $(srcdir)/vlc-${VERSION}/mozilla/npvlc$(LIBEXT); fi ; \
|
2003-10-21 05:48:46 +08:00
|
|
|
cp $(srcdir)/mozilla/vlcintf.xpt $(srcdir)/vlc-${VERSION}/mozilla/ ;
|
|
|
|
endif
|
|
|
|
|
2003-08-29 01:46:34 +08:00
|
|
|
package-win32-base-exe:
|
|
|
|
# Create package
|
|
|
|
wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe \
|
|
|
|
-- /DVERSION=${VERSION} $(srcdir)/vlc-${VERSION}/nsi
|
2003-07-22 01:29:58 +08:00
|
|
|
|
2003-08-29 01:46:34 +08:00
|
|
|
package-win32-base-zip:
|
2002-12-26 05:02:35 +08:00
|
|
|
# Create package
|
2003-08-29 03:26:29 +08:00
|
|
|
zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
|
2003-08-29 01:46:34 +08:00
|
|
|
|
|
|
|
package-win32-exe: package-win32-base package-win32-base-exe
|
|
|
|
# Clean up
|
|
|
|
rm -Rf $(srcdir)/vlc-${VERSION}
|
|
|
|
|
|
|
|
package-win32-zip: package-win32-base package-win32-base-zip
|
|
|
|
# Clean up
|
|
|
|
rm -Rf $(srcdir)/vlc-${VERSION}
|
|
|
|
|
|
|
|
package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
|
2002-12-26 05:02:35 +08:00
|
|
|
# Clean up
|
2003-08-29 01:46:34 +08:00
|
|
|
rm -Rf $(srcdir)/vlc-${VERSION}
|
2002-12-26 05:02:35 +08:00
|
|
|
|
|
|
|
package-beos:
|
|
|
|
# Check that tmp isn't in the way
|
2003-05-24 20:35:06 +08:00
|
|
|
@if test -e $(srcdir)/tmp; then \
|
2003-06-28 00:26:02 +08:00
|
|
|
echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
|
2003-12-17 16:53:54 +08:00
|
|
|
false ; \
|
2002-12-26 05:02:35 +08:00
|
|
|
else \
|
2003-12-17 16:53:54 +08:00
|
|
|
echo "OK." ; mkdir $(srcdir)/tmp ; \
|
2002-12-26 05:02:35 +08:00
|
|
|
fi
|
2003-04-23 00:36:16 +08:00
|
|
|
|
2002-12-26 05:02:35 +08:00
|
|
|
# Copy relevant files
|
2003-12-17 16:53:54 +08:00
|
|
|
mkdir -p $(srcdir)/tmp/vlc ;
|
2003-05-24 20:35:06 +08:00
|
|
|
cd $(srcdir) && \
|
2003-12-17 16:53:54 +08:00
|
|
|
cp vlc AUTHORS COPYING ChangeLog README THANKS NEWS tmp/vlc/ ;
|
2003-08-03 21:49:37 +08:00
|
|
|
# We cannot use ${PLUGIN_FILES} as it looks like it is too "long" for the BeOS shell...
|
2003-05-24 20:35:06 +08:00
|
|
|
if [ `find $(srcdir)/modules -name "lib*_plugin.so" | wc -l` -gt 0 ]; then \
|
2003-12-17 16:53:54 +08:00
|
|
|
mkdir -p $(srcdir)/tmp/vlc/plugins ; \
|
|
|
|
find $(srcdir)/modules -name "lib*_plugin.so" -exec cp {} $(srcdir)/tmp/vlc/plugins/ \; ; \
|
2003-04-23 00:36:16 +08:00
|
|
|
fi
|
|
|
|
for i in $(ALL_LINGUAS); do \
|
2003-06-28 00:26:02 +08:00
|
|
|
mkdir -p $(srcdir)/tmp/vlc/locale/$${i}/LC_MESSAGES ; \
|
|
|
|
cp $(srcdir)/po/$${i}.gmo $(srcdir)/tmp/vlc/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
|
2003-04-23 00:36:16 +08:00
|
|
|
done
|
|
|
|
|
2003-12-17 16:53:54 +08:00
|
|
|
# Strip files and create package
|
|
|
|
strip --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
|
2003-08-03 21:49:37 +08:00
|
|
|
if [ -d $(srcdir)/tmp/vlc/plugins ]; then \
|
2003-12-17 16:53:54 +08:00
|
|
|
strip --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/plugins/lib*_plugin.so ; \
|
2003-05-06 10:17:11 +08:00
|
|
|
fi
|
2003-12-17 16:53:54 +08:00
|
|
|
xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
|
|
|
|
find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
|
|
|
|
mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
|
2003-05-24 23:11:00 +08:00
|
|
|
(cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
|
2003-12-17 16:53:54 +08:00
|
|
|
mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
|
2003-04-23 00:36:16 +08:00
|
|
|
|
2002-12-26 05:02:35 +08:00
|
|
|
# Clean up
|
2003-12-17 16:53:54 +08:00
|
|
|
rm -Rf $(srcdir)/tmp ;
|
2002-12-26 05:02:35 +08:00
|
|
|
|
|
|
|
package-macosx:
|
|
|
|
# Check that tmp isn't in the way
|
2003-08-24 08:29:03 +08:00
|
|
|
@if test -e "$(top_builddir)/tmp"; then \
|
|
|
|
echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
|
2003-06-28 00:26:02 +08:00
|
|
|
false; \
|
2002-12-26 05:02:35 +08:00
|
|
|
else \
|
2003-08-24 08:29:03 +08:00
|
|
|
echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
|
2002-12-26 05:02:35 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Copy relevant files
|
2003-08-24 08:29:03 +08:00
|
|
|
cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/tmp/"
|
|
|
|
cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
|
2002-12-26 05:02:35 +08:00
|
|
|
|
|
|
|
# Create disk image
|
2003-11-15 09:21:48 +08:00
|
|
|
$(srcdir)/extras/MacOSX/macosx-dmg 25 "vlc-${VERSION}" $(top_builddir)/tmp/*
|
2002-12-26 05:02:35 +08:00
|
|
|
|
|
|
|
# Clean up
|
2003-08-24 08:29:03 +08:00
|
|
|
rm -Rf $(top_builddir)/tmp
|
2002-12-26 05:02:35 +08:00
|
|
|
|
2004-02-06 05:01:44 +08:00
|
|
|
package-translations:
|
|
|
|
@if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
|
|
|
|
echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
|
|
|
|
false; \
|
|
|
|
else \
|
|
|
|
echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
|
|
|
|
fi
|
|
|
|
# Copy translations
|
|
|
|
for i in $(ALL_LINGUAS); do \
|
|
|
|
cp "$(srcdir)/po/$${i}.po" \
|
|
|
|
"$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
|
|
|
|
|| true ; \
|
|
|
|
done
|
|
|
|
cp "$(srcdir)/doc/translations.txt" \
|
|
|
|
"$(srcdir)/vlc-translations-${VERSION}/README.txt"
|
|
|
|
|
|
|
|
echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
|
|
|
|
echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
|
|
|
|
echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
|
|
|
|
echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
|
|
|
|
echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
|
|
|
|
echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
|
|
|
|
echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
|
|
|
|
echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
|
|
|
|
|
|
|
|
$(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
|
|
|
|
| GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
|
|
|
|
|
2003-07-03 10:56:35 +08:00
|
|
|
###############################################################################
|
|
|
|
# Stamp rules
|
|
|
|
###############################################################################
|
2003-07-17 21:09:46 +08:00
|
|
|
clean: clean-stamp
|
2003-07-03 10:56:35 +08:00
|
|
|
clean-stamp:
|
2003-07-17 21:09:46 +08:00
|
|
|
rm -f stamp-builtin
|
2003-07-03 10:56:35 +08:00
|
|
|
|
|
|
|
stamp-builtin: FORCE
|
|
|
|
@for dep in "" `$(VLC_CONFIG) --target builtin`; do \
|
|
|
|
if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
|
|
|
|
rm -f $@; \
|
|
|
|
break; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
@if test ! -f $@; then printf "" > $@; fi
|
|
|
|
|
2002-10-16 23:10:39 +08:00
|
|
|
###############################################################################
|
|
|
|
# Force rule
|
|
|
|
###############################################################################
|
|
|
|
FORCE:
|