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

Collapse All | Expand All

(-)/usr/ports/graphics/darktable/Makefile (+5 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	darktable
4
PORTNAME=	darktable
5
PORTVERSION=	1.6.3
5
PORTVERSION=	1.6.3
6
PORTREVISION=	1
6
CATEGORIES=	graphics
7
CATEGORIES=	graphics
7
MASTER_SITES=	https://github.com/darktable-org/${PORTNAME}/releases/download/release-${PORTVERSION}/
8
MASTER_SITES=	https://github.com/darktable-org/${PORTNAME}/releases/download/release-${PORTVERSION}/
8
9
Lines 103-108 Link Here
103
STRIP=
104
STRIP=
104
.endif
105
.endif
105
106
107
.if ! ${MACHINE_CPU:Msse2}
108
EXTRA_PATCHES+=	${FILESDIR}/extra-patch-sse2
109
.endif
110
106
.if ! ${PORT_OPTIONS:MDOCS}
111
.if ! ${PORT_OPTIONS:MDOCS}
107
post-install:
112
post-install:
108
	${RM} ${STAGEDIR}${DOCSDIR}/AUTHORS
113
	${RM} ${STAGEDIR}${DOCSDIR}/AUTHORS
(-)/usr/ports/graphics/darktable/files/extra-patch-sse2 (+38 lines)
Line 0 Link Here
1
--- ./src/CMakeLists.txt.orig	2015-02-12 21:57:26.000000000 +0100
2
+++ ./src/CMakeLists.txt	2015-02-12 21:58:18.000000000 +0100
3
@@ -385,7 +385,7 @@
4
 
5
 if(NOT CUSTOM_CFLAGS)
6
   #we MUST always specify our requred instruction set, native might not detect it
7
-  set(DT_REQ_INSTRUCTIONS "-msse3")
8
+  set(DT_REQ_INSTRUCTIONS "-msse2")
9
 
10
   if(NOT BINARY_PACKAGE_BUILD AND (NOT APPLE OR CMAKE_C_COMPILER_ID STREQUAL "Clang"))
11
     MESSAGE("-- Checking for -march=native support")
12
--- ./src/common/darktable.c.orig	2015-02-12 22:00:14.000000000 +0100
13
+++ ./src/common/darktable.c	2015-02-12 22:01:30.000000000 +0100
14
@@ -397,19 +397,19 @@
15
 #define __has_builtin(x) false
16
 #endif
17
 
18
-#ifndef __SSE3__
19
+#ifndef __SSE2__
20
 #error "Unfortunately we depend on SSE3 instructions at this time."
21
 #error "Please contribute a backport patch (or buy a newer processor)."
22
 #else
23
-  int sse3_supported = 0;
24
+  int sse2_supported = 0;
25
 
26
 #if(__GNUC_PREREQ(4, 8) || __has_builtin(__builtin_cpu_supports))
27
   // NOTE: _may_i_use_cpu_feature() looks better, but only avaliable in ICC
28
-  sse3_supported = __builtin_cpu_supports("sse3");
29
+  sse2_supported = __builtin_cpu_supports("sse2");
30
 #else
31
-  sse3_supported = dt_detect_cpu_features() & CPU_FLAG_SSE3;
32
+  sse2_supported = dt_detect_cpu_features() & CPU_FLAG_SSE2;
33
 #endif
34
-  if(!sse3_supported)
35
+  if(!sse2_supported)
36
   {
37
     fprintf(stderr, "[dt_init] unfortunately we depend on SSE3 instructions at this time.\n");
38
     fprintf(stderr, "[dt_init] please contribute a backport patch (or buy a newer processor).\n");

Return to bug 197584