dominus

Untitled

Mar 13th, 2020
644
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Index: Makefile.am
  2. ===================================================================
  3. --- Makefile.am (revision 4288)
  4. +++ Makefile.am (working copy)
  5. @@ -2,3 +2,44 @@
  6.  
  7.  EXTRA_DIST = autogen.sh
  8.  SUBDIRS = src include docs visualc_net
  9. +
  10. +if MACOSX
  11. +
  12. +bundle_name = DOSBoxSVN.app
  13. +dmg_name = DOSBox-snapshot
  14. +# $(INSTALL_PROGRAM) $< $(bundle_name)/Contents/MacOS/
  15. +# $(INSTALL_DATA) $(srcdir)/src/platform/macosx/dosbox.icns $(bundle_name)/Contents/Resources/
  16. +bundle: ${EXE_TARGET}
  17. +   mkdir -p $(bundle_name)/Contents/MacOS
  18. +   mkdir -p $(bundle_name)/Contents/Resources
  19. +   mkdir -p $(bundle_name)/Contents/Documents
  20. +   cp $(srcdir)/src/$(PACKAGE) $(bundle_name)/Contents/MacOS/
  21. +   echo "APPL????" > $(bundle_name)/Contents/PkgInfo
  22. +   cp $(srcdir)/src/platform/macos/Info.plist $(bundle_name)/Contents/
  23. +   cp $(srcdir)/src/platform/macos/dosbox.icns $(bundle_name)/Contents/Resources/
  24. +   cp $(srcdir)/AUTHORS $(bundle_name)/Contents/Documents
  25. +   cp $(srcdir)/COPYING $(bundle_name)/Contents/Documents
  26. +   cp $(srcdir)/NEWS $(bundle_name)/Contents/Documents
  27. +   cp $(srcdir)/README $(bundle_name)/Contents/Documents
  28. +   cp $(srcdir)/THANKS $(bundle_name)/Contents/Documents
  29. +
  30. +
  31. +osxdmg: bundle
  32. +   mkdir -p $(dmg_name)
  33. +   cp $(srcdir)/AUTHORS ./$(dmg_name)/Authors
  34. +   cp $(srcdir)/COPYING ./$(dmg_name)/License
  35. +   cp $(srcdir)/NEWS ./$(dmg_name)/News
  36. +   cp $(srcdir)/README ./$(dmg_name)/ReadMe
  37. +   cp $(srcdir)/THANKS ./$(dmg_name)/Thanks
  38. +   SetFile -t ttro -c ttxt ./$(dmg_name)/Authors
  39. +   SetFile -t ttro -c ttxt ./$(dmg_name)/License
  40. +   SetFile -t ttro -c ttxt ./$(dmg_name)/News
  41. +   SetFile -t ttro -c ttxt ./$(dmg_name)/ReadMe
  42. +   SetFile -t ttro -c ttxt ./$(dmg_name)/Thanks
  43. +   cp -R $(bundle_name) ./$(dmg_name)/
  44. +   hdiutil create -ov -format UDZO -imagekey zlib-level=9 -fs HFS+ \
  45. +                   -srcfolder $(dmg_name) \
  46. +                   -volname "DOSBox SVN snapshot$(REVISION)" \
  47. +                   $(dmg_name).dmg
  48. +   rm -rf $(dmg_name)
  49. +endif
  50. \ No newline at end of file
  51. Index: configure.ac
  52. ===================================================================
  53. --- configure.ac    (revision 4288)
  54. +++ configure.ac    (working copy)
  55. @@ -591,6 +591,7 @@
  56.         dnl to do more to distinguish them.
  57.         dnl For now I am lazy and do not add proper detection code.
  58.         AC_DEFINE(MACOSX, 1, [Compiling on Mac OS X])
  59. +      AM_CONDITIONAL(MACOSX, [true])
  60.         AC_DEFINE(C_DIRECTSERIAL, 1, [ Define to 1 if you want serial passthrough support (Win32, Posix and OS/2).])
  61.         ;;
  62.      *-*-linux*)
RAW Paste Data