View | Details | Raw Unified | Return to bug 217016 | Differences between
and this patch

Collapse All | Expand All

(-)graphics/libGL/Makefile.common (-8 / +9 lines)
Lines 18-35 Link Here
18
MESAVERSION=	${MESABASEVERSION}${MESASUBVERSION:C/^(.)/.\1/}
18
MESAVERSION=	${MESABASEVERSION}${MESASUBVERSION:C/^(.)/.\1/}
19
MESADISTVERSION=${MESABASEVERSION}${MESASUBVERSION:C/^(.)/-\1/}
19
MESADISTVERSION=${MESABASEVERSION}${MESASUBVERSION:C/^(.)/-\1/}
20
20
21
MESABASEVERSION=	13.0.5
21
MESABASEVERSION=	17.0.1
22
# if there is a subversion, don't include the '-' between 7.11-rc2.
22
# if there is a subversion, don't include the '-' between 7.11-rc2.
23
MESASUBVERSION=
23
MESASUBVERSION=
24
24
25
MASTER_SITES=	ftp://ftp.freedesktop.org/pub/mesa/${MESABASEVERSION}/
25
MASTER_SITES=	https://mesa.freedesktop.org/archive/ \
26
		https://mesa.freedesktop.org/archive/${MESABASEVERSION}/ \
27
		ftp://ftp.freedesktop.org/pub/mesa/ \
28
		ftp://ftp.freedesktop.org/pub/mesa/${MESABASEVERSION}/
26
29
27
DISTFILES=	mesa-${MESADISTVERSION}${EXTRACT_SUFX}
30
DISTFILES=	mesa-${MESADISTVERSION}${EXTRACT_SUFX}
28
31
29
MAINTAINER=	x11@FreeBSD.org
32
MAINTAINER=	x11@FreeBSD.org
30
33
31
BUILD_DEPENDS+=	makedepend:devel/makedepend
32
33
USES+=		compiler:c++11-lib bison gettext-tools gmake libtool \
34
USES+=		compiler:c++11-lib bison gettext-tools gmake libtool \
34
		localbase pathfix pkgconfig python:2,build shebangfix tar:xz
35
		localbase pathfix pkgconfig python:2,build shebangfix tar:xz
35
USE_LDCONFIG=	yes
36
USE_LDCONFIG=	yes
Lines 60-66 INSTALL_TARGET= install-strip Link Here
60
61
61
COMPONENT=		${PORTNAME:tl:C/^lib//:C/mesa-//}
62
COMPONENT=		${PORTNAME:tl:C/^lib//:C/mesa-//}
62
63
63
MESA_LLVM_VER=39
64
MESA_LLVM_VER?=		40
64
65
65
CONFIGURE_ARGS+=	--with-sha1=libcrypto
66
CONFIGURE_ARGS+=	--with-sha1=libcrypto
66
67
Lines 72-78 CONFIGURE_ARGS+= --enable-gbm Link Here
72
# pthread_setspecific which it uses now by default. But since this
73
# pthread_setspecific which it uses now by default. But since this
73
# configure switch is going away ...
74
# configure switch is going away ...
74
# https://lists.freebsd.org/pipermail/freebsd-arch/2016-February/017699.html
75
# https://lists.freebsd.org/pipermail/freebsd-arch/2016-February/017699.html
75
#CONFIGURE_ARGS+=	--enable-glx-tls
76
CONFIGURE_ARGS+=	--disable-glx-tls
76
77
77
# libEGL, dri and clover need gallium enabled.
78
# libEGL, dri and clover need gallium enabled.
78
# the third option in --with-egl-platforms is wayland.
79
# the third option in --with-egl-platforms is wayland.
Lines 110-118 CONFIGURE_ARGS+= --disable-opencl Link Here
110
CONFIGURE_ARGS+=	--enable-osmesa
111
CONFIGURE_ARGS+=	--enable-osmesa
111
112
112
# gallium
113
# gallium
113
BUILD_DEPENDS+= llvm${MESA_LLVM_VER}>=3.9.0_4:devel/llvm${MESA_LLVM_VER}
114
BUILD_DEPENDS+=	llvm${MESA_LLVM_VER}>=3.6:devel/llvm${MESA_LLVM_VER}
114
.if ${COMPONENT:Mdri} != "" || ${COMPONENT:Mclover} != "" || ${COMPONENT:Megl} != ""
115
.if ${COMPONENT:Mdri} != "" || ${COMPONENT:Mclover} != "" || ${COMPONENT:Megl} != ""
115
RUN_DEPENDS+=   llvm${MESA_LLVM_VER}>=3.9.0_4:devel/llvm${MESA_LLVM_VER}
116
RUN_DEPENDS+=	llvm${MESA_LLVM_VER}>=3.6:devel/llvm${MESA_LLVM_VER}
116
.endif
117
.endif
117
118
118
CONFIGURE_ENV+= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${MESA_LLVM_VER}
119
CONFIGURE_ENV+= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${MESA_LLVM_VER}
(-)graphics/libGL/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1487852413
1
TIMESTAMP = 1488642485
2
SHA256 (mesa-13.0.5.tar.xz) = bfcea7e2c801525a60895c8aff11aa68457ee9aa35d01a4638e1f310a3f5ef87
2
SHA256 (mesa-17.0.1.tar.xz) = 96fd70ef5f31d276a17e424e7e1bb79447ccbbe822b56844213ef932e7ad1b0c
3
SIZE (mesa-13.0.5.tar.xz) = 9171480
3
SIZE (mesa-17.0.1.tar.xz) = 9447712
(-)graphics/libGL/files/patch-configure (-30 / +51 lines)
Lines 1-8 Link Here
1
--- configure.orig	2017-01-05 15:52:21 UTC
1
--- configure.orig	2017-03-04 15:47:01 UTC
2
+++ configure
2
+++ configure
3
@@ -21955,7 +21955,7 @@ fi
3
@@ -22307,18 +22307,18 @@ llvm_add_target() {
4
 # $1 is the llvm-config command with arguments.
5
 strip_unwanted_llvm_flags() {
6
     # Use \> (marks the end of the word)
7
-    echo " `$1`" | sed \
8
-        -e 's/\s\+-m\S*//g' \
9
-        -e 's/\s\+-DNDEBUG\>//g' \
10
-        -e 's/\s\+-D_GNU_SOURCE\>//g' \
11
-        -e 's/\s\+-pedantic\>//g' \
12
-        -e 's/\s\+-W\S*//g' \
13
-        -e 's/\s\+-O\S*//g' \
14
-        -e 's/\s\+-g\S*//g' \
15
-        -e 's/-fno-rtti\>/-Fno-rtti/g' \
16
-        -e 's/\s\+-f\S*//g' \
17
-        -e 's/-Fno-rtti\>/-fno-rtti/g' \
18
-        -e 's/^ //'
19
+    echo " `$1`" | sed -E \
20
+        -e 's/[[:blank:]]+-m[^[:blank:]]*//g' \
21
+        -e 's/[[:blank:]]+-DNDEBUG\>//g' \
22
+        -e 's/[[:blank:]]+-D_GNU_SOURCE\>//g' \
23
+        -e 's/[[:blank:]]+-pedantic\>//g' \
24
+        -e 's/[[:blank:]]+-W[^[:blank:]]*//g' \
25
+        -e 's/[[:blank:]]+-O[^[:blank:]]*//g' \
26
+        -e 's/[[:blank:]]+-g[^[:blank:]]*//g' \
27
+        -e 's/-fno-rtti\>/-Fno-rtti/g' \
28
+        -e 's/[[:blank:]]+-f[^[:blank:]]*//g' \
29
+        -e 's/-Fno-rtti\>/-fno-rtti/g' \
30
+        -e 's/^[[:blank:]]//'
31
 }
4
 
32
 
33
 llvm_set_environment_variables() {
34
@@ -22516,7 +22516,7 @@ fi
5
 
35
 
36
 
6
 case "$host_os" in
37
 case "$host_os" in
7
-linux*)
38
-linux*)
8
+linux*|freebsd*)
39
+linux*|freebsd*)
Lines 9-34 Link Here
9
     dri3_default=yes
40
     dri3_default=yes
10
     ;;
41
     ;;
11
 *)
42
 *)
12
@@ -23968,6 +23968,18 @@ if test "x$enable_dri" = xyes; then
43
@@ -24055,7 +24055,7 @@ fi
13
         ;;
44
 if test "x$enable_dri" = xyes; then
14
     *freebsd* | dragonfly* | *netbsd* | openbsd*)
45
     # Platform specific settings and drivers to build
15
         DEFINES="$DEFINES -DHAVE_ALIAS"
46
     case "$host_os" in
16
+        if test "x$enable_dri3" = xyes; then
47
-    linux*)
17
+            DEFINES="$DEFINES -DHAVE_DRI3"
48
+    linux* | *freebsd* | dragonfly* | *netbsd* | openbsd*)
18
+        fi
49
         if test "x$enable_dri3" = xyes; then
19
+
50
             DEFINES="$DEFINES -DHAVE_DRI3"
20
+        case "$host_cpu" in
51
         fi
21
+        powerpc* | sparc*)
52
@@ -25807,9 +25807,19 @@ if test "x$enable_opencl" = xyes; then
22
+            # Build only the drivers for cards that exist on PowerPC/sparc
23
+            if test "x$with_dri_drivers" = "xyes"; then
24
+                with_dri_drivers="r200 radeon swrast"
25
+            fi
26
+            ;;
27
+        esac
28
         ;;
29
     gnu*)
30
         DEFINES="$DEFINES -DHAVE_ALIAS"
31
@@ -25849,9 +25861,19 @@ if test "x$enable_opencl" = xyes; then
32
         as_fn_error $? "cannot enable OpenCL without Gallium" "$LINENO" 5
53
         as_fn_error $? "cannot enable OpenCL without Gallium" "$LINENO" 5
33
     fi
54
     fi
34
 
55
 
Lines 48-60 Link Here
48
 
69
 
49
     if test "x$have_libclc" = xno; then
70
     if test "x$have_libclc" = xno; then
50
         as_fn_error $? "pkg-config cannot find libclc.pc which is required to build clover.
71
         as_fn_error $? "pkg-config cannot find libclc.pc which is required to build clover.
51
@@ -26670,9 +26692,6 @@ fi
72
@@ -25851,9 +25861,6 @@ if test "x$enable_opencl" = xyes; then
52
                 CLANG_LIBDIR=${LLVM_LIBDIR}
73
         CLANG_LIBDIR=${LLVM_LIBDIR}
53
             fi
74
     fi
54
             CLANG_RESOURCE_DIR=$CLANG_LIBDIR/clang/${LLVM_VERSION}
75
     CLANG_RESOURCE_DIR=$CLANG_LIBDIR/clang/${LLVM_VERSION}
55
-            if test ! -f "$CLANG_RESOURCE_DIR/include/stddef.h"; then :
76
-    if test ! -f "$CLANG_RESOURCE_DIR/include/stddef.h"; then :
56
-  as_fn_error $? "Could not find clang internal header stddef.h in $CLANG_RESOURCE_DIR Use --with-clang-libdir to specify the correct path to the clang libraries." "$LINENO" 5
77
-  as_fn_error $? "Could not find clang internal header stddef.h in $CLANG_RESOURCE_DIR Use --with-clang-libdir to specify the correct path to the clang libraries." "$LINENO" 5
57
-fi
78
-fi
58
         fi
79
 fi
59
     else
80
  if test "x$enable_opencl" = xyes; then
60
         MESA_LLVM=0
81
   HAVE_CLOVER_TRUE=

Return to bug 217016