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

Collapse All | Expand All

(-)graphics/mesa-dri/Makefile (-3 lines)
Lines 54-62 EXTRA_PATCHES+= ${PATCHDIR}/extra-src_mesa_drivers Link Here
54
. endif
54
. endif
55
.elif ${ARCH} == armv6 || ${ARCH} == aarch64
55
.elif ${ARCH} == armv6 || ${ARCH} == aarch64
56
GALLIUM_DRIVERS+=	FREEDRENO VC4
56
GALLIUM_DRIVERS+=	FREEDRENO VC4
57
. if ${ARCH} == armv6
58
EXTRA_PATCHES+=	${PATCHDIR}/extra-src_gallium_drivers_vc4_Makefile.in
59
. endif
60
.endif
57
.endif
61
58
62
CONFIGURE_ARGS+=	--with-dri-drivers="${DRI_DRIVERS:tl}" \
59
CONFIGURE_ARGS+=	--with-dri-drivers="${DRI_DRIVERS:tl}" \
(-)graphics/mesa-dri/Makefile.common (-1 / +1 lines)
Lines 14-20 Link Here
14
MESAVERSION=	${MESABASEVERSION}${MESASUBVERSION:C/^(.)/.\1/}
14
MESAVERSION=	${MESABASEVERSION}${MESASUBVERSION:C/^(.)/.\1/}
15
MESADISTVERSION=${MESABASEVERSION}${MESASUBVERSION:C/^(.)/-\1/}
15
MESADISTVERSION=${MESABASEVERSION}${MESASUBVERSION:C/^(.)/-\1/}
16
16
17
MESABASEVERSION=	17.1.8
17
MESABASEVERSION=	17.2.1
18
# if there is a subversion, don't include the '-' between 7.11-rc2.
18
# if there is a subversion, don't include the '-' between 7.11-rc2.
19
MESASUBVERSION=
19
MESASUBVERSION=
20
20
(-)graphics/mesa-dri/Makefile.targets (+4 lines)
Lines 18-23 post-patch: Link Here
18
.  endif
18
.  endif
19
. endif
19
. endif
20
.endif
20
.endif
21
.if ${ARCH:Marm*} && ! ${CFLAGS:M-march=*} # ignore if CPUTYPE is defined
22
	@${ECHO_CMD} "vc4_tiling_lt_neon.lo: CFLAGS+=-march=armv7-a -mfpu=neon" \
23
		>>${WRKSRC}/src/gallium/drivers/vc4/Makefile.in
24
.endif
21
	@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \
25
	@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \
22
		${WRKSRC}/src/mesa/drivers/dri/common/xmlconfig.c
26
		${WRKSRC}/src/mesa/drivers/dri/common/xmlconfig.c
23
27
(-)graphics/mesa-dri/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1504427762
1
TIMESTAMP = 1505689402
2
SHA256 (mesa-17.1.8.tar.xz) = 75ed2eaeae26ddd536150f294386468ae2e1a7717948c41cd14b7875be5269db
2
SHA256 (mesa-17.2.1.tar.xz) = 77385d17827cff24a3bae134342234f2efe7f7f990e778109682571dbbc9ba1e
3
SIZE (mesa-17.1.8.tar.xz) = 9902800
3
SIZE (mesa-17.2.1.tar.xz) = 10414776
(-)graphics/mesa-dri/files/extra-src_gallium_drivers_vc4_Makefile.in (-13 lines)
Lines 1-13 Link Here
1
# enable NEON instructions in the compiler when building the NEON codepath
2
#
3
--- src/gallium/drivers/vc4/Makefile.in.orig	2017-05-16 13:55:49 UTC
4
+++ src/gallium/drivers/vc4/Makefile.in
5
@@ -669,7 +669,7 @@ libvc4_la_SOURCES = $(C_SOURCES)
6
 libvc4_la_LIBADD = $(SIM_LIB) $(VC4_LIBS) libvc4_neon.la
7
 libvc4_la_LDFLAGS = $(SIM_LDFLAGS)
8
 libvc4_neon_la_SOURCES = vc4_tiling_lt.c
9
-libvc4_neon_la_CFLAGS = $(AM_CFLAGS) -DVC4_BUILD_NEON
10
+libvc4_neon_la_CFLAGS = $(AM_CFLAGS) -DVC4_BUILD_NEON -march=armv7-a -mfpu=neon
11
 EXTRA_DIST = kernel/README
12
 all: all-am
13
 
(-)graphics/mesa-dri/files/patch-src_egl_Makefile.in (+55 lines)
Line 0 Link Here
1
Force automake to use C++ compiler for linking by adding a
2
non-existent .cpp file to nodist_EXTRA_*_SOURCES.
3
4
./.libs/libEGL_common.a(libmesautil_la-string_to_uint_map.o):(.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0'
5
cc: error: linker command failed with exit code 1 (use -v to see invocation)
6
7
--- src/egl/Makefile.in.orig	2017-07-24 16:00:39 UTC
8
+++ src/egl/Makefile.in
9
@@ -197,9 +197,9 @@ AM_V_lt = $(am__v_lt_@AM_V@)
10
 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
11
 am__v_lt_0 = --silent
12
 am__v_lt_1 = 
13
-libEGL_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
14
-	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
15
-	$(libEGL_la_LDFLAGS) $(LDFLAGS) -o $@
16
+libEGL_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
17
+	$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
18
+	$(CXXFLAGS) $(libEGL_la_LDFLAGS) $(LDFLAGS) -o $@
19
 @USE_LIBGLVND_FALSE@am_libEGL_la_rpath = -rpath $(libdir)
20
 am__DEPENDENCIES_1 =
21
 @HAVE_PLATFORM_X11_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1)
22
@@ -304,6 +304,24 @@ AM_V_CCLD = $(am__v_CCLD_@AM_V@)
23
 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
24
 am__v_CCLD_0 = @echo "  CCLD    " $@;
25
 am__v_CCLD_1 = 
26
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
27
+	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
28
+LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
29
+	$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
30
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
31
+	$(AM_CXXFLAGS) $(CXXFLAGS)
32
+AM_V_CXX = $(am__v_CXX_@AM_V@)
33
+am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
34
+am__v_CXX_0 = @echo "  CXX     " $@;
35
+am__v_CXX_1 = 
36
+CXXLD = $(CXX)
37
+CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
38
+	$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
39
+	$(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
40
+AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
41
+am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
42
+am__v_CXXLD_0 = @echo "  CXXLD   " $@;
43
+am__v_CXXLD_1 = 
44
 SOURCES = $(libEGL_la_SOURCES) $(libEGL_common_la_SOURCES) \
45
 	$(libEGL_mesa_la_SOURCES)
46
 DIST_SOURCES = $(libEGL_la_SOURCES) \
47
@@ -1014,7 +1032,7 @@ clean-noinstLTLIBRARIES:
48
 	}
49
 
50
 libEGL.la: $(libEGL_la_OBJECTS) $(libEGL_la_DEPENDENCIES) $(EXTRA_libEGL_la_DEPENDENCIES) 
51
-	$(AM_V_CCLD)$(libEGL_la_LINK) $(am_libEGL_la_rpath) $(libEGL_la_OBJECTS) $(libEGL_la_LIBADD) $(LIBS)
52
+	$(AM_V_CXXLD)$(libEGL_la_LINK) $(am_libEGL_la_rpath) $(libEGL_la_OBJECTS) $(libEGL_la_LIBADD) $(LIBS)
53
 main/$(am__dirstamp):
54
 	@$(MKDIR_P) main
55
 	@: > main/$(am__dirstamp)
(-)graphics/mesa-dri/files/patch-src_gallium_auxiliary_util_u__cpu__detect.c (+15 lines)
Line 0 Link Here
1
FreeBSD armv6 cannot detect NEON at runtime
2
3
--- src/gallium/auxiliary/util/u_cpu_detect.c.orig	2017-07-31 10:50:59 UTC
4
+++ src/gallium/auxiliary/util/u_cpu_detect.c
5
@@ -311,7 +311,9 @@ check_os_arm_support(void)
6
     * used. Because of this we cannot use PIPE_OS_ANDROID here, but rather
7
     * have a separate macro that only gets enabled from respective Android.mk.
8
     */
9
-#if defined(HAS_ANDROID_CPUFEATURES)
10
+#if defined(__ARM_NEON)
11
+   util_cpu_caps.has_neon = 1;
12
+#elif defined(HAS_ANDROID_CPUFEATURES)
13
    AndroidCpuFamily cpu_family = android_getCpuFamily();
14
    uint64_t cpu_features = android_getCpuFeatures();
15
 
(-)graphics/mesa-dri/files/patch-src_util_build__id.c (-1 / +1 lines)
Lines 7-13 Link Here
7
 
7
 
8
 #ifndef ElfW
8
 #ifndef ElfW
9
-#define ElfW(type) Elf_##type
9
-#define ElfW(type) Elf_##type
10
+#ifdef __LP64__
10
+#if __ELF_WORD_SIZE == 64
11
+#define ElfW(type) Elf64_##type
11
+#define ElfW(type) Elf64_##type
12
+#else
12
+#else
13
+#define ElfW(type) Elf32_##type
13
+#define ElfW(type) Elf32_##type
(-)graphics/mesa-libs/Makefile (-1 / +2 lines)
Lines 14-19 OPTIONS_DEFINE= WAYLAND Link Here
14
OPTIONS_SUB=	yes
14
OPTIONS_SUB=	yes
15
15
16
WAYLAND_DESC=		Enable support for the Wayland platform in EGL
16
WAYLAND_DESC=		Enable support for the Wayland platform in EGL
17
WAYLAND_BUILD_DEPENDS=	wayland-protocols>=1.8:graphics/wayland-protocols
17
WAYLAND_LIB_DEPENDS=	libwayland-client.so:graphics/wayland \
18
WAYLAND_LIB_DEPENDS=	libwayland-client.so:graphics/wayland \
18
			libwayland-server.so:graphics/wayland
19
			libwayland-server.so:graphics/wayland
19
20
Lines 42-48 MESA_BUILD_WRKSRC= src/mapi Link Here
42
MESA_INSTALL_WRKSRC=	src/mapi
43
MESA_INSTALL_WRKSRC=	src/mapi
43
44
44
.if ${PORT_OPTIONS:MWAYLAND}
45
.if ${PORT_OPTIONS:MWAYLAND}
45
MESA_BUILD_WRKSRC+=	src/egl/wayland/wayland-drm src/egl/wayland/wayland-egl
46
MESA_BUILD_WRKSRC+=	src/util src/egl/wayland/wayland-drm src/egl/wayland/wayland-egl
46
MESA_INSTALL_WRKSRC+=	src/egl/wayland/wayland-egl
47
MESA_INSTALL_WRKSRC+=	src/egl/wayland/wayland-egl
47
.endif
48
.endif
48
49

Return to bug 220982