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:
meep-eep
2005-02-19 19:21:20 +00:00
parent 7383a5f1d8
commit ec9d571efd
2 changed files with 11 additions and 11 deletions
+7 -4
View File
@@ -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
}