+package-macosx-plugin:
+if BUILD_MOZILLA
+# Create Installer
+ rm -rf "$(top_builddir)/macosx-plugin-instdata/"; true
+ mkdir -p "$(top_builddir)/macosx-plugin-instdata"
+ cp -R "$(top_builddir)/mozilla/VLC Plugin.plugin" "$(top_builddir)/macosx-plugin-instdata"
+ rm -rf "$(top_builddir)/VLC Internet Plug-In.pkg"
+ /Developer/Tools/packagemaker -build -ds -p "$(top_builddir)/VLC Internet Plug-In.pkg" \
+ -f "$(top_builddir)/macosx-plugin-instdata" \
+ -i "$(srcdir)/extras/MacOSX/plugin/InstallerInfo.plist" \
+ -d "$(srcdir)/extras/MacOSX/plugin/InstallerDescription.plist"; true
+ rm -rf "$(top_builddir)/macosx-plugin-instdata/"
+
+# Create disk image
+ rm -f "$(top_builddir)/vlc-plugin-${VERSION}.dmg"; true
+ rm -rf "$(top_builddir)/vlc-plugin-${VERSION}/"; true
+ mkdir -p "$(top_builddir)/vlc-plugin-${VERSION}/"
+ mv "$(top_builddir)/VLC Internet Plug-In.pkg" "$(top_builddir)/vlc-plugin-${VERSION}/"
+ hdiutil create -srcfolder "$(top_builddir)/vlc-plugin-${VERSION}" \
+ "$(top_builddir)/vlc-plugin-${VERSION}.dmg" -format UDZO \
+ -scrub -imagekey zlib-level=9 ;
+ echo "Disk image creation completed:"
+ rm -rf "$(top_builddir)/vlc-plugin-${VERSION}"
+endif
+