added ebuild for maniadrive (doesn't build :-( )
This commit is contained in:
parent
c2844742e7
commit
a6e9089f0a
6 changed files with 298 additions and 0 deletions
12
games-sports/maniadrive/files/digest-maniadrive-1.2
Normal file
12
games-sports/maniadrive/files/digest-maniadrive-1.2
Normal file
|
@ -0,0 +1,12 @@
|
|||
MD5 d5f8e8b1beb0bd82a8fe610661b04f4c ManiaDrive-1.1-linux-i386.tar.gz 60260833
|
||||
RMD160 50d38937d770e4bd5462f1cd045574d6903f5e35 ManiaDrive-1.1-linux-i386.tar.gz 60260833
|
||||
SHA256 4e3e2257b0f901e2976d8ea26265a3f8c2a7295d224f64637980f981357186f6 ManiaDrive-1.1-linux-i386.tar.gz 60260833
|
||||
MD5 90dec2154802225980f8b4ebd6570069 ManiaDrive-1.2-src.tar.gz 263834
|
||||
RMD160 09f94f7c2936a2ad5c52742fe9456f892988da46 ManiaDrive-1.2-src.tar.gz 263834
|
||||
SHA256 ffa8bafe3b2e796602e2dd462d4d0fdff2cbf43388d1bae029487b7f17e68b84 ManiaDrive-1.2-src.tar.gz 263834
|
||||
MD5 12ad91f56f259553c03b0d3f1952a8e3 ode.tar.gz 150748
|
||||
RMD160 4b76b36debf363c2e5e5461672dd228f066204c7 ode.tar.gz 150748
|
||||
SHA256 5a0f868969be62c6c6d7575ed2fefa637299055c216b30b85a828a99c24478c3 ode.tar.gz 150748
|
||||
MD5 b8db3e7f81020978cef66435c2346c2e php5.2-latest.tar.gz 9444643
|
||||
RMD160 2352d07ef35319bc59b55e1b8da8508242a405ae php5.2-latest.tar.gz 9444643
|
||||
SHA256 ec8b9b2350eb1a65911c34c603c30ee8a8eb850a6c42c963a6a6c9d72158ede0 php5.2-latest.tar.gz 9444643
|
103
games-sports/maniadrive/files/maniadrive-1.1-no-download.patch
Normal file
103
games-sports/maniadrive/files/maniadrive-1.1-no-download.patch
Normal file
|
@ -0,0 +1,103 @@
|
|||
--- configure.old 2006-08-18 23:12:18.000000000 +0200
|
||||
+++ configure 2006-08-19 00:56:59.000000000 +0200
|
||||
@@ -60,6 +60,7 @@
|
||||
echo " --force-php-install Force PHP 5 local reinstall"
|
||||
echo " --ode-cvs Use ODE CVS version"
|
||||
echo " --disable-x Disable X/GL/GLU test (server)"
|
||||
+ echo " --no-download Disable ode and php5 download"
|
||||
exit 0
|
||||
}
|
||||
|
||||
@@ -88,12 +89,18 @@
|
||||
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/opende co -r UNSTABLE -P raydium/ode
|
||||
exit_if_error "$?" "CVS server error ? Try manual install (http://ode.org)"
|
||||
else
|
||||
- echo " Downloading 'stable CVS' version from Raydium website ..."
|
||||
- if [ -f "raydium/ode.tar.gz" ]; then
|
||||
- rm -f raydium/ode.tar.gz
|
||||
+ if [ $no_download = "true" ]; then
|
||||
+ if ! [ -f "raydium/ode.tar.gz" ]; then
|
||||
+ exit_if_error "1" "ode.tar.gz must be present in the raydium directory when using --no-download"
|
||||
+ fi
|
||||
+ else
|
||||
+ echo " Downloading 'stable CVS' version from Raydium website ..."
|
||||
+ if [ -f "raydium/ode.tar.gz" ]; then
|
||||
+ rm -f raydium/ode.tar.gz
|
||||
+ fi
|
||||
+ wget -O raydium/ode.tar.gz http://freeway.raydium.org/data/stable_mirrors/ode.tar.gz
|
||||
+ exit_if_error "$?" "Error downloading."
|
||||
fi
|
||||
- wget -O raydium/ode.tar.gz http://freeway.raydium.org/data/stable_mirrors/ode.tar.gz
|
||||
- exit_if_error "$?" "Error downloading."
|
||||
|
||||
# uncompress
|
||||
echo " Uncompressing ..."
|
||||
@@ -180,9 +187,15 @@
|
||||
exit_if_error "$?" "xml2-config not found in path. Please install 'libxml2-devel' to compile PHP"
|
||||
|
||||
# download
|
||||
- echo " Downloading latest PHP5 ..."
|
||||
- wget -O raydium/php-latest.tar.gz http://snaps.php.net/php5.2-latest.tar.gz
|
||||
- exit_if_error "$?" "wget not found, or network error"
|
||||
+ if [ $no_download == "true" ]; then
|
||||
+ if ! [ -f "raydium/php-latest.tar.gz" ]; then
|
||||
+ exit_if_error "1" "php-latest.tar.gz must be present in the raydium directory when using --no-download"
|
||||
+ fi
|
||||
+ else
|
||||
+ echo " Downloading latest PHP5 ..."
|
||||
+ wget -O raydium/php-latest.tar.gz http://snaps.php.net/php5.2-latest.tar.gz
|
||||
+ exit_if_error "$?" "wget not found, or network error"
|
||||
+ fi
|
||||
|
||||
# uncompress
|
||||
echo " Uncompressing ..."
|
||||
@@ -228,37 +241,28 @@
|
||||
|
||||
####### Main
|
||||
|
||||
+
|
||||
+ode_cvs="false"
|
||||
+disable_x="no"
|
||||
+force_ode="false"
|
||||
+force_php="false"
|
||||
+no_download="false"
|
||||
+
|
||||
for i in "$@"; do
|
||||
if [ $i = "--help" ]; then
|
||||
usage_print
|
||||
fi
|
||||
-done
|
||||
-
|
||||
-ode_cvs="false"
|
||||
-for i in "$@"; do
|
||||
if [ $i = "--ode-cvs" ]; then
|
||||
- ode_cvs="true"
|
||||
+ ode_cvs="true"
|
||||
fi
|
||||
-done
|
||||
-
|
||||
-disable_x="no"
|
||||
-for i in "$@"; do
|
||||
if [ $i = "--disable-x" ]; then
|
||||
- disable_x="yes"
|
||||
+ disable_x="yes"
|
||||
fi
|
||||
-done
|
||||
-
|
||||
-force_ode="false"
|
||||
-for i in "$@"; do
|
||||
if [ $i = "--force-ode-install" ]; then
|
||||
- force_ode="true"
|
||||
+ force_ode="true"
|
||||
fi
|
||||
-done
|
||||
-
|
||||
-force_php="false"
|
||||
-for i in "$@"; do
|
||||
- if [ $i = "--force-php-install" ]; then
|
||||
- force_php="true"
|
||||
+ if [ $i = "--no-download" ]; then
|
||||
+ no_download="true"
|
||||
fi
|
||||
done
|
||||
|
17
games-sports/maniadrive/files/maniadrive-1.1-ocomp-fix.patch
Normal file
17
games-sports/maniadrive/files/maniadrive-1.1-ocomp-fix.patch
Normal file
|
@ -0,0 +1,17 @@
|
|||
--- ocomp.sh.old 2006-08-19 01:46:14.000000000 +0200
|
||||
+++ ocomp.sh 2006-08-19 01:48:12.000000000 +0200
|
||||
@@ -3,12 +3,10 @@
|
||||
# Small and ugly "static compiler" for Raydium apps, with ODE
|
||||
# Use "./ocomp.sh test6.c" for example.
|
||||
|
||||
+OUTPUT_FILE=`echo $1 | cut -f1 -d.`
|
||||
ulimit -c 0
|
||||
-rm test
|
||||
-gcc -g $1 -Wall -o test -L/usr/X11R6/lib/ -lXinerama -lGL -lGLU -lm -lopenal -lalut -ljpeg \
|
||||
+gcc -g $1 -Wall -o $OUTPUT_FILE -L/usr/X11R6/lib/ -lXinerama -lGL -lGLU -lm -lopenal -lalut -ljpeg \
|
||||
-Iraydium/ode/include/ raydium/ode/lib/libode.a -lvorbis -lvorbisfile -logg \
|
||||
-Iraydium/php/ -Iraydium/php/include -Iraydium/php/main/ -Iraydium/php/Zend -Iraydium/php/TSRM raydium/php/libs/libphp5.a \
|
||||
-lresolv -lcrypt -lz -lcurl -lxml2 -lGLEW
|
||||
sync
|
||||
-shift
|
||||
-./test "$@"
|
|
@ -0,0 +1,54 @@
|
|||
--- configure.old2 2006-08-19 02:54:26.000000000 +0200
|
||||
+++ configure 2006-08-19 02:56:59.000000000 +0200
|
||||
@@ -339,51 +339,6 @@
|
||||
exit_if_error "$?" "You must install libglew devel package"
|
||||
|
||||
|
||||
-# OpenAL
|
||||
-file="
|
||||
-#include <AL/al.h>
|
||||
-#include <AL/alc.h>
|
||||
-#include <AL/alut.h>
|
||||
-#include <time.h>
|
||||
-#include <stdio.h>
|
||||
-#include <stdlib.h>
|
||||
-#include <sys/time.h>
|
||||
-#include <sys/types.h>
|
||||
-#include <unistd.h>
|
||||
-int main(int argc, char **argv) {
|
||||
-ALCdevice *dev;
|
||||
-const ALubyte *initstr=(const ALubyte *) \"'( ( devices '( native null ) ) )\";
|
||||
-dev=alcOpenDevice(initstr);
|
||||
-sleep(1);
|
||||
-alcCloseDevice(dev);
|
||||
-return 0; }"
|
||||
-test_build "OpenAL" "$file" "-lopenal"
|
||||
-exit_if_error "$?" "openal-devel is required. Official CVS may be a good idea"
|
||||
-
|
||||
-# OpenAL 1.1
|
||||
-file="
|
||||
-#include <AL/al.h>
|
||||
-#include <AL/alc.h>
|
||||
-#include <AL/alut.h>
|
||||
-#include <time.h>
|
||||
-#include <stdio.h>
|
||||
-#include <stdlib.h>
|
||||
-#include <sys/time.h>
|
||||
-#include <sys/types.h>
|
||||
-#include <unistd.h>
|
||||
-int main(int argc, char **argv) {
|
||||
-ALCdevice *dev;
|
||||
-const ALubyte *initstr=(const ALubyte *) \"'( ( devices '( native null ) ) )\";
|
||||
-dev=alcOpenDevice(initstr);
|
||||
-sleep(1);
|
||||
-#ifndef ALUT_API_MAJOR_VERSION
|
||||
-#error ALUT for OpenAL 1.1 is required
|
||||
-#endif
|
||||
-alcCloseDevice(dev);
|
||||
-return 0; }"
|
||||
-test_build "OpenAL 1.1 and ALUT" "$file" "-lopenal -lalut"
|
||||
-exit_if_error "$?" "Cannot find OpenAL 1.1 and ALUT. You can try to remove -lalut from Makefile and/or *comp*sh scripts, but Raydium with OpenAL 1.0 is not supported."
|
||||
-
|
||||
# OGG/Vorbis
|
||||
file='
|
||||
#include <stdio.h>
|
Loading…
Add table
Add a link
Reference in a new issue