Some MacOS improvements from Nic.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1550 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -19,9 +19,7 @@ uqm_requirements()
|
||||
;;
|
||||
Darwin)
|
||||
have_program Rez || exit 1
|
||||
have_program SetFile || exit 1
|
||||
REZ="$PROG_Rez_FILE"
|
||||
SETFILE="$PROG_SetFile_FILE"
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -228,7 +226,7 @@ uqm_process_config() {
|
||||
SUBSTITUTE_VARS="CFLAGS LDFLAGS MAKE ECHON DEBUG SOUNDMODULE HAVE_OPENGL \
|
||||
USE_ZIP_IO \
|
||||
INSTALL_LIBDIR INSTALL_BINDIR INSTALL_SHAREDIR \
|
||||
REZ SETFILE WINDRES"
|
||||
REZ WINDRES"
|
||||
SUBSTITUTE_FILES="build.vars"
|
||||
substitute_vars SUBSTITUTE_VARS SUBSTITUTE_FILES . "$BUILD_WORK"
|
||||
|
||||
@@ -260,10 +258,15 @@ uqm_post_build() {
|
||||
|
||||
test -f "$TARGET_FILE" || return
|
||||
|
||||
# If run from the command-line on OSX, the Window Manager
|
||||
# will refuse to recognize the window unless the program has
|
||||
# a resource fork; so we give it a small one here. When
|
||||
# run from inside an application package, this step is useless
|
||||
# (the cp command in the install step implicitly strips off
|
||||
# the resource fork, in fact)
|
||||
case "$OSNAME" in
|
||||
Darwin)
|
||||
${REZ} ${RFORK} -o ${TARGET_FILE}
|
||||
${SETFILE} -a C ${TARGET_FILE}
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user