aboutsummaryrefslogtreecommitdiff
path: root/astro/stellarium
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-06-22 07:59:39 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-06-22 07:59:39 +0000
commit534f473cd50799533fb3e86a963522014804aa19 (patch)
treed39004677565c60f08140cae2a659ec3d4312c7f /astro/stellarium
parent09d48e6c55a665f966e0c2bb55773d17767867c3 (diff)
downloadports-534f473cd50799533fb3e86a963522014804aa19.tar.gz
ports-534f473cd50799533fb3e86a963522014804aa19.zip
Notes
Diffstat (limited to 'astro/stellarium')
-rw-r--r--astro/stellarium/Makefile1
-rw-r--r--astro/stellarium/files/patch-src_stel_sdl.cpp23
2 files changed, 24 insertions, 0 deletions
diff --git a/astro/stellarium/Makefile b/astro/stellarium/Makefile
index c96f03e55199..a3ca6d2bd6a6 100644
--- a/astro/stellarium/Makefile
+++ b/astro/stellarium/Makefile
@@ -7,6 +7,7 @@
PORTNAME= stellarium
PORTVERSION= 0.6.0
+PORTREVISION= 1
CATEGORIES= astro
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/astro/stellarium/files/patch-src_stel_sdl.cpp b/astro/stellarium/files/patch-src_stel_sdl.cpp
new file mode 100644
index 000000000000..f31053849c37
--- /dev/null
+++ b/astro/stellarium/files/patch-src_stel_sdl.cpp
@@ -0,0 +1,23 @@
+--- src/stel_sdl.cpp.orig Thu Jun 17 14:11:01 2004
++++ src/stel_sdl.cpp Thu Jun 17 14:16:40 2004
+@@ -60,9 +60,18 @@
+ Screen = SDL_SetVideoMode(core->get_screen_W(), core->get_screen_H(), core->get_bppMode(), Vflags);
+ if(!Screen)
+ {
+- printf("sdl: Couldn't set %dx%d video mode: %s!",
++ printf("sdl: Couldn't set %dx%d video mode (%s), retrying with stencil size 0\n",
+ core->get_screen_W(), core->get_screen_H(), SDL_GetError());
+- exit(-1);
++
++ SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE,0);
++ Screen = SDL_SetVideoMode(core->get_screen_W(), core->get_screen_H(), core->get_bppMode(), Vflags);
++
++ if(!Screen)
++ {
++ printf("sdl: Couldn't set %dx%d video mode: %s!\n",
++ core->get_screen_W(), core->get_screen_H(), SDL_GetError());
++ exit(-1);
++ }
+ }
+
+ // Disable key repeat