1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-26 01:06:16 +02:00

Merge branch 'install_locations'

Conflicts:
	configure.in
This commit is contained in:
Ayla 2011-07-11 11:19:18 +02:00
commit 55dad4171d
389 changed files with 311 additions and 2052 deletions

View File

@ -1 +1 @@
SUBDIRS = src
SUBDIRS = src data

View File

@ -24,4 +24,49 @@ AC_CHECK_LIB(SDL_gfx, rotozoomSurfaceXY,,check_sdl_gfx="no")
# Check for libpng
AC_CHECK_LIB(png, png_read_image,,check_png="no")
AC_OUTPUT(Makefile src/Makefile)
AC_ARG_ENABLE(platform,
[ --enable-platform=X specify the targeted platform],
[GMENU2X_PLATFORM="$enableval"], [GMENU2X_PLATFORM="default"])
case "$GMENU2X_PLATFORM" in
gp2x)
AC_DEFINE(PLATFORM_GP2X)
PLATFORM="gp2x"
SCREEN_RES="320x240"
;;
dingux)
AC_DEFINE(PLATFORM_DINGUX)
PLATFORM="dingux"
SCREEN_RES="320x240"
;;
nanonote)
AC_DEFINE(PLATFORM_NANONOTE)
PLATFORM="nanonote"
SCREEN_RES="320x240"
;;
pandora)
AC_DEFINE(PLATFORM_PANDORA)
PLATFORM="pandora"
SCREEN_RES="800x480"
;;
default)
AC_MSG_WARN([*** No --enable-platform specified. Defaulting to "pc".])
AC_DEFINE(PLATFORM_PC)
PLATFORM="pc"
SCREEN_RES="800x480"
;;
pc)
AC_DEFINE(PLATFORM_PC)
PLATFORM="pc"
SCREEN_RES="800x480"
;;
*)
AC_MSG_ERROR([*** Unknown platform.])
;;
esac
AC_SUBST(PLATFORM)
AC_SUBST(SCREEN_RES)
AC_OUTPUT(Makefile src/Makefile data/Makefile)

9
data/Makefile.am Normal file
View File

@ -0,0 +1,9 @@
#pkgdata_DATA = platform/@PLATFORM@ translations skins/@SCREEN_RES@
install-data-local:
test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)"
$(MKDIR_P) "$(DESTDIR)$(pkgdatadir)/skins"
cp -r platform/@PLATFORM@/* "$(DESTDIR)$(pkgdatadir)"
cp -r translations "$(DESTDIR)$(pkgdatadir)"
cp -r skins/@SCREEN_RES@/* "$(DESTDIR)$(pkgdatadir)/skins"

View File

@ -8,4 +8,4 @@ source /etc/profile
setfont /usr/share/kbd/consolefonts/kernel-6x11-font
clear
cd /usr/share/gmenu2x && ./gmenu2x
/usr/bin/gmenu2x.bin

Some files were not shown because too many files have changed in this diff Show More