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
|
|
|
|
SUBDIRS = intl modules po . mozilla share m4
|
2003-06-28 07:31:24 +08:00
|
|
|
DIST_SUBDIRS = $(SUBDIRS) src debian doc ipkg lib autotools
|
2002-08-26 07:18:05 +08:00
|
|
|
|
2003-03-26 07:32:00 +08:00
|
|
|
EXTRA_DIST = \
|
|
|
|
HACKING \
|
|
|
|
INSTALL.win32 \
|
|
|
|
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 \
|
2003-02-24 03:07:02 +08:00
|
|
|
include/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-08-24 06:49:50 +08:00
|
|
|
include/vlc_block.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-06-24 23:50:47 +08:00
|
|
|
include/vlc_interface.h \
|
2002-09-30 19:05:42 +08:00
|
|
|
include/vlc_messages.h \
|
|
|
|
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 \
|
2003-01-08 08:41:25 +08:00
|
|
|
extras/MacOSX/Resources/back.png \
|
|
|
|
extras/MacOSX/Resources/begin.png \
|
|
|
|
extras/MacOSX/Resources/end.png \
|
|
|
|
extras/MacOSX/Resources/forw.png \
|
|
|
|
extras/MacOSX/Resources/list.png \
|
2002-09-30 19:05:42 +08:00
|
|
|
extras/MacOSX/Resources/pause.png \
|
|
|
|
extras/MacOSX/Resources/play.png \
|
2003-01-08 08:41:25 +08:00
|
|
|
extras/MacOSX/Resources/prefs.png \
|
2003-03-25 03:58:42 +08:00
|
|
|
extras/MacOSX/Resources/slow.png \
|
2002-09-30 19:05:42 +08:00
|
|
|
extras/MacOSX/Resources/stop.png \
|
2003-01-08 08:41:25 +08:00
|
|
|
extras/MacOSX/Resources/vlc_hg.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:
|
2003-05-24 20:35:06 +08:00
|
|
|
mv $(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
|
|
|
|
LIBRARIES_libvlc_pic = lib/libvlc_pic.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
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/input/input.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 \
|
|
|
|
src/input/input_ext-plugins.c \
|
2002-09-30 19:05:42 +08:00
|
|
|
src/input/input_ext-dec.c \
|
|
|
|
src/input/input_ext-intf.c \
|
|
|
|
src/input/input_dec.c \
|
|
|
|
src/input/input_programs.c \
|
|
|
|
src/input/input_clock.c \
|
|
|
|
src/input/input_info.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/video_text.h \
|
|
|
|
src/video_output/vout_subpictures.c \
|
2003-04-15 06:22:32 +08:00
|
|
|
src/video_output/vout_synchro.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 \
|
2003-08-23 20:59:31 +08:00
|
|
|
src/misc/charset.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 \
|
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 \
|
|
|
|
prefs.h \
|
|
|
|
prefs.m \
|
|
|
|
vout.h \
|
|
|
|
vout.m; do \
|
|
|
|
cp "$(srcdir)/modules/gui/macosx/$$i" \
|
|
|
|
$(top_builddir)/tmp/modules/gui/macosx; \
|
|
|
|
done
|
|
|
|
cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'
|
|
|
|
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-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
|
|
|
|
$(INSTALL) -m 644 $(srcdir)/share/http/*.html \
|
|
|
|
$(top_builddir)/VLC.app/Contents/MacOS/share/http
|
|
|
|
$(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin
|
|
|
|
$(INSTALL) -m 644 $(srcdir)/share/http/admin/*.html \
|
|
|
|
$(top_builddir)/VLC.app/Contents/MacOS/share/http/admin
|
|
|
|
$(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}/"
|
|
|
|
$(STRIP) "$(srcdir)/vlc-${VERSION}/vlc$(EXEEXT)"
|
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) ; \
|
2003-06-28 00:26:02 +08:00
|
|
|
do if test -n "$$i" ; then $(STRIP) "$$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
|
|
|
|
|
2003-08-29 02:44:51 +08:00
|
|
|
mkdir -p "$(srcdir)/vlc-${VERSION}/http/admin"
|
2003-08-29 01:46:34 +08:00
|
|
|
cp $(srcdir)/share/http/*.html $(srcdir)/vlc-${VERSION}/http/ ;
|
|
|
|
cp $(srcdir)/share/http/admin/*.html \
|
|
|
|
$(srcdir)/vlc-${VERSION}/http/admin/ ;
|
|
|
|
cp $(srcdir)/share/http/admin/.access \
|
|
|
|
$(srcdir)/vlc-${VERSION}/http/admin/ ;
|
|
|
|
|
|
|
|
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"; \
|
|
|
|
false; \
|
2002-12-26 05:02:35 +08:00
|
|
|
else \
|
2003-06-28 00:26:02 +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-05-24 20:35:06 +08:00
|
|
|
mkdir -p $(srcdir)/tmp/vlc
|
|
|
|
cd $(srcdir) && \
|
2003-06-28 00:26:02 +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-06-28 00:26:02 +08:00
|
|
|
mkdir -p $(srcdir)/tmp/vlc/plugins; \
|
|
|
|
find $(srcdir)/modules -name "lib*_plugin.so" | xargs -i{} 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
|
|
|
|
|
|
|
|
# Create package with debug symbols
|
2003-05-24 20:35:06 +08:00
|
|
|
mimeset -f $(srcdir)/tmp/vlc/* $(srcdir)/tmp/vlc/*/*
|
|
|
|
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-debug.zip vlc-${VERSION} )
|
|
|
|
mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/
|
2003-04-23 00:36:16 +08:00
|
|
|
|
|
|
|
# Create package without debug symbols
|
2003-08-03 21:49:37 +08:00
|
|
|
mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc
|
|
|
|
strip $(srcdir)/tmp/vlc/vlc
|
|
|
|
if [ -d $(srcdir)/tmp/vlc/plugins ]; then \
|
|
|
|
strip $(srcdir)/tmp/vlc/plugins/lib*_plugin.so; \
|
2003-05-06 10:17:11 +08:00
|
|
|
fi
|
2003-08-03 21:49:37 +08:00
|
|
|
xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc
|
|
|
|
mimeset -f $(srcdir)/tmp/vlc/* $(srcdir)/tmp/vlc/*/*
|
|
|
|
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} )
|
|
|
|
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-05-24 20:35:06 +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-08-24 08:29:03 +08:00
|
|
|
$(srcdir)/extras/MacOSX/macosx-dmg 18 "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
|
|
|
|
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:
|