- /tmp/vlc-${PROGRAM_VERSION}/
- for file in control control-css vlc-gtk.menu vlc.copyright vlc.docs \
- changelog changelog-css rules rules-css vlc.dirs \
- vlc.menu ; do \
- cp debian/$$file /tmp/vlc-${PROGRAM_VERSION}/debian/ ; \
- done
- for file in default8x16.psf default8x9.psf vlc_beos.rsrc ; do \
- cp share/$$file /tmp/vlc-${PROGRAM_VERSION}/share/ ; done
- for icon in vlc gvlc qvlc gnome-vlc kvlc ; do \
- cp share/$$icon.xpm share/$$icon.png \
- /tmp/vlc-${PROGRAM_VERSION}/share/ ; done
-
- # build css-enabled archives
- (cd /tmp ; tar cf vlc-${PROGRAM_VERSION}.tar vlc-${PROGRAM_VERSION} ; \
- bzip2 -f -9 < vlc-${PROGRAM_VERSION}.tar \
- > vlc-${PROGRAM_VERSION}.tar.bz2 ; \
- gzip -f -9 vlc-${PROGRAM_VERSION}.tar )
- mv /tmp/vlc-${PROGRAM_VERSION}.tar.gz \
- /tmp/vlc-${PROGRAM_VERSION}.tar.bz2 ..
-
- # clean up
- rm -Rf /tmp/vlc-${PROGRAM_VERSION}*
+ /tmp/vlc/
+ # Copy Debian control files
+ for file in debian/*dirs debian/*menu debian/*desktop ; do \
+ cp $$file /tmp/vlc/debian ; done
+ for file in control changelog rules vlc.copyright vlc.docs ; do \
+ cp debian/$$file /tmp/vlc/debian/ ; done
+ # Copy fonts and icons
+ for file in share/*png share/*xpm share/*psf ; do \
+ cp $$file /tmp/vlc/share ; done
+ for file in vlc_beos.rsrc vlc.icns gvlc_win32.ico vlc_win32_rc.rc ; do \
+ cp share/$$file /tmp/vlc/share/ ; done
+
+snapshot: snapshot-common
+ # Build archives and clean up
+ F=vlc-${VLC_QUICKVERSION}; \
+ rm -Rf /tmp/$$F ; mv /tmp/vlc /tmp/$$F; \
+ (cd /tmp ; tar cf $$F.tar $$F ; bzip2 -f -9 < $$F.tar > $$F.tar.bz2; \
+ gzip -f -9 $$F.tar ); mv /tmp/$$F.tar.gz /tmp/$$F.tar.bz2 ..; \
+ rm -Rf /tmp/$$F
+
+snapshot-nocss: snapshot-common
+ # Remove libdvdcss
+ rm -Rf /tmp/vlc/extras/libdvdcss
+ rm -f /tmp/vlc/*.libdvdcss
+ # Fix debian information
+ rm -f /tmp/vlc/debian/libdvdcss*
+ rm -f /tmp/vlc/debian/control
+ sed -e 's#^ DVDs# unencrypted DVDs#' < debian/control \
+ | awk '{if(gsub("Package: libdvdcss",$$0))a=1;if(a==0)print $$0;if(a==1&&$$0=="")a=0}' \
+ > /tmp/vlc/debian/control
+ rm -f /tmp/vlc/debian/rules
+ sed -e 's#^\(export LIBDVDCSS_FLAGS=\).*#\1"--without-dvdcss"#' < debian/rules \
+ | awk '{if($$0=="# libdvdcss start")a=1;if(a==0)print $$0;if($$0=="# libdvdcss stop")a=0}' \
+ > /tmp/vlc/debian/rules
+ chmod +x /tmp/vlc/debian/rules
+ # Build css-disabled archives and clean up
+ F=vlc-${VLC_QUICKVERSION}; G=vlc-${VLC_QUICKVERSION}-nocss; \
+ rm -Rf /tmp/$$F ; mv /tmp/vlc /tmp/$$F; \
+ (cd /tmp ; tar cf $$G.tar $$F ; bzip2 -f -9 < $$G.tar > $$G.tar.bz2; \
+ gzip -f -9 $$G.tar ); mv /tmp/$$G.tar.gz /tmp/$$G.tar.bz2 ..; \
+ rm -Rf /tmp/$$F
+
+libdvdcss-snapshot: snapshot-common
+ # Remove vlc sources and icons, doc, debian directory...
+ rm -Rf /tmp/vlc/src /tmp/vlc/share /tmp/vlc/plugins /tmp/vlc/doc
+ rm -Rf /tmp/vlc/extras/GNUgetopt /tmp/vlc/extras/MacOSX_app
+ rm -Rf /tmp/vlc/debian
+ # Remove useless headers
+ rm -f /tmp/vlc/include/*
+ for file in defs.h.in config.h.in common.h int_types.h ; \
+ do cp include/$$file /tmp/vlc/include/ ; done
+ # Remove misc files (??? - maybe not really needed)
+ rm -f /tmp/vlc/vlc.spec /tmp/vlc/INSTALL-win32.txt
+ mv /tmp/vlc/INSTALL.libdvdcss /tmp/vlc/INSTALL
+ mv /tmp/vlc/README.libdvdcss /tmp/vlc/README
+ # Fix Makefile
+ rm -f /tmp/vlc/Makefile
+ sed -e 's#^install:#install-unused:#' \
+ -e 's#^uninstall:#uninstall-unused:#' \
+ -e 's#^clean:#clean-unused:#' \
+ -e 's#^all:.*#all: libdvdcss#' \
+ -e 's#^libdvdcss-install:#install:#' \
+ -e 's#^libdvdcss-uninstall:#uninstall:#' \
+ -e 's#^libdvdcss-clean:#clean:#' \
+ < Makefile > /tmp/vlc/Makefile
+ # Build archives and clean up
+ F=libdvdcss-${LIBDVDCSS_QUICKVERSION}; \
+ rm -Rf /tmp/$$F ; mv /tmp/vlc /tmp/$$F; \
+ (cd /tmp ; tar cf $$F.tar $$F ; bzip2 -f -9 < $$F.tar > $$F.tar.bz2; \
+ gzip -f -9 $$F.tar ); mv /tmp/$$F.tar.gz /tmp/$$F.tar.bz2 ..; \
+ rm -Rf /tmp/$$F
+
+deb:
+ dpkg-buildpackage -rfakeroot -us -uc
+
+#
+# Gtk/Gnome/* aliases and OS X application
+#
+gnome-vlc gvlc kvlc qvlc: vlc
+ rm -f $@ && ln -s vlc $@