SHA256
1
0
forked from pool/blockout
blockout/bl2home.diff

34 lines
1.1 KiB
Diff

From: Jan Engelhardt <jengelh@medozas.de>
Date: 2012-03-25 16:17:03.379573514 +0200
---
BlockOut/Makefile.am | 1 +
BlockOut/Utils.cpp | 2 ++
2 files changed, 3 insertions(+)
Index: bl24_lin_src/BlockOut/Makefile.am
===================================================================
--- bl24_lin_src.orig/BlockOut/Makefile.am
+++ bl24_lin_src/BlockOut/Makefile.am
@@ -1,6 +1,7 @@
# -*- Makefile -*-
AM_CPPFLAGS = -D_DEBUG -Dlinux -I../ImageLib/src -I. \
+ -DBL2_HOME=\"${pkgdatadir}\" \
${libSDL_CFLAGS} ${libSDL_mixer_CFLAGS}
bin_PROGRAMS = blockout
Index: bl24_lin_src/BlockOut/Utils.cpp
===================================================================
--- bl24_lin_src.orig/BlockOut/Utils.cpp
+++ bl24_lin_src/BlockOut/Utils.cpp
@@ -163,6 +163,8 @@ BOOL CheckEnv() {
}
char *blockoutHome = getenv("BL2_HOME");
+ if (blockoutHome == NULL)
+ blockoutHome = BL2_HOME;
if( blockoutHome==NULL ) {
printf("BL2_HOME environement variable if not defined !\n");
printf("Please set the BL2_HOME to the BlockOut II installation directory (ex: BL2_HOME=/usr/local/bl2).\n");