aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-03-30 22:12:29 +0800
committersobomax <sobomax@FreeBSD.org>2001-03-30 22:12:29 +0800
commitfd45a1775c87363c9b13634d30290f9b4a0d3538 (patch)
treeef234ffc143e0deb67a7c8c9159b5ff2b2ec5860
parentd6601f36273a782b3a4c4aa03954f1e12f36a04b (diff)
downloadfreebsd-ports-gnome-fd45a1775c87363c9b13634d30290f9b4a0d3538.tar.gz
freebsd-ports-gnome-fd45a1775c87363c9b13634d30290f9b4a0d3538.tar.zst
freebsd-ports-gnome-fd45a1775c87363c9b13634d30290f9b4a0d3538.zip
o Use PTHREAD_CFLAGS/PTHREAD_LIBS;
o don't apply bitwise shift to components when setting palette - vgl don't need it unlike fbcon (after which libvgl driver was modelled). Bump PORTREVISION as a result of bugfix.
-rw-r--r--devel/sdl-devel/Makefile5
-rw-r--r--devel/sdl-devel/files/patch-ac36
-rw-r--r--devel/sdl-devel/files/patch-src_video_vgl_SDL__vglvideo.c6
-rw-r--r--devel/sdl12/Makefile5
-rw-r--r--devel/sdl12/files/patch-ac36
-rw-r--r--devel/sdl12/files/patch-src_video_vgl_SDL__vglvideo.c6
6 files changed, 54 insertions, 40 deletions
diff --git a/devel/sdl-devel/Makefile b/devel/sdl-devel/Makefile
index f25238362a95..111608faa758 100644
--- a/devel/sdl-devel/Makefile
+++ b/devel/sdl-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= sdl-devel
PORTVERSION= 1.1.8
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.libsdl.org/release/ \
http://www.devolution.com/~slouken/SDL/release/
@@ -22,7 +23,9 @@ USE_XLIB= yes
USE_ESOUND= yes
INSTALLS_SHLIB= yes
USE_LIBTOOL= yes
-CONFIGURE_ENV= NASM="${LOCALBASE}/bin/nasm"
+CONFIGURE_ENV= NASM="${LOCALBASE}/bin/nasm" \
+ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
CONFIGURE_ARGS= --enable-video-aalib \
--enable-video-svga \
--disable-arts \
diff --git a/devel/sdl-devel/files/patch-ac b/devel/sdl-devel/files/patch-ac
index c29d74064651..3d11707cc27a 100644
--- a/devel/sdl-devel/files/patch-ac
+++ b/devel/sdl-devel/files/patch-ac
@@ -1,9 +1,9 @@
$FreeBSD$
---- configure.orig Fri Jan 5 22:18:22 2001
-+++ configure Sun Jan 21 23:03:55 2001
-@@ -80,6 +80,8 @@
+--- configure.orig Tue Feb 13 00:29:56 2001
++++ configure Fri Mar 30 16:26:42 2001
+@@ -82,6 +82,8 @@
ac_help="$ac_help
--enable-video-svga use SVGAlib video driver [default=no]"
ac_help="$ac_help
@@ -12,7 +12,7 @@ $FreeBSD$
--enable-video-aalib use AAlib video driver [default=no]"
ac_help="$ac_help
--enable-video-opengl include OpenGL context creation [default=yes]"
-@@ -630,9 +632,9 @@
+@@ -632,9 +634,9 @@
# libtool versioning
LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
@@ -24,7 +24,7 @@ $FreeBSD$
-@@ -3022,7 +3024,7 @@
+@@ -3032,7 +3034,7 @@
SDL_CFLAGS=""
@@ -33,7 +33,7 @@ $FreeBSD$
case "$target" in
-@@ -5144,6 +5146,57 @@
+@@ -5213,6 +5215,57 @@
fi
}
@@ -91,7 +91,18 @@ $FreeBSD$
CheckAAlib()
{
# Check whether --enable-video-aalib or --disable-video-aalib was given.
-@@ -5883,6 +5936,7 @@
+@@ -5434,8 +5487,8 @@
+ # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
+ ;;
+ *-*-freebsd*)
+- pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
+- pthread_lib="-pthread"
++ pthread_cflags="-D_REENTRANT ${PTHREAD_CFLAGS}"
++ pthread_lib="${PTHREAD_LIBS}"
+ ;;
+ *-*-openbsd*)
+ pthread_cflags="-D_REENTRANT"
+@@ -6029,6 +6082,7 @@
CheckX11
CheckDGA
CheckSVGA
@@ -99,7 +110,7 @@ $FreeBSD$
CheckAAlib
CheckOpenGL
CheckPTHREAD
-@@ -5899,10 +5953,10 @@
+@@ -6214,10 +6268,10 @@
cat >>$new <$old
# Set up files for the audio library
@@ -114,18 +125,11 @@ $FreeBSD$
# Set up files for the joystick library
# (No joystick support yet)
if test x$enable_joystick = xyes; then
-@@ -8412,6 +8466,7 @@
+@@ -8689,6 +8743,8 @@
src/video/macdsp/Makefile
src/video/macrom/Makefile
src/video/svga/Makefile
+src/video/vgl/Makefile
- src/video/aalib/Makefile
- src/video/wincommon/Makefile
- src/video/windib/Makefile
-@@ -8621,6 +8676,7 @@
- src/video/macdsp/Makefile
- src/video/macrom/Makefile
- src/video/svga/Makefile
+src/video/vgl/Makefile
src/video/aalib/Makefile
src/video/wincommon/Makefile
diff --git a/devel/sdl-devel/files/patch-src_video_vgl_SDL__vglvideo.c b/devel/sdl-devel/files/patch-src_video_vgl_SDL__vglvideo.c
index e98aed5ce760..d08442068f7d 100644
--- a/devel/sdl-devel/files/patch-src_video_vgl_SDL__vglvideo.c
+++ b/devel/sdl-devel/files/patch-src_video_vgl_SDL__vglvideo.c
@@ -437,9 +437,9 @@ $FreeBSD$
+
+ for(i = 0; i < ncolors; i++) {
+ VGLSetPaletteIndex(firstcolor + i,
-+ colors[i].r>>2,
-+ colors[i].g>>2,
-+ colors[i].b>>2);
++ colors[i].r,
++ colors[i].g,
++ colors[i].b);
+ }
+ return 1;
+}
diff --git a/devel/sdl12/Makefile b/devel/sdl12/Makefile
index f25238362a95..111608faa758 100644
--- a/devel/sdl12/Makefile
+++ b/devel/sdl12/Makefile
@@ -7,6 +7,7 @@
PORTNAME= sdl-devel
PORTVERSION= 1.1.8
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.libsdl.org/release/ \
http://www.devolution.com/~slouken/SDL/release/
@@ -22,7 +23,9 @@ USE_XLIB= yes
USE_ESOUND= yes
INSTALLS_SHLIB= yes
USE_LIBTOOL= yes
-CONFIGURE_ENV= NASM="${LOCALBASE}/bin/nasm"
+CONFIGURE_ENV= NASM="${LOCALBASE}/bin/nasm" \
+ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
CONFIGURE_ARGS= --enable-video-aalib \
--enable-video-svga \
--disable-arts \
diff --git a/devel/sdl12/files/patch-ac b/devel/sdl12/files/patch-ac
index c29d74064651..3d11707cc27a 100644
--- a/devel/sdl12/files/patch-ac
+++ b/devel/sdl12/files/patch-ac
@@ -1,9 +1,9 @@
$FreeBSD$
---- configure.orig Fri Jan 5 22:18:22 2001
-+++ configure Sun Jan 21 23:03:55 2001
-@@ -80,6 +80,8 @@
+--- configure.orig Tue Feb 13 00:29:56 2001
++++ configure Fri Mar 30 16:26:42 2001
+@@ -82,6 +82,8 @@
ac_help="$ac_help
--enable-video-svga use SVGAlib video driver [default=no]"
ac_help="$ac_help
@@ -12,7 +12,7 @@ $FreeBSD$
--enable-video-aalib use AAlib video driver [default=no]"
ac_help="$ac_help
--enable-video-opengl include OpenGL context creation [default=yes]"
-@@ -630,9 +632,9 @@
+@@ -632,9 +634,9 @@
# libtool versioning
LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
@@ -24,7 +24,7 @@ $FreeBSD$
-@@ -3022,7 +3024,7 @@
+@@ -3032,7 +3034,7 @@
SDL_CFLAGS=""
@@ -33,7 +33,7 @@ $FreeBSD$
case "$target" in
-@@ -5144,6 +5146,57 @@
+@@ -5213,6 +5215,57 @@
fi
}
@@ -91,7 +91,18 @@ $FreeBSD$
CheckAAlib()
{
# Check whether --enable-video-aalib or --disable-video-aalib was given.
-@@ -5883,6 +5936,7 @@
+@@ -5434,8 +5487,8 @@
+ # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
+ ;;
+ *-*-freebsd*)
+- pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
+- pthread_lib="-pthread"
++ pthread_cflags="-D_REENTRANT ${PTHREAD_CFLAGS}"
++ pthread_lib="${PTHREAD_LIBS}"
+ ;;
+ *-*-openbsd*)
+ pthread_cflags="-D_REENTRANT"
+@@ -6029,6 +6082,7 @@
CheckX11
CheckDGA
CheckSVGA
@@ -99,7 +110,7 @@ $FreeBSD$
CheckAAlib
CheckOpenGL
CheckPTHREAD
-@@ -5899,10 +5953,10 @@
+@@ -6214,10 +6268,10 @@
cat >>$new <$old
# Set up files for the audio library
@@ -114,18 +125,11 @@ $FreeBSD$
# Set up files for the joystick library
# (No joystick support yet)
if test x$enable_joystick = xyes; then
-@@ -8412,6 +8466,7 @@
+@@ -8689,6 +8743,8 @@
src/video/macdsp/Makefile
src/video/macrom/Makefile
src/video/svga/Makefile
+src/video/vgl/Makefile
- src/video/aalib/Makefile
- src/video/wincommon/Makefile
- src/video/windib/Makefile
-@@ -8621,6 +8676,7 @@
- src/video/macdsp/Makefile
- src/video/macrom/Makefile
- src/video/svga/Makefile
+src/video/vgl/Makefile
src/video/aalib/Makefile
src/video/wincommon/Makefile
diff --git a/devel/sdl12/files/patch-src_video_vgl_SDL__vglvideo.c b/devel/sdl12/files/patch-src_video_vgl_SDL__vglvideo.c
index e98aed5ce760..d08442068f7d 100644
--- a/devel/sdl12/files/patch-src_video_vgl_SDL__vglvideo.c
+++ b/devel/sdl12/files/patch-src_video_vgl_SDL__vglvideo.c
@@ -437,9 +437,9 @@ $FreeBSD$
+
+ for(i = 0; i < ncolors; i++) {
+ VGLSetPaletteIndex(firstcolor + i,
-+ colors[i].r>>2,
-+ colors[i].g>>2,
-+ colors[i].b>>2);
++ colors[i].r,
++ colors[i].g,
++ colors[i].b);
+ }
+ return 1;
+}