aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/dri/Makefile
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2007-05-20 04:36:56 +0800
committerflz <flz@FreeBSD.org>2007-05-20 04:36:56 +0800
commit87f4d471fb27b9547c1a0de221b51f4c31684157 (patch)
treedfc4d7ae0fdd043d231bab6f4e98fccbbad14665 /graphics/dri/Makefile
parent5ae66b41b712e5f34c78308a97f7511fc0b1539e (diff)
downloadfreebsd-ports-gnome-87f4d471fb27b9547c1a0de221b51f4c31684157.tar.gz
freebsd-ports-gnome-87f4d471fb27b9547c1a0de221b51f4c31684157.tar.zst
freebsd-ports-gnome-87f4d471fb27b9547c1a0de221b51f4c31684157.zip
- Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}. - Bump PORTREVISION for ports intalling files in ${X11BASE}.
Diffstat (limited to 'graphics/dri/Makefile')
-rw-r--r--graphics/dri/Makefile21
1 files changed, 14 insertions, 7 deletions
diff --git a/graphics/dri/Makefile b/graphics/dri/Makefile
index 58b60c4f741a..62e445c03d36 100644
--- a/graphics/dri/Makefile
+++ b/graphics/dri/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= dri
-PORTVERSION= 6.4.1
+PORTVERSION= 6.5.3
PORTEPOCH= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
@@ -17,7 +17,7 @@ MAINTAINER= anholt@FreeBSD.org
COMMENT= OpenGL hardware acceleration drivers for the DRI
LIB_DEPENDS= drm:${PORTSDIR}/graphics/libdrm
-BUILD_DEPENDS= makedepend:${X_IMAKE_PORT}
+BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend
CONFLICTS= xfree86-dri-* dri-6.2.2005* dri-6.5.2006*
@@ -30,9 +30,7 @@ MAKE_ENV+= FBSDCC="${CC}" FBSDCXX="${CXX}" \
PTHREAD_LIBS=${PTHREAD_LIBS}
USE_GCC= 3.4+
-ONLY_FOR_ARCHS= i386 alpha amd64
-
-DRIMODDIR= ${PREFIX}/lib/modules/dri
+DRIMODDIR= ${PREFIX}/lib/dri
.include <bsd.port.pre.mk>
@@ -44,8 +42,8 @@ do-install:
${MKDIR} ${DRIMODDIR}
.if ${ARCH} == i386
${INSTALL_PROGRAM} ${WRKSRC}/lib/i810_dri.so ${DRIMODDIR}
- ${INSTALL_PROGRAM} ${WRKSRC}/lib/i830_dri.so ${DRIMODDIR}
${INSTALL_PROGRAM} ${WRKSRC}/lib/i915_dri.so ${DRIMODDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/lib/i965_dri.so ${DRIMODDIR}
${INSTALL_PROGRAM} ${WRKSRC}/lib/unichrome_dri.so ${DRIMODDIR}
${INSTALL_PROGRAM} ${WRKSRC}/lib/tdfx_dri.so ${DRIMODDIR}
.elif ${ARCH} == amd64
@@ -62,11 +60,20 @@ do-install:
.if ${OSVERSION} < 500000
pre-patch:
- ${REINPLACE_CMD} -e 's|stdint.h|sys/types.h|g' \
+ @${REINPLACE_CMD} -e 's|stdint.h|sys/types.h|g' \
${WRKSRC}/src/mesa/drivers/dri/mga/mga_xmesa.c \
${WRKSRC}/src/mesa/drivers/dri/mga/mgacontext.h
.endif
+post-patch:
+ @${REINPLACE_CMD} -e '/^CC =/d' -e '/^CXX =/d' \
+ -e 's|/usr/local|$$(LOCALBASE)|g' \
+ -e 's|/usr/X11R6|$$(X11BASE)|g' \
+ -e 's|-lpthread|$$(PTHREAD_LIBS)|g' \
+ -e 's|^\(SRC_DIRS =\).*|\1 mesa|' \
+ -e 's|-DHAVE_POSIX_MEMALIGN||' \
+ ${WRKSRC}/configs/freebsd-dri
+
.if ${ARCH} == i386
PLIST_SUB+= I386=""
PLIST_SUB+= I386_AMD64=""