Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F134709148
D10183.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
5 KB
Referenced Files
None
Subscribers
None
D10183.diff
View Options
Index: head/graphics/gbm/Makefile
===================================================================
--- head/graphics/gbm/Makefile
+++ head/graphics/gbm/Makefile
@@ -3,7 +3,7 @@
PORTNAME= gbm
PORTVERSION= ${MESAVERSION}
-PORTREVISION= 1
+PORTREVISION= 0
CATEGORIES= graphics
COMMENT= gbm library
Index: head/graphics/libEGL/Makefile
===================================================================
--- head/graphics/libEGL/Makefile
+++ head/graphics/libEGL/Makefile
@@ -3,7 +3,7 @@
PORTNAME= libEGL
PORTVERSION= ${MESAVERSION}
-PORTREVISION= 1
+PORTREVISION= 0
CATEGORIES= graphics
COMMENT= OpenEGL library
Index: head/graphics/libGL/Makefile.common
===================================================================
--- head/graphics/libGL/Makefile.common
+++ head/graphics/libGL/Makefile.common
@@ -18,11 +18,14 @@
MESAVERSION= ${MESABASEVERSION}${MESASUBVERSION:C/^(.)/.\1/}
MESADISTVERSION=${MESABASEVERSION}${MESASUBVERSION:C/^(.)/-\1/}
-MESABASEVERSION= 13.0.5
+MESABASEVERSION= 13.0.6
# if there is a subversion, don't include the '-' between 7.11-rc2.
MESASUBVERSION=
-MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/${MESABASEVERSION}/
+MASTER_SITES= https://mesa.freedesktop.org/archive/ \
+ https://mesa.freedesktop.org/archive/${MESABASEVERSION}/ \
+ ftp://ftp.freedesktop.org/pub/mesa/ \
+ ftp://ftp.freedesktop.org/pub/mesa/${MESABASEVERSION}/
DISTFILES= mesa-${MESADISTVERSION}${EXTRACT_SUFX}
@@ -34,7 +37,6 @@
localbase pathfix pkgconfig python:2,build shebangfix tar:xz
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
-LDFLAGS+= -Wl,-rpath=${LOCALBASE}/llvm${MESA_LLVM_VER}/lib
PKGINSTALL= ${.CURDIR}/pkg-install
PKGDEINSTALL= ${.CURDIR}/pkg-deinstall
@@ -60,7 +62,10 @@
COMPONENT= ${PORTNAME:tl:C/^lib//:C/mesa-//}
-MESA_LLVM_VER=39
+.if (${ARCH} != sparc64 && ${ARCH} != ia64) # no working LLVM
+MESA_LLVM_VER?= 39
+LDFLAGS+= -Wl,-rpath=${LOCALBASE}/llvm${MESA_LLVM_VER}/lib
+.endif
CONFIGURE_ARGS+= --with-sha1=libcrypto
@@ -72,11 +77,15 @@
# pthread_setspecific which it uses now by default. But since this
# configure switch is going away ...
# https://lists.freebsd.org/pipermail/freebsd-arch/2016-February/017699.html
-#CONFIGURE_ARGS+= --enable-glx-tls
+CONFIGURE_ARGS+= --disable-glx-tls
# libEGL, dri and clover need gallium enabled.
# the third option in --with-egl-platforms is wayland.
+.if (${MESA_LLVM_VER} != "")
CONFIGURE_ARGS+= --enable-egl --with-egl-platforms=x11,drm
+.else
+CONFIGURE_ARGS+= --disable-egl
+.endif
# we don't care about GLes v1
CONFIGURE_ARGS+= --disable-gles1 --enable-gles2
@@ -107,9 +116,10 @@
CONFIGURE_ARGS+= --disable-opencl
.endif
-CONFIGURE_ARGS+= --enable-osmesa
+CONFIGURE_ARGS+= --enable-osmesa --enable-xvmc
# gallium
+.if (${MESA_LLVM_VER} != "")
BUILD_DEPENDS+= llvm${MESA_LLVM_VER}>=3.9.0_4:devel/llvm${MESA_LLVM_VER}
.if ${COMPONENT:Mdri} != "" || ${COMPONENT:Mclover} != "" || ${COMPONENT:Megl} != ""
RUN_DEPENDS+= llvm${MESA_LLVM_VER}>=3.9.0_4:devel/llvm${MESA_LLVM_VER}
@@ -117,8 +127,10 @@
CONFIGURE_ENV+= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${MESA_LLVM_VER}
-CONFIGURE_ARGS+=--enable-gallium-llvm --enable-llvm-shared-libs \
- --enable-xvmc
+CONFIGURE_ARGS+= --enable-gallium-llvm --enable-llvm-shared-libs
+.else
+CONFIGURE_ARGS+= --disable-gallium-llvm
+.endif
.if ${PORT_OPTIONS:MTEXTURE}
CONFIGURE_ARGS+=--enable-texture-float
@@ -172,7 +184,9 @@
. endif
.endfor
+.if (${MESA_LLVM_VER} != "")
CONFIGURE_ARGS+=--with-gallium-drivers="${GALLIUM_DRIVERS:tl}"
+.endif
.if ${OPSYS} == DragonFly
LIB_DEPENDS+= libelf.so:devel/libelf
Index: head/graphics/libGL/Makefile.targets
===================================================================
--- head/graphics/libGL/Makefile.targets
+++ head/graphics/libGL/Makefile.targets
@@ -4,7 +4,7 @@
post-patch:
.if ${OPSYS} == FreeBSD
- @${REINPLACE_CMD} -e 's|x86_64|amd64|' \
+ @${REINPLACE_CMD} -e 's|x86_64|amd64|' -e 's|\\S\*//|[:space:]* //|' \
${WRKSRC}/configure
# Clang 3.4 in 10.x on i386 fails with the following error when using "GCC atomics"
#
@@ -15,10 +15,11 @@
.if ${OSVERSION} < 1100000 && ${ARCH} == "i386"
@${REINPLACE_CMD} -e 's|-DUSE_GCC_ATOMIC_BUILTINS||' ${WRKSRC}/configure
.endif
-.endif
-# Sed on 9.x and dragonfly don't support \< or \>
- @${REINPLACE_CMD} -e 's|\\>//|[[:>:]]//|' -e 's|\\S\*//|[:graph:]* //|' \
+.else # ${OPSYS} == DragonFly
+# Sed on dragonfly doesn't support \< or \>
+ @${REINPLACE_CMD} -e 's|\\>//|[[:>:]]//|' -e 's|\\S\*//|[:space:]* //|' \
${WRKSRC}/configure
+.endif # ${OPSYS}
@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \
${WRKSRC}/src/mesa/drivers/dri/common/xmlconfig.c
@${REINPLACE_CMD} -e 's|#!/use/bin/python|#!${PYTHON_CMD}|g' \
Index: head/graphics/libGL/distinfo
===================================================================
--- head/graphics/libGL/distinfo
+++ head/graphics/libGL/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1487852413
-SHA256 (mesa-13.0.5.tar.xz) = bfcea7e2c801525a60895c8aff11aa68457ee9aa35d01a4638e1f310a3f5ef87
-SIZE (mesa-13.0.5.tar.xz) = 9171480
+TIMESTAMP = 1490202594
+SHA256 (mesa-13.0.6.tar.xz) = 29ef104a7fc082d352b1599bd6cb1d040be424ccd22f5e0eb7ee9b0e9acd3597
+SIZE (mesa-13.0.6.tar.xz) = 9179236
Index: head/graphics/libglapi/Makefile
===================================================================
--- head/graphics/libglapi/Makefile
+++ head/graphics/libglapi/Makefile
@@ -3,7 +3,7 @@
PORTNAME= libglapi
PORTVERSION= ${MESAVERSION}
-PORTREVISION= 1
+PORTREVISION= 0
CATEGORIES= graphics
COMMENT= Common GL api library used by Mesa based ports
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 5, 2:54 AM (1 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24808070
Default Alt Text
D10183.diff (5 KB)
Attached To
Mode
D10183: Update the Mesa ports to 13.0.6
Attached
Detach File
Event Timeline
Log In to Comment