diff --git a/mk/macosx/.gitignore b/mk/macosx/.gitignore index d90dcefc..2fc9fa28 100644 --- a/mk/macosx/.gitignore +++ b/mk/macosx/.gitignore @@ -6,6 +6,7 @@ core core.bak +/p7zip/ /build/ /[Rr]elease/ /[Dd]ebug/ diff --git a/mk/macosx/CMakeLists.txt b/mk/macosx/CMakeLists.txt index c37eb16a..c8d763b6 100644 --- a/mk/macosx/CMakeLists.txt +++ b/mk/macosx/CMakeLists.txt @@ -25,9 +25,9 @@ LINK_DIRECTORIES(/opt/local/lib) ##install part # This file is in git CRLF but that causes the cpack run to fail -CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/docs/COPYRIGHT.source_code.txt" - "${CMAKE_CURRENT_BINARY_DIR}/docs/COPYRIGHT.source_code.txt" NEWLINE_STYLE UNIX) -SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_BINARY_DIR}/docs/COPYRIGHT.source_code.txt") +#CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/docs/COPYRIGHT.source_code.txt" +# "${CMAKE_CURRENT_BINARY_DIR}/docs/COPYRIGHT.source_code.txt" NEWLINE_STYLE UNIX) +#SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_BINARY_DIR}/docs/COPYRIGHT.source_code.txt") # This changes Info.plist from something with variables and CMakeisms to # something that can be installed on disk. diff --git a/mk/macosx/build-mg.sh b/mk/macosx/build-mg.sh new file mode 100755 index 00000000..6a8aa02d --- /dev/null +++ b/mk/macosx/build-mg.sh @@ -0,0 +1,214 @@ +#!/bin/sh +# Use this script to build MegaGlest using cmake +# ---------------------------------------------------------------------------- +# 2011 Written by Mark Vejvoda +# 2015 Rewritten by filux +# Copyright (c) 2011-2015 under GNU GPL v3.0+ +# ---------------------------------------------------------------------------- +# Default to English language output so we can understand your bug reports +export LANG=C + +SCRIPTDIR="$(cd "$(dirname "$0")"; pwd)" +BUILD_BUNDLE=0 +CPU_COUNT=-1 +CMAKE_ONLY=0 +MAKE_ONLY=0 +USE_XCODE=0 +CLANG_FORCED=0 +WANT_STATIC_LIBS="-DWANT_STATIC_LIBS=ON" +LUA_FORCED_VERSION=0 + +while getopts "c:dfhl:mnxb" option; do + case "${option}" in + c) CPU_COUNT=${OPTARG};; + d) WANT_STATIC_LIBS="-DWANT_STATIC_LIBS=OFF";; + f) CLANG_FORCED=1;; + h) echo "Usage: $0