aboutsummaryrefslogtreecommitdiff
path: root/graphics/dri
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2004-12-29 22:41:28 +0000
committerEric Anholt <anholt@FreeBSD.org>2004-12-29 22:41:28 +0000
commit5bd9492cb994988878c0952f305e883958ddafdf (patch)
tree0124002f1a136606faff733c96352017c4cdb392 /graphics/dri
parentf78b63b88df0e9ccd6251fa38f3072451ce25b09 (diff)
downloadports-5bd9492cb994988878c0952f305e883958ddafdf.tar.gz
ports-5bd9492cb994988878c0952f305e883958ddafdf.zip
Notes
Diffstat (limited to 'graphics/dri')
-rw-r--r--graphics/dri/Makefile3
-rw-r--r--graphics/dri/files/patch-freebsd-dri6
2 files changed, 5 insertions, 4 deletions
diff --git a/graphics/dri/Makefile b/graphics/dri/Makefile
index d6f553c465c6..75a1227256f8 100644
--- a/graphics/dri/Makefile
+++ b/graphics/dri/Makefile
@@ -27,7 +27,8 @@ USE_X_PREFIX= yes
USE_BZIP2= yes
USE_GMAKE= yes
MAKE_ENV+= FBSDCC="${CC}" FBSDCXX="${CXX}" \
- FBSDCFLAGS="${CFLAGS}" FBSDCXXFLAGS="${CXXFLAGS}"
+ FBSDCFLAGS="${CFLAGS}" FBSDCXXFLAGS="${CXXFLAGS}" \
+ PTHREAD_LIBS=${PTHREAD_LIBS}
ONLY_FOR_ARCHS= i386 alpha amd64
diff --git a/graphics/dri/files/patch-freebsd-dri b/graphics/dri/files/patch-freebsd-dri
index bdf12da53e36..1b68eca25bfe 100644
--- a/graphics/dri/files/patch-freebsd-dri
+++ b/graphics/dri/files/patch-freebsd-dri
@@ -17,7 +17,7 @@
+CFLAGS = $(FBSDCFLAGS) -DDRI_NEW_INTERFACE_ONLY -Wmissing-prototypes -g \
+ -std=c9x -Wundef -fPIC -ffast-math -I$(LOCALBASE)/include \
+ -I$(X11BASE)/include -I$(X11BASE)/include/X11/extensions
-+CXXFLAGS += $(FBSDCXXFLAGS) -DDRI_NEW_INTERFACE_ONLY -Wall -g -ansi -pedantic \
++CXXFLAGS = $(FBSDCXXFLAGS) -DDRI_NEW_INTERFACE_ONLY -Wall -g -ansi -pedantic \
+ -fPIC
ASM_SOURCES =
@@ -25,8 +25,8 @@
# Library/program dependencies
-DRI_LIB_DEPS = -lm -lpthread -lexpat
-GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -pthread
-+DRI_LIB_DEPS = -L$(LOCALBASE)/lib -lm -lpthread -lexpat
-+GL_LIB_DEPS = -L$(X11BASE) -lX11 -lXext -lm -pthread
++DRI_LIB_DEPS = -L$(LOCALBASE)/lib -lm -lexpat ${PTHREAD_LIBS}
++GL_LIB_DEPS = -L$(X11BASE) -lX11 -lXext -lm ${PTHREAD_LIBS}
GLUT_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -lGLU -lGL -lX11 -lXmu -lXt -lXi -lm
GLW_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -lGL -lXt -lXm -lX11