From 7a9fd0baae1ea39fadb982841b34313db06825c8 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 6 Dec 2010 22:28:14 +0000 Subject: Fix configure and lib path git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28753 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/rbpaths.h | 4 ++-- tools/configure | 22 ++++++++++------------ 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/firmware/export/rbpaths.h b/firmware/export/rbpaths.h index 6c5d769ed8..a15c5aeedd 100644 --- a/firmware/export/rbpaths.h +++ b/firmware/export/rbpaths.h @@ -59,8 +59,8 @@ #define paths_init() #else /* application */ -#define PLUGIN_DIR ROCKBOX_LIBRARY_PATH "/rocks" -#define CODECS_DIR ROCKBOX_LIBRARY_PATH "/codecs" +#define PLUGIN_DIR ROCKBOX_LIBRARY_PATH "/rockbox/rocks" +#define CODECS_DIR ROCKBOX_LIBRARY_PATH "/rockbox/codecs" #define REC_BASE_DIR ROCKBOX_DIR "/" #define PLAYLIST_CATALOG_DEFAULT_DIR ROCKBOX_DIR "/Playlists" diff --git a/tools/configure b/tools/configure index b8cabe79d0..ac24f5bd43 100755 --- a/tools/configure +++ b/tools/configure @@ -24,6 +24,7 @@ rbdir="/.rockbox" need_full_path= bindir= libdir= +sharedir= app_platform= app_lcd_width= @@ -86,7 +87,7 @@ app_get_platform() { # setup files and paths depending on the platform if [ "$app_platform" = "sdl" ]; then if [ -z "$ARG_PREFIX" ]; then - rbdir="/usr/local/share/rockbox" + sharedir="/usr/local/share/rockbox" bindir="/usr/local/bin" libdir="/usr/local/lib" else @@ -98,7 +99,7 @@ app_get_platform() { exit fi fi - rbdir="$ARG_PREFIX/share/rockbox" + sharedir="$ARG_PREFIX/share/rockbox" bindir="$ARG_PREFIX/bin" libdir="$ARG_PREFIX/lib" else @@ -122,7 +123,7 @@ app_get_platform() { echo "environment variable point to the root directory of the Android NDK." exit fi - rbdir="/data/data/org.rockbox/app_rockbox/rockbox" + sharedir="/data/data/org.rockbox/app_rockbox/rockbox" bindir="/data/data/org.rockbox/lib" libdir="/data/data/org.rockbox/app_rockbox" output="librockbox.so" @@ -3144,14 +3145,7 @@ else defendian="ROCKBOX_LITTLE_ENDIAN" fi -if [ "$ARG_RBDIR" ]; then - if [ "$need_full_path" != "yes" ]; then - if [ -z `echo $ARG_RBDIR | grep '^/'` ]; then - rbdir="/"$ARG_RBDIR - else - rbdir=$ARG_RBDIR - fi - fi +if [ "$ARG_RBDIR" != "" ]; then echo "Using alternate rockbox dir: ${rbdir}" fi @@ -3162,6 +3156,7 @@ sed > autoconf.h \ -e "s<@config_rtc@<$config_rtc autoconf.h \ /* root of Rockbox */ #define ROCKBOX_DIR "@RBDIR@" +#define ROCKBOX_SHARE_PATH "@sharepath@" #define ROCKBOX_BINARY_PATH "@binpath@" #define ROCKBOX_LIBRARY_PATH "@libpath@" @@ -3332,6 +3328,7 @@ sed > Makefile \ -e "s<@LANGS@<${buildlangs}