--- install.sh.orig 2008-03-21 20:22:11.000000000 +0100 +++ install.sh 2008-03-21 21:45:40.000000000 +0100 @@ -33,8 +33,8 @@ PREFIX=/usr/local fi -BINDIR=${PREFIX}/bin -INSTALLDIR=${PREFIX}/share/mupen64plus +BINDIR=${PREFIX}GENTOO_BINDIR +INSTALLDIR=${PREFIX}GENTOO_DATADIR echo "Installing Mupen64Plus to $PREFIX" $INSTALL -D -s -m 0755 mupen64plus "${BINDIR}/mupen64plus" || exit $? --- main/main.c.orig 2008-03-21 20:18:21.000000000 +0100 +++ main/main.c 2008-03-21 22:54:27.000000000 +0100 @@ -982,7 +982,7 @@ if(strlen(g_InstallDir) == 0) { strncpy(g_InstallDir, PREFIX, PATH_MAX); - strncat(g_InstallDir, "/share/mupen64plus/", PATH_MAX - strlen(g_InstallDir)); + strncat(g_InstallDir, "/mupen64plus/", PATH_MAX - strlen(g_InstallDir)); // if install dir is not in the default location, try the same dir as the binary if(!isdir(g_InstallDir))