aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/mesagl
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2003-05-14 01:27:49 +0800
committersobomax <sobomax@FreeBSD.org>2003-05-14 01:27:49 +0800
commit7160f5edeb4f6722f6c04f25f3fc7c93876a1786 (patch)
treed34f03aacdcccdee021888f09a3bea18dd259759 /graphics/mesagl
parentd4817e81f57a2c76376a1c5ad65092f9a544ecf6 (diff)
downloadfreebsd-ports-gnome-7160f5edeb4f6722f6c04f25f3fc7c93876a1786.tar.gz
freebsd-ports-gnome-7160f5edeb4f6722f6c04f25f3fc7c93876a1786.tar.zst
freebsd-ports-gnome-7160f5edeb4f6722f6c04f25f3fc7c93876a1786.zip
Fix patch target on non-current systems.
Diffstat (limited to 'graphics/mesagl')
-rw-r--r--graphics/mesagl/Makefile2
-rw-r--r--graphics/mesagl/files/patch-aa2
2 files changed, 2 insertions, 2 deletions
diff --git a/graphics/mesagl/Makefile b/graphics/mesagl/Makefile
index bdea142072e1..ee1d7f32ff47 100644
--- a/graphics/mesagl/Makefile
+++ b/graphics/mesagl/Makefile
@@ -58,7 +58,7 @@ MAKE_ENV+= SUB_GL="${SUB_GL}" \
.error You have `USE_MESA' variable defined either in environment or in make(1) arguments. Please undefine and try again.
.endif
-pre-patch:
+post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
post-install:
diff --git a/graphics/mesagl/files/patch-aa b/graphics/mesagl/files/patch-aa
index 54458f0e86bf..b3a8a6f07baa 100644
--- a/graphics/mesagl/files/patch-aa
+++ b/graphics/mesagl/files/patch-aa
@@ -32,6 +32,6 @@ $FreeBSD$
echo "${ECHO_T}yes" >&6
- CFLAGS="$CFLAGS -D_REENTRANT -DPTHREADS"
+ CFLAGS="$CFLAGS -D_THREAD_SAFE -D_REENTRANT -DPTHREADS"
- THREAD_LIBS="$THREAD_LIBS -lc_r"
+ THREAD_LIBS="$THREAD_LIBS -lpthread"
else
echo "$as_me: failed program was:" >&5