1
0
Fork 0
forked from len0rd/rockbox

Fix configure and lib path

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28753 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2010-12-06 22:28:14 +00:00
parent 2c2416094f
commit 7a9fd0baae
2 changed files with 12 additions and 14 deletions

View file

@ -59,8 +59,8 @@
#define paths_init() #define paths_init()
#else /* application */ #else /* application */
#define PLUGIN_DIR ROCKBOX_LIBRARY_PATH "/rocks" #define PLUGIN_DIR ROCKBOX_LIBRARY_PATH "/rockbox/rocks"
#define CODECS_DIR ROCKBOX_LIBRARY_PATH "/codecs" #define CODECS_DIR ROCKBOX_LIBRARY_PATH "/rockbox/codecs"
#define REC_BASE_DIR ROCKBOX_DIR "/" #define REC_BASE_DIR ROCKBOX_DIR "/"
#define PLAYLIST_CATALOG_DEFAULT_DIR ROCKBOX_DIR "/Playlists" #define PLAYLIST_CATALOG_DEFAULT_DIR ROCKBOX_DIR "/Playlists"

22
tools/configure vendored
View file

@ -24,6 +24,7 @@ rbdir="/.rockbox"
need_full_path= need_full_path=
bindir= bindir=
libdir= libdir=
sharedir=
app_platform= app_platform=
app_lcd_width= app_lcd_width=
@ -86,7 +87,7 @@ app_get_platform() {
# setup files and paths depending on the platform # setup files and paths depending on the platform
if [ "$app_platform" = "sdl" ]; then if [ "$app_platform" = "sdl" ]; then
if [ -z "$ARG_PREFIX" ]; then if [ -z "$ARG_PREFIX" ]; then
rbdir="/usr/local/share/rockbox" sharedir="/usr/local/share/rockbox"
bindir="/usr/local/bin" bindir="/usr/local/bin"
libdir="/usr/local/lib" libdir="/usr/local/lib"
else else
@ -98,7 +99,7 @@ app_get_platform() {
exit exit
fi fi
fi fi
rbdir="$ARG_PREFIX/share/rockbox" sharedir="$ARG_PREFIX/share/rockbox"
bindir="$ARG_PREFIX/bin" bindir="$ARG_PREFIX/bin"
libdir="$ARG_PREFIX/lib" libdir="$ARG_PREFIX/lib"
else else
@ -122,7 +123,7 @@ app_get_platform() {
echo "environment variable point to the root directory of the Android NDK." echo "environment variable point to the root directory of the Android NDK."
exit exit
fi fi
rbdir="/data/data/org.rockbox/app_rockbox/rockbox" sharedir="/data/data/org.rockbox/app_rockbox/rockbox"
bindir="/data/data/org.rockbox/lib" bindir="/data/data/org.rockbox/lib"
libdir="/data/data/org.rockbox/app_rockbox" libdir="/data/data/org.rockbox/app_rockbox"
output="librockbox.so" output="librockbox.so"
@ -3144,14 +3145,7 @@ else
defendian="ROCKBOX_LITTLE_ENDIAN" defendian="ROCKBOX_LITTLE_ENDIAN"
fi fi
if [ "$ARG_RBDIR" ]; then 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
echo "Using alternate rockbox dir: ${rbdir}" echo "Using alternate rockbox dir: ${rbdir}"
fi fi
@ -3162,6 +3156,7 @@ sed > autoconf.h \
-e "s<@config_rtc@<$config_rtc<g" \ -e "s<@config_rtc@<$config_rtc<g" \
-e "s<@have_rtc_alarm@<$have_rtc_alarm<g" \ -e "s<@have_rtc_alarm@<$have_rtc_alarm<g" \
-e "s<@RBDIR@<${rbdir}<g" \ -e "s<@RBDIR@<${rbdir}<g" \
-e "s<@sharepath@<${sharedir}<g" \
-e "s<@binpath@<${bindir}<g" \ -e "s<@binpath@<${bindir}<g" \
-e "s<@libpath@<${libdir}<g" \ -e "s<@libpath@<${libdir}<g" \
-e "s<@have_backlight@<$have_backlight<g" \ -e "s<@have_backlight@<$have_backlight<g" \
@ -3202,6 +3197,7 @@ sed > autoconf.h \
/* root of Rockbox */ /* root of Rockbox */
#define ROCKBOX_DIR "@RBDIR@" #define ROCKBOX_DIR "@RBDIR@"
#define ROCKBOX_SHARE_PATH "@sharepath@"
#define ROCKBOX_BINARY_PATH "@binpath@" #define ROCKBOX_BINARY_PATH "@binpath@"
#define ROCKBOX_LIBRARY_PATH "@libpath@" #define ROCKBOX_LIBRARY_PATH "@libpath@"
@ -3332,6 +3328,7 @@ sed > Makefile \
-e "s<@LANGS@<${buildlangs}<g" \ -e "s<@LANGS@<${buildlangs}<g" \
-e "s<@USE_ELF@<${USE_ELF}<g" \ -e "s<@USE_ELF@<${USE_ELF}<g" \
-e "s<@RBDIR@<${rbdir}<g" \ -e "s<@RBDIR@<${rbdir}<g" \
-e "s<@sharepath@<${sharedir}<g" \
-e "s<@binpath@<${bindir}<g" \ -e "s<@binpath@<${bindir}<g" \
-e "s<@libpath@<${libdir}<g" \ -e "s<@libpath@<${libdir}<g" \
-e "s<@PREFIX@<$ARG_PREFIX<g" \ -e "s<@PREFIX@<$ARG_PREFIX<g" \
@ -3401,7 +3398,8 @@ export ENC_OPTS=@ENC_OPTS@
export ENCODER=@ENCODER@ export ENCODER=@ENCODER@
export USE_ELF=@USE_ELF@ export USE_ELF=@USE_ELF@
export RBDIR=@RBDIR@ export RBDIR=@RBDIR@
export ROCKBOX_BINARY_PATH=@binpath@ export ROCKBOX_SHARE_PATH=@sharepath@
export ROCKBOX_LIBRARY_PATH=@libpath@
export ROCKBOX_LIBRARY_PATH=@libpath@ export ROCKBOX_LIBRARY_PATH=@libpath@
export SDLCONFIG=@SDLCONFIG@ export SDLCONFIG=@SDLCONFIG@