scummvm random work
[patches.git] / fillets-ng-custom-datadir.patch
CommitLineData
5e993f12 1--- configure.in
2+++ configure.in
3@@ -151,6 +160,11 @@ case "$target" in
4 ;;
5 esac
6
7+###################################################
8+# Mung up datadir if need be
9+if test "${datadir}" = '${datarootdir}' ; then
10+ datadir='${datarootdir}/games/${PACKAGE}'
11+fi
12
13 ###################################################
14 # Debug on/off
15--- src/gengine/Makefile.am
16+++ src/gengine/Makefile.am
17@@ -1,6 +1,6 @@
18
19 INCLUDES = $(SDL_CFLAGS) $(LUA_CFLAGS) $(BOOST_CFLAGS)
20-AM_CPPFLAGS = -DSYSTEM_DATA_DIR=\""$(datadir)/games/@PACKAGE@"\"
21+AM_CPPFLAGS = -DSYSTEM_DATA_DIR=\""@datadir@"\"
22
23 if WITH_BOOST
24 FSPATH_IMPL = FsPath_boost.cpp