Advertisement
dominus

Untitled

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