aboutsummaryrefslogtreecommitdiffstats
path: root/devel/sdl12
diff options
context:
space:
mode:
authorcpiazza <cpiazza@FreeBSD.org>2000-02-03 16:19:18 +0800
committercpiazza <cpiazza@FreeBSD.org>2000-02-03 16:19:18 +0800
commitf091d346d2c2bcf60d295464143819369a571162 (patch)
treeb2734418f3b31f187519e22304c1edd40a1f132b /devel/sdl12
parentb32c84c7f94fd6292ef59164617cd22d1ab0040b (diff)
downloadfreebsd-ports-graphics-f091d346d2c2bcf60d295464143819369a571162.tar.gz
freebsd-ports-graphics-f091d346d2c2bcf60d295464143819369a571162.tar.zst
freebsd-ports-graphics-f091d346d2c2bcf60d295464143819369a571162.zip
Merge changes from Maxim Sobolev's update to this port.
PR: 16498 Submitted by: Maxim Sobolev <sobomax@altavista.net>
Diffstat (limited to 'devel/sdl12')
-rw-r--r--devel/sdl12/Makefile10
-rw-r--r--devel/sdl12/files/patch-ac4
-rw-r--r--devel/sdl12/pkg-plist5
3 files changed, 11 insertions, 8 deletions
diff --git a/devel/sdl12/Makefile b/devel/sdl12/Makefile
index c53b3d506c3..ab7b9436e05 100644
--- a/devel/sdl12/Makefile
+++ b/devel/sdl12/Makefile
@@ -22,13 +22,11 @@ USE_GMAKE= yes
USE_XLIB= yes
GNU_CONFIGURE= yes
-#DGA seems hosed, at least on my two 4.0 boxes (XFree86 3.3.5)
-CONFIGURE_ARGS= --disable-video-x11-dga
-
CONFIGURE_ENV= NASM="${LOCALBASE}/bin/nasm" \
LOCALBASE="${LOCALBASE}"
-CFLAGS+= -I${LOCALBASE}/include/pthread/linuxthreads
+CFLAGS+= -I${LOCALBASE}/include/pthread/linuxthreads \
+ -D_THREAD_SAFE
post-install:
@ ${MKDIR} ${PREFIX}/share/examples/SDL
@@ -37,8 +35,8 @@ post-install:
.for file in BUGS COPYING CREDITS README WhatsNew docs.html
@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/SDL
.endfor
- @ cd ${WRKSRC}/docs; tar cf - audio cdrom events images index.html threads video | \
- (cd ${PREFIX}/share/doc/SDL; tar --unlink -xf - )
+ @ cd ${WRKSRC}/docs; tar cf - `/bin/ls | ${GREP} -v Makefile` | \
+ (cd ${PREFIX}/share/doc/SDL; ${TAR} --unlink -xf - )
.endif
.include <bsd.port.mk>
diff --git a/devel/sdl12/files/patch-ac b/devel/sdl12/files/patch-ac
index cc87deaad1a..64f6440c88b 100644
--- a/devel/sdl12/files/patch-ac
+++ b/devel/sdl12/files/patch-ac
@@ -19,7 +19,7 @@
;;
*)
- pthread_lib="-lpthread"
-+ pthread_lib="-L""$LOCALBASE""/lib -llthread"
++ pthread_lib="-L""$LOCALBASE""/lib -llthread -llgcc_r"
;;
esac
LIBS="$LIBS $pthread_lib"
@@ -28,7 +28,7 @@
if test x$use_pthreads = xyes; then
CFLAGS="$CFLAGS -D_REENTRANT -DSDL_USE_PTHREADS"
- SDL_CFLAGS="$SDL_CFLAGS -D_REENTRANT"
-+ SDL_CFLAGS="$SDL_CFLAGS -D_REENTRANT -I""$LOCALBASE""/include/pthread/linuxthreads"
++ SDL_CFLAGS="$SDL_CFLAGS -D_REENTRANT -D_THREAD_SAFE -I""$LOCALBASE""/include/pthread/linuxthreads"
SDL_LIBS="$SDL_LIBS $pthread_lib"
fi
fi
diff --git a/devel/sdl12/pkg-plist b/devel/sdl12/pkg-plist
index d4a9c78dadf..a7c4b2e9438 100644
--- a/devel/sdl12/pkg-plist
+++ b/devel/sdl12/pkg-plist
@@ -53,11 +53,16 @@ share/doc/SDL/events/keysym.html
share/doc/SDL/images/rainbow.gif
share/doc/SDL/index.html
share/doc/SDL/threads/index.html
+share/doc/SDL/time/examples.html
+share/doc/SDL/time/funclist.html
+share/doc/SDL/time/functions.html
+share/doc/SDL/time/index.html
share/doc/SDL/video/examples.html
share/doc/SDL/video/funclist.html
share/doc/SDL/video/functions.html
share/doc/SDL/video/index.html
@dirrm share/doc/SDL/video
+@dirrm share/doc/SDL/time
@dirrm share/doc/SDL/threads
@dirrm share/doc/SDL/images
@dirrm share/doc/SDL/events