-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
- rm -Rf tmp/vlc/debian
- rm -Rf tmp/vlc/ipkg
- # Remove useless headers
- rm -f tmp/vlc/include/*
- for file in defs.h.in config.h 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
- mv tmp/vlc/ChangeLog.libdvdcss tmp/vlc/ChangeLog
- # 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
- F=libdvdcss-${LIBDVDCSS_QUICKVERSION}; \
- mv tmp/vlc tmp/$$F; (cd tmp ; tar cf $$F.tar $$F); \
- bzip2 -f -9 < tmp/$$F.tar > $$F.tar.bz2; \
- gzip -f -9 tmp/$$F.tar ; mv tmp/$$F.tar.gz .
+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/
+ cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf FAQ TODO tmp/
+
+ # Create disk image
+ ./macosx-dmg 0 "vlc-${VERSION}" tmp/*
+