# Automake targets and declarations
###############################################################################
-# Pass --quiet to make when we are not verbose.
-AM_MAKEFLAGS = $(makesilentflags_$(V))
-makesilentflags_ = $(makesilentflags__$(AM_DEFAULT_VERBOSITY))
-makesilentflags_0 = --quiet
-makesilentflags__0 = $(makesilentflags_0)
-
# 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.
extras/package/rpm/vlc.altlinux.spec \
extras/package/win32/vlc.win32.nsi.in \
extras/package/win32/spad.nsi.in \
+ extras/package/win32/UAC.nsh \
+ extras/package/win32/UAC.dll \
extras/package/win32/languages/declaration.nsh \
extras/package/win32/languages/english.nsh \
extras/package/win32/languages/french.nsh
DISTCHECK_CONFIGURE_FLAGS = \
--enable-fast-install \
+ --disable-a52 \
+ --disable-avcodec --disable-avformat \
+ --disable-postproc --disable-swscale \
--disable-dbus \
- --disable-dvd --disable-mad --disable-libmpeg2 \
- --disable-ffmpeg --disable-faad --disable-skins2 \
+ --disable-mad --disable-libmpeg2 \
+ --disable-faad --disable-skins2 \
--disable-live555 \
--disable-fribidi --disable-glx
libvlc: libcompat
cd src && $(MAKE) $(AM_MAKEFLAGS) libvlc.la
-core: libvlc
- cd bin && $(MAKE) $(AM_MAKEFLAGS) vlc$(EXEEXT)
+core: libvlc vlc
+ cd bin && $(MAKE) $(AM_MAKEFLAGS) vlc$(EXEEXT) vlc-static$(EXEEXT)
doc:
cd doc && $(MAKE) $(AM_MAKEFLAGS) doc
.PHONY: libvlc core doc
-#To get some nice output
-nice:
- $(top_builddir)/compile
-
if HAVE_BEOS
noinst_DATA = vlc-bundle
vlc-bundle: vlc
endif
silentstd = $(silentstd_$(V))
-silentstd_ = $(silentstd__$(AM_DEFAULT_VERBOSITY))
+silentstd_ = $(silentstd_$(AM_DEFAULT_VERBOSITY))
silentstd_0 = 2>&1 >/dev/null
-# '__' prefix trick for old automake version.
-silentstd__0 = $(silentstd_0)
# VLC-release.app for packaging and giving it to your friends
# use package-macosx to get a nice dmg
touch $(top_builddir)/VLC.app/Contents/MacOS/VLC
chmod +x $(top_builddir)/VLC.app/Contents/MacOS/VLC
$(INSTALL) $(top_builddir)/bin/.libs/vlc $(top_builddir)/VLC.app/Contents/MacOS/VLC
- ln -sf ../../../modules $(top_builddir)/VLC.app/Contents/MacOS/modules
+ ln -sf ../../../modules $(top_builddir)/VLC.app/Contents/MacOS/plugins
install -d $(top_builddir)/VLC.app/Contents/MacOS/share
for i in `ls $(srcdir)/share`; do \
ln -sf `pwd`/$(srcdir)/share/$$i $(top_builddir)/VLC.app/Contents/MacOS/share/; \
do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(win32_destdir)/$${file}.txt" ; done;
for file in NEWS COPYING README; \
do cp "$(srcdir)/$$file" "$(win32_destdir)/$${file}.txt"; done
- unix2dos "$(win32_destdir)/"*.txt || echo "WARNING: this shouldn't happen"
+ $(U2D) "$(win32_destdir)/"*.txt || echo "WARNING: this shouldn't happen"
# Necessary icons
cp $(srcdir)/share/vlc.ico $(win32_destdir)/
cat $(top_srcdir)/po/LINGUAS | while read i; do \
mkdir -p "$(win32_destdir)/locale/$${i}/LC_MESSAGES" ; \
cp "$(srcdir)/po/$${i}.gmo" \
- "$(win32_destdir)/locale/$${i}/LC_MESSAGES/vlc.mo" \
- || true ; \
+ "$(win32_destdir)/locale/$${i}/LC_MESSAGES/vlc.mo" || true ; \
done
mkdir -p $(win32_destdir)/locale/qt4/
cp $(QT4LOCALEDIR)/*.qm $(win32_destdir)/locale/qt4/ || true
mkdir -p "$(win32_destdir)/activex"
cp $(srcdir)/projects/activex/README.TXT $(win32_destdir)/activex/
cp $(srcdir)/projects/activex/test.html $(win32_destdir)/activex/
- unix2dos $(win32_destdir)/activex/*
-
+ $(U2D) $(win32_destdir)/activex/*
cp $(top_builddir)/projects/activex/.libs/axvlc$(LIBEXT) $(win32_destdir)/activex/
cp $(top_srcdir)/projects/activex/axvlc.dll.manifest $(win32_destdir)/activex/
endif
find $(win32_destdir) -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
fi
+# Copy the UAC NSIS plugin
+ mkdir -p "$(win32_destdir)/NSIS"
+ cp "$(top_srcdir)/extras/package/win32/UAC.nsh" "$(win32_destdir)/NSIS"
+ cp "$(top_srcdir)/extras/package/win32/UAC.dll" "$(win32_destdir)/NSIS"
+
package-win32-xpi: package-win-common-strip
mkdir -p "$(win32_xpi_destdir)/plugins"
cp $(top_builddir)/projects/mozilla/install.rdf "$(win32_xpi_destdir)"
done
endif
-# Copy the lua scripts (HTTP)
if BUILD_LUA
+# Copy the lua scripts (HTTP)
mkdir -p "$(win32_lua_destdir)/http/images"
mkdir -p "$(win32_lua_destdir)/http/requests"
mkdir -p "$(win32_lua_destdir)/http/js"
mkdir -p "$(win32_lua_destdir)/http/dialogs"
cp $(srcdir)/share/lua/http/*.html $(win32_lua_destdir)/http/
- unix2dos $(win32_lua_destdir)/http/*.html
+ $(U2D) $(win32_lua_destdir)/http/*.html
cp $(srcdir)/share/lua/http/.hosts $(win32_lua_destdir)/http/
- unix2dos $(win32_lua_destdir)/http/.hosts
+ $(U2D) $(win32_lua_destdir)/http/.hosts
cp $(srcdir)/share/lua/http/*.css $(win32_lua_destdir)/http/
- unix2dos $(win32_lua_destdir)/http/*.css
+ $(U2D) $(win32_lua_destdir)/http/*.css
cp $(srcdir)/share/lua/http/js/*.js $(win32_lua_destdir)/http/js/
- unix2dos $(win32_lua_destdir)/http/js/*.js
+ $(U2D) $(win32_lua_destdir)/http/js/*.js
cp $(srcdir)/share/lua/http/*.lua $(win32_lua_destdir)/http/
- unix2dos $(win32_lua_destdir)/http/*.lua
+ $(U2D) $(win32_lua_destdir)/http/*.lua
cp $(srcdir)/share/lua/http/dialogs/* $(win32_lua_destdir)/http/dialogs/
- unix2dos $(win32_lua_destdir)/http/dialogs/*
+ $(U2D) $(win32_lua_destdir)/http/dialogs/*
cp $(srcdir)/share/lua/http/dialogs/.hosts $(win32_lua_destdir)/http/dialogs/
- unix2dos $(win32_lua_destdir)/http/dialogs/.hosts
+ $(U2D) $(win32_lua_destdir)/http/dialogs/.hosts
cp $(srcdir)/share/lua/http/*.ico $(win32_lua_destdir)/http/
cp $(srcdir)/share/lua/http/images/*.png $(win32_lua_destdir)/http/images/
cp $(srcdir)/share/lua/http/requests/*.xml $(win32_lua_destdir)/http/requests/
- unix2dos $(win32_lua_destdir)/http/requests/*.xml
+ $(U2D) $(win32_lua_destdir)/http/requests/*.xml
cp $(srcdir)/share/lua/http/requests/readme $(win32_lua_destdir)/http/requests/readme.txt
- unix2dos $(win32_lua_destdir)/http/requests/readme.txt
-endif
+ $(U2D) $(win32_lua_destdir)/http/requests/readme.txt
-if BUILD_LUA
#Lua Scripts
$(INSTALL) -d $(win32_lua_destdir)
for i in $(srcdir)/share/lua/*.* ; do \
$(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/`basename $${i}` ; \
done
- $(INSTALL) -d $(win32_lua_destdir)/playlist
- for i in $(srcdir)/share/lua/playlist/*.* ; do \
- $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/playlist/`basename $${i}` ; \
+ $(INSTALL) -d $(win32_lua_destdir)/modules
+ for i in $(srcdir)/share/lua/modules/*.* ; do \
+ $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/modules/`basename $${i}` ; \
done
- $(INSTALL) -d $(win32_lua_destdir)/meta/art
- for i in $(srcdir)/share/lua/meta/art/*.lua ; do \
- $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/art/`basename $${i}` ; \
- done
- $(INSTALL) -d $(win32_lua_destdir)/meta/reader
- for i in $(srcdir)/share/lua/meta/reader/*.lua ; do \
- $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/reader/`basename $${i}` ; \
+ $(INSTALL) -d $(win32_lua_destdir)/extensions
+ for i in $(srcdir)/share/lua/extensions/*.* ; do \
+ $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/extensions/`basename $${i}` ; \
done
$(INSTALL) -d $(win32_lua_destdir)/intf
for i in $(srcdir)/share/lua/intf/*.* ; do \
for i in $(srcdir)/share/lua/intf/modules/*.* ; do \
$(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/intf/modules/`basename $${i}` ; \
done
+ $(INSTALL) -d $(win32_lua_destdir)/meta/art
+ for i in $(srcdir)/share/lua/meta/art/*.* ; do \
+ $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/art/`basename $${i}` ; \
+ done
+ $(INSTALL) -d $(win32_lua_destdir)/meta/fetcher
+ for i in $(srcdir)/share/lua/meta/fetcher/*.* ; do \
+ $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/fetcher/`basename $${i}` ; \
+ done
+ $(INSTALL) -d $(win32_lua_destdir)/meta/reader
+ for i in $(srcdir)/share/lua/meta/reader/*.* ; do \
+ $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/reader/`basename $${i}` ; \
+ done
+ $(INSTALL) -d $(win32_lua_destdir)/playlist
+ for i in $(srcdir)/share/lua/playlist/*.* ; do \
+ $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/playlist/`basename $${i}` ; \
+ done
+ $(INSTALL) -d $(win32_lua_destdir)/sd
+ for i in $(srcdir)/share/lua/sd/*.* ; do \
+ $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/sd/`basename $${i}` ; \
+ done
+
+ $(U2D) $(win32_lua_destdir)/README.txt
+ $(U2D) $(win32_lua_destdir)/extensions/README.txt
+ $(U2D) $(win32_lua_destdir)/intf/README.txt
+ $(U2D) $(win32_lua_destdir)/meta/art/README.txt
+ $(U2D) $(win32_lua_destdir)/meta/fetcher/README.txt
+ $(U2D) $(win32_lua_destdir)/meta/reader/README.txt
+ $(U2D) $(win32_lua_destdir)/playlist/README.txt
+ $(U2D) $(win32_lua_destdir)/sd/README.txt
endif
# Copy the http files
mkdir -p "$(win32_http_destdir)/js"
mkdir -p "$(win32_http_destdir)/dialogs"
cp $(srcdir)/share/http/*.html $(win32_http_destdir)/
- unix2dos $(win32_http_destdir)/*.html
+ $(U2D) $(win32_http_destdir)/*.html
cp $(srcdir)/share/http/.hosts $(win32_http_destdir)/
- unix2dos $(win32_http_destdir)/.hosts
+ $(U2D) $(win32_http_destdir)/.hosts
cp $(srcdir)/share/http/*.css $(win32_http_destdir)/
- unix2dos $(win32_http_destdir)/*.css
+ $(U2D) $(win32_http_destdir)/*.css
cp $(srcdir)/share/http/js/*.js $(win32_http_destdir)/js/
- unix2dos $(win32_http_destdir)/js/*.js
+ $(U2D) $(win32_http_destdir)/js/*.js
cp $(srcdir)/share/http/dialogs/* $(win32_http_destdir)/dialogs/
- unix2dos $(win32_http_destdir)/dialogs/*
+ $(U2D) $(win32_http_destdir)/dialogs/*
cp $(srcdir)/share/http/dialogs/.hosts $(win32_http_destdir)/dialogs/
- unix2dos $(win32_http_destdir)/dialogs/.hosts
+ $(U2D) $(win32_http_destdir)/dialogs/.hosts
cp $(srcdir)/share/http/*.ico $(win32_http_destdir)/
cp $(srcdir)/share/http/images/*.png $(win32_http_destdir)/images/
cp $(srcdir)/share/http/requests/*.xml $(win32_http_destdir)/requests/
- unix2dos $(win32_http_destdir)/requests/*.xml
+ $(U2D) $(win32_http_destdir)/requests/*.xml
cp $(srcdir)/share/http/requests/readme $(win32_http_destdir)/requests/readme.txt
- unix2dos $(win32_http_destdir)/requests/readme.txt
+ $(U2D) $(win32_http_destdir)/requests/readme.txt
endif
cp -- "$$file" "$(win32_destdir)/osdmenu/$$dir"; \
done; \
done
- unix2dos $(win32_destdir)/osdmenu/*.cfg;
+ $(U2D) $(win32_destdir)/osdmenu/*.cfg;
for file in $(win32_destdir)/osdmenu/*.cfg; do \
sed 's%share/osdmenu%osdmenu%g' "$$file" > "$$file.tmp" || exit $$? ; \
sed 's%/%\\%g' "$$file.tmp" > "$$file" || exit$$? ; \
$(top_builddir)/vlc-$(VERSION)/Goodies
cp $(srcdir)/extras/package/macosx/README.MacOSX.rtf \
$(top_builddir)/vlc-$(VERSION)/Read\ Me.rtf
- zip -r $(top_builddir)/vlc-$(VERSION).zip $(top_builddir)/vlc-$(VERSION)
+ zip -r -y -9 $(top_builddir)/vlc-$(VERSION).zip $(top_builddir)/vlc-$(VERSION)
rm -Rf $(top_builddir)/vlc-$(VERSION)
package-macosx-framework-zip:
for i in AUTHORS COPYING ChangeLog README THANKS NEWS; do \
cp $(srcdir)/$$i $(top_builddir)/vlckit-$(VERSION)/Goodies; \
done
- zip -r $(top_builddir)/vlckit-$(VERSION).zip $(top_builddir)/vlckit-$(VERSION)
+ zip -r -y -9 $(top_builddir)/vlckit-$(VERSION).zip $(top_builddir)/vlckit-$(VERSION)
rm -Rf $(top_builddir)/vlc-$(VERSION)
package-macosx-plugin: