summaryrefslogtreecommitdiff
path: root/sysutils/glload
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-08-14 08:30:58 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-08-14 08:30:58 +0000
commit6ebce0e5314e74aa1574f9fef4a35412ea01b1e6 (patch)
tree87b046210140f21bcd1563e145a9ad3b6523376c /sysutils/glload
parentFix a breakage due to threaded Mesa. (diff)
Unbroke with threaded Mesa.
Submitted by: bento
Notes
Notes: svn path=/head/; revision=46224
Diffstat (limited to 'sysutils/glload')
-rw-r--r--sysutils/glload/Makefile2
-rw-r--r--sysutils/glload/files/patch-Makefile.FreeBSD15
2 files changed, 17 insertions, 0 deletions
diff --git a/sysutils/glload/Makefile b/sysutils/glload/Makefile
index 36cca0d7d070..99f448b22e7d 100644
--- a/sysutils/glload/Makefile
+++ b/sysutils/glload/Makefile
@@ -18,6 +18,8 @@ USE_X_PREFIX= yes
USE_MESA= yes
MAKEFILE= Makefile.FreeBSD
ALL_TARGET= glload
+MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/glload ${PREFIX}/bin
diff --git a/sysutils/glload/files/patch-Makefile.FreeBSD b/sysutils/glload/files/patch-Makefile.FreeBSD
new file mode 100644
index 000000000000..0cd6fd0c4c13
--- /dev/null
+++ b/sysutils/glload/files/patch-Makefile.FreeBSD
@@ -0,0 +1,15 @@
+
+$FreeBSD$
+
+--- Makefile.FreeBSD 2001/08/14 08:27:41 1.1
++++ Makefile.FreeBSD 2001/08/14 08:28:05
+@@ -1,7 +1,7 @@
+ OBJS = get_load.o trackball.o glload.o texture.o
+-CFLAGS += -I/usr/X11R6/include -DFreeBSD
++CFLAGS += -I/usr/X11R6/include -DFreeBSD $(PTHREAD_CFLAGS)
+ # i need this
+-LDFLAGS = -L/usr/X11R6/lib
++LDFLAGS = -L/usr/X11R6/lib $(PTHREAD_LIBS)
+ # the libs librpcsvc me only be needed on IRIX
+ LLDLIBS = -lglut -lGLU -lGL -lXmu -lXext -lXi -lXt -lICE -lSM -lX11 -lm
+ # your C-compiler