mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
new package: add inittial package 'megaglest-source'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
bcebf79549
commit
4c60452d7c
40
packages/addons/games/megaglest/megaglest-source/build
Executable file
40
packages/addons/games/megaglest/megaglest-source/build
Executable file
@ -0,0 +1,40 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
$SCRIPTS/build toolchain
|
||||||
|
$SCRIPTS/build lua
|
||||||
|
$SCRIPTS/build curl
|
||||||
|
$SCRIPTS/build xerces-c
|
||||||
|
#$SCRIPTS/build wxGTK
|
||||||
|
$SCRIPTS/build $LIBJPEG
|
||||||
|
$SCRIPTS/build libpng
|
||||||
|
$SCRIPTS/build libvorbis
|
||||||
|
$SCRIPTS/build libogg
|
||||||
|
$SCRIPTS/build SDL
|
||||||
|
$SCRIPTS/build openal-soft
|
||||||
|
$SCRIPTS/build libX11
|
||||||
|
$SCRIPTS/build Mesa
|
||||||
|
|
||||||
|
# ensure we dont use fast-math optimization.
|
||||||
|
CFLAGS=`echo $CFLAGS | sed -e "s|-ffast-math||"`
|
||||||
|
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-ffast-math||"`
|
||||||
|
|
||||||
|
# hack for wrong ar implementatition
|
||||||
|
unset AR
|
||||||
|
|
||||||
|
cd $PKG_BUILD
|
||||||
|
./configure --host=$TARGET_NAME \
|
||||||
|
--build=$HOST_NAME \
|
||||||
|
--prefix=/usr \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--with-sdl-prefix="$ROOT/$TOOLCHAIN" \
|
||||||
|
--with-vorbis="$SYSROOT_PREFIX/usr" \
|
||||||
|
--with-ogg="$SYSROOT_PREFIX/usr" \
|
||||||
|
--with-libOpenAL="$SYSROOT_PREFIX/usr" \
|
||||||
|
--with-lua="$SYSROOT_PREFIX/usr" \
|
||||||
|
--with-wx-config=/bin/true \
|
||||||
|
# --with-wx-config="$ROOT/$TOOLCHAIN/bin/wx-config" \
|
||||||
|
|
||||||
|
jam
|
22
packages/addons/games/megaglest/megaglest-source/install
Executable file
22
packages/addons/games/megaglest/megaglest-source/install
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
$SCRIPTS/install curl
|
||||||
|
$SCRIPTS/install xerces-c
|
||||||
|
#$SCRIPTS/install wxGTK
|
||||||
|
$SCRIPTS/install $LIBJPEG
|
||||||
|
$SCRIPTS/install libpng
|
||||||
|
$SCRIPTS/install libvorbis
|
||||||
|
$SCRIPTS/install libogg
|
||||||
|
$SCRIPTS/install SDL
|
||||||
|
$SCRIPTS/install openal-soft
|
||||||
|
$SCRIPTS/install libX11
|
||||||
|
$SCRIPTS/install Mesa
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/games/megaglest/bin
|
||||||
|
cp $PKG_BUILD/glest.bin $INSTALL/usr/games/megaglest
|
||||||
|
cp $PKG_BUILD/glest.ini $INSTALL/usr/games/megaglest
|
||||||
|
# cp $PKG_BUILD/glest_configurator $INSTALL/usr/games/megaglest
|
||||||
|
# cp $PKG_BUILD/glest_editor $INSTALL/usr/games/megaglest
|
||||||
|
# cp $PKG_BUILD/glest_g3dviewer $INSTALL/usr/games/megaglest
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,100 @@
|
|||||||
|
diff -Naur megaglest-source-3.3.5/Jamfile megaglest-source-3.3.5.patch/Jamfile
|
||||||
|
--- megaglest-source-3.3.5/Jamfile 2010-06-26 01:56:31.000000000 +0200
|
||||||
|
+++ megaglest-source-3.3.5.patch/Jamfile 2010-07-15 07:10:13.563768426 +0200
|
||||||
|
@@ -83,50 +83,50 @@
|
||||||
|
ExternalLibs glest.bin : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA JPEG PNG CURL X11 ;
|
||||||
|
IncludeDir glest.bin : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_DIRS) ;
|
||||||
|
|
||||||
|
-#### Editor ####
|
||||||
|
-if $(WX_AVAILABLE) = "yes" {
|
||||||
|
- SubDir TOP glest_map_editor ;
|
||||||
|
-
|
||||||
|
- GLEST_MAP_DIRS = . ;
|
||||||
|
- for i in $(GLEST_DIRS) {
|
||||||
|
- GLEST_MAP_SOURCES += [ Wildcard $(i) : *.cpp *.h ] ;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- Application glest_editor : $(GLEST_MAP_SOURCES) ;
|
||||||
|
- LinkWith glest_editor : glestlib strefloplib ;
|
||||||
|
- ExternalLibs glest_editor : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL WX CURL ;
|
||||||
|
- IncludeDir glest_editor : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_MAP_DIRS) ;
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
-### Viewer ###
|
||||||
|
-if $(WX_AVAILABLE) = "yes" {
|
||||||
|
- SubDir TOP g3d_viewer ;
|
||||||
|
-
|
||||||
|
- GLEST_VIEWER_DIRS =
|
||||||
|
- .
|
||||||
|
-
|
||||||
|
-;
|
||||||
|
-
|
||||||
|
- for i in $(GLEST_VIEWER_DIRS) {
|
||||||
|
- GLEST_VIEWER_SOURCES += [ Wildcard $(i) : *.cpp *.h ] ;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- Application glest_g3dviewer : $(GLEST_VIEWER_SOURCES) ../glest_game/graphics/unit_particle_type.cpp ../glest_game/graphics/particle_type.cpp ;
|
||||||
|
- LinkWith glest_g3dviewer : glestlib strefloplib ;
|
||||||
|
- ExternalLibs glest_g3dviewer : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA JPEG PNG CURL WX X11 ;
|
||||||
|
- IncludeDir glest_g3dviewer : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_VIEWER_DIRS) ../glest_game/graphics ../glest_game/global ../glest_game/sound ../glest_game/game ;
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
-### Configurator ###
|
||||||
|
- SubDir TOP configurator ;
|
||||||
|
-
|
||||||
|
- GLEST_CONFIG_DIRS = . ;
|
||||||
|
- for i in $(GLEST_DIRS) {
|
||||||
|
- GLEST_CONFIG_SOURCES += [ Wildcard $(i) : *.cpp *.h ] ;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- Application glest_configurator : $(GLEST_CONFIG_SOURCES) ;
|
||||||
|
- LinkWith glest_configurator : glestlib strefloplib ;
|
||||||
|
- ExternalLibs glest_configurator : SDL GL GLU XERCES WX CURL ;
|
||||||
|
- IncludeDir glest_configurator : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_CONFIG_DIRS) ;
|
||||||
|
+# #### Editor ####
|
||||||
|
+# if $(WX_AVAILABLE) = "yes" {
|
||||||
|
+# SubDir TOP glest_map_editor ;
|
||||||
|
+#
|
||||||
|
+# GLEST_MAP_DIRS = . ;
|
||||||
|
+# for i in $(GLEST_DIRS) {
|
||||||
|
+# GLEST_MAP_SOURCES += [ Wildcard $(i) : *.cpp *.h ] ;
|
||||||
|
+# }
|
||||||
|
+#
|
||||||
|
+# Application glest_editor : $(GLEST_MAP_SOURCES) ;
|
||||||
|
+# LinkWith glest_editor : glestlib strefloplib ;
|
||||||
|
+# ExternalLibs glest_editor : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL WX CURL ;
|
||||||
|
+# IncludeDir glest_editor : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_MAP_DIRS) ;
|
||||||
|
+# }
|
||||||
|
+
|
||||||
|
+# ### Viewer ###
|
||||||
|
+# if $(WX_AVAILABLE) = "yes" {
|
||||||
|
+# SubDir TOP g3d_viewer ;
|
||||||
|
+#
|
||||||
|
+# GLEST_VIEWER_DIRS =
|
||||||
|
+# .
|
||||||
|
+#
|
||||||
|
+# ;
|
||||||
|
+#
|
||||||
|
+# for i in $(GLEST_VIEWER_DIRS) {
|
||||||
|
+# GLEST_VIEWER_SOURCES += [ Wildcard $(i) : *.cpp *.h ] ;
|
||||||
|
+# }
|
||||||
|
+#
|
||||||
|
+# Application glest_g3dviewer : $(GLEST_VIEWER_SOURCES) ../glest_game/graphics/unit_particle_type.cpp ../glest_game/graphics/particle_type.cpp ;
|
||||||
|
+# LinkWith glest_g3dviewer : glestlib strefloplib ;
|
||||||
|
+# ExternalLibs glest_g3dviewer : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA JPEG PNG CURL WX X11 ;
|
||||||
|
+# IncludeDir glest_g3dviewer : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_VIEWER_DIRS) ../glest_game/graphics ../glest_game/global ../glest_game/sound ../glest_game/game ;
|
||||||
|
+# }
|
||||||
|
+
|
||||||
|
+# ### Configurator ###
|
||||||
|
+# SubDir TOP configurator ;
|
||||||
|
+#
|
||||||
|
+# GLEST_CONFIG_DIRS = . ;
|
||||||
|
+# for i in $(GLEST_DIRS) {
|
||||||
|
+# GLEST_CONFIG_SOURCES += [ Wildcard $(i) : *.cpp *.h ] ;
|
||||||
|
+# }
|
||||||
|
+#
|
||||||
|
+# Application glest_configurator : $(GLEST_CONFIG_SOURCES) ;
|
||||||
|
+# LinkWith glest_configurator : glestlib strefloplib ;
|
||||||
|
+# ExternalLibs glest_configurator : SDL GL GLU XERCES WX CURL ;
|
||||||
|
+# IncludeDir glest_configurator : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_CONFIG_DIRS) ;
|
||||||
|
|
1
packages/addons/games/megaglest/megaglest-source/url
Normal file
1
packages/addons/games/megaglest/megaglest-source/url
Normal file
@ -0,0 +1 @@
|
|||||||
|
http://downloads.sourceforge.net/project/megaglest/current_release/megaglest-source-3.3.5.tar.bz2
|
Loading…
x
Reference in New Issue
Block a user