darwin.sh 723 B

123456789101112131415161718192021222324252627282930313233
  1. platform_enter_hook() {
  2. BUILD_FLAGS="dist"
  3. CONFIG_FLAGS="$CONFIG_FLAGS --platform darwin \
  4. --prefix blah --disable-utils --disable-x11"
  5. }
  6. platform_exit_hook() {
  7. DUMMY=1
  8. }
  9. platform_build_test_hook() {
  10. if [ ! -f megazeux -o ! -f mzxrun ]; then
  11. ERRNO=1
  12. return
  13. fi
  14. file megazeux | egrep -q "Mach-O universal binary"
  15. if [ "$?" != "0" ]; then
  16. ERRNO=1
  17. return
  18. fi
  19. file mzxrun | egrep -q "Mach-O universal binary"
  20. if [ "$?" != "0" ]; then
  21. ERRNO=1
  22. return
  23. fi
  24. }
  25. platform_archive_test_hook() {
  26. [ ! -f build/dist/darwin/*.dmg ] && ERRNO=2
  27. }