]> git.sesse.net Git - vlc/commitdiff
* Re-enabled package-* Makefile rules,
authorChristophe Massiot <massiot@videolan.org>
Wed, 25 Dec 2002 21:02:35 +0000 (21:02 +0000)
committerChristophe Massiot <massiot@videolan.org>
Wed, 25 Dec 2002 21:02:35 +0000 (21:02 +0000)
* Worked around automake stack overflow bug on Darwin.

Makefile.am
bootstrap
ipkg/Makefile.am

index fdd47a77f592449e6cf22372d89b5db664b3a379..e595b3e6bc250641427c865f9112f17567579836 100644 (file)
@@ -482,6 +482,93 @@ share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
        $(WINDRES) --include-dir share -i $< -o $@
 endif
 
+###############################################################################
+# 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
+package-win32:
+       @if test -e tmp; then \
+               echo "Error: please remove ./tmp, it is in the way"; false; \
+       else \
+               echo "OK."; mkdir tmp; \
+       fi
+# Create installation script
+       cp install-win32 tmp/nsi
+# Copy relevant files
+       cp vlc.exe tmp/ 
+       $(STRIP) tmp/vlc.exe
+       cp INSTALL.win32 tmp/INSTALL.txt ; unix2dos tmp/INSTALL.txt
+       for file in AUTHORS COPYING ChangeLog README FAQ TODO ; \
+                       do cp $$file tmp/$${file}.txt ; \
+                       unix2dos tmp/$${file}.txt ; done
+       mkdir tmp/plugins
+       for i in dummy $(PLUGIN_FILES) ; do if test "x$$i" != "xdummy" ; then \
+               $(INSTALL) $$i tmp/plugins/ ; \
+       fi ; done
+# don't include these two
+#rm -f tmp/plugins/gtk.so tmp/plugins/sdl.so
+       for i in dummy tmp/plugins/*.so ; do if test $$i != tmp/plugins/intfwin.so -a $$i != dummy ; then $(STRIP) $$i ; fi ; done
+       mkdir tmp/share
+       for file in default8x16.psf default8x9.psf ; \
+               do cp share/$$file tmp/share/ ; done
+# Create package 
+       wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe -- /DVERSION=${VERSION} /CD tmp/nsi
+# Clean up
+       rm -Rf tmp
+
+package-beos:
+# Check that tmp isn't in the way
+       @if test -e tmp; then \
+               echo "Error: please remove ./tmp, it is in the way"; false; \
+       else \
+               echo "OK."; mkdir tmp; \
+       fi
+       
+# Create dir
+       mkdir -p tmp/vlc/share
+# Copy relevant files
+       cp vlc tmp/vlc/
+       $(STRIP) tmp/vlc/vlc
+       xres -o tmp/vlc/vlc ./share/vlc_beos.rsrc
+       cp AUTHORS COPYING ChangeLog README FAQ TODO tmp/vlc/
+       for file in default8x16.psf default8x9.psf ; \
+               do cp share/$$file tmp/vlc/share/ ; done
+       mkdir tmp/vlc/plugins
+       for i in dummy $(PLUGIN_FILES) ; do if test "x$$i" != "xdummy" ; then \
+               $(INSTALL) $$i tmp/vlc/plugins/ ; \
+       fi ; done
+       for i in dummy tmp/vlc/plugins/*.so ; do if test $$i != dummy ; then $(STRIP) $$i ; fi ; done
+# Create package 
+       mv tmp/vlc tmp/vlc-${VERSION}
+       (cd tmp ; find vlc-${VERSION} | \
+       zip -9 -@ vlc-${VERSION}-BeOS-x86.zip )
+       mv tmp/vlc-${VERSION}-BeOS-x86.zip .
+# Clean up
+       rm -Rf tmp
+
+package-macosx:
+# Check that tmp isn't in the way
+       @if test -e tmp; then \
+               echo "Error: please remove ./tmp, it is in the way"; false; \
+       else \
+               echo "OK."; mkdir tmp; \
+       fi
+
+# Copy relevant files 
+       cp -R vlc.app tmp/
+       $(STRIP) tmp/vlc.app/Contents/MacOS/vlc
+       cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf FAQ TODO tmp/
+
+# Create disk image 
+       ./macosx-dmg 15 "vlc-${VERSION}" tmp/* 
+
+# Clean up
+       rm -Rf tmp
+
 ###############################################################################
 # Building the Mozilla plugin
 ###############################################################################
index 969d805e0d340d25b57b614c7633d379b5ef1792..5093507c8d16391881f3e213f0e09c4fd044ce0f 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 ##  bootstrap file for vlc, the VideoLAN Client
-##  $Id: bootstrap,v 1.34 2002/12/17 14:39:05 sam Exp $
+##  $Id: bootstrap,v 1.35 2002/12/25 21:02:35 massiot Exp $
 ##
 ##  Authors: Samuel Hocevar <sam@zoy.org>
 
@@ -294,6 +294,9 @@ PERLSUCKS=no
 AUTOMAKESUCKS=no
 INSTALLSUCKS=no
 
+# Mac OS X stacksize sucks
+if test x`uname -s` = xDarwin; then ulimit -s 20000; fi
+
 ##
 ## Generate the modules makefile, by parsing modules/**/Modules.am
 ##
index ee1e568552884c5ff08aef75f01ae7c38755ebb4..f173f9d725d254228db36db75303530c7f8b1cc0 100644 (file)
@@ -14,5 +14,5 @@ EXTRA_DIST = \
        postrm.opie \
        vlc.desktop \
        vlc.gpe \
-       vlc.opie \
-       $(NULL)
+       vlc.opie
+