From a9e8c75f5ba389ee23ee02aa66d0691612398437 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Wed, 21 Jan 2009 12:05:29 +0000 Subject: [PATCH] - s/-lpthread/-pthread spotted by landry@ ok eric@ --- graphics/glitz/Makefile | 7 ++-- graphics/glitz/patches/patch-configure | 48 ++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 graphics/glitz/patches/patch-configure diff --git a/graphics/glitz/Makefile b/graphics/glitz/Makefile index 0d8f71ef8bc..568907e5d38 100644 --- a/graphics/glitz/Makefile +++ b/graphics/glitz/Makefile @@ -1,9 +1,10 @@ -# $OpenBSD: Makefile,v 1.6 2007/10/31 22:31:04 eric Exp $ +# $OpenBSD: Makefile,v 1.7 2009/01/21 12:05:29 ajacoutot Exp $ COMMENT= OpenGL image compositing library DISTNAME= glitz-0.5.6 -PKGNAME= ${DISTNAME}p0 +PKGNAME= ${DISTNAME}p1 + SHARED_LIBS += glitz 2.0 # .1.0 SHARED_LIBS += glitz-glx 2.0 # .1.0 @@ -13,7 +14,7 @@ HOMEPAGE= http://www.freedesktop.org/Software/glitz MAINTAINER= Eric Faurot -WANTLIB= GL X11 Xau Xdmcp m pthread +WANTLIB= GL X11 Xau Xdmcp m # LGPL PERMIT_PACKAGE_CDROM= Yes diff --git a/graphics/glitz/patches/patch-configure b/graphics/glitz/patches/patch-configure new file mode 100644 index 00000000000..9c156b876d5 --- /dev/null +++ b/graphics/glitz/patches/patch-configure @@ -0,0 +1,48 @@ +$OpenBSD: patch-configure,v 1.1 2009/01/21 12:05:29 ajacoutot Exp $ +--- configure.orig Wed Jan 21 09:01:59 2009 ++++ configure Wed Jan 21 09:02:21 2009 +@@ -21714,7 +21714,7 @@ echo "${ECHO_T}$xthreads" >&6 + + if test "x$xthreads" = "xyes" + then +- GLX_LIBS="$GLX_LIBS -lpthread" ++ GLX_LIBS="$GLX_LIBS -pthread" + cat >>confdefs.h <<\_ACEOF + #define XTHREADS 1 + _ACEOF +@@ -21830,7 +21830,7 @@ echo "${ECHO_T}$use_agl" >&6 + + if test "x$use_agl" = "xyes"; then + save_libs="$LIBS" +- LIBS="-lpthread" ++ LIBS="-pthread" + + echo "$as_me:$LINENO: checking for PTHREADS" >&5 + echo $ECHO_N "checking for PTHREADS... $ECHO_C" >&6 +@@ -21892,7 +21892,7 @@ rm -f conftest.err conftest.$ac_objext \ + + if test "x$use_pthreads" = "xyes" + then +- AGL_LIBS="$AGL_LIBS -lpthread" ++ AGL_LIBS="$AGL_LIBS -pthread" + cat >>confdefs.h <<\_ACEOF + #define PTHREADS 1 + _ACEOF +@@ -21945,7 +21945,7 @@ if test "x$use_egl" = "xyes"; then + EGL_CFLAGS="$EGL_CFLAGS" + + save_libs="$LIBS" +- LIBS="-lpthread" ++ LIBS="-pthread" + + echo "$as_me:$LINENO: checking for PTHREADS" >&5 + echo $ECHO_N "checking for PTHREADS... $ECHO_C" >&6 +@@ -22007,7 +22007,7 @@ rm -f conftest.err conftest.$ac_objext \ + + if test "x$use_pthreads" = "xyes" + then +- EGL_LIBS="$EGL_LIBS -lpthread" ++ EGL_LIBS="$EGL_LIBS -pthread" + cat >>confdefs.h <<\_ACEOF + #define PTHREADS 1 + _ACEOF