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

Collapse All | Expand All

(-)graphics/rawtherapee/Makefile (-12 / +17 lines)
Lines 26-42 Link Here
26
		libsigc-2.0.so:devel/libsigc++20 \
26
		libsigc-2.0.so:devel/libsigc++20 \
27
		libtiff.so:graphics/tiff
27
		libtiff.so:graphics/tiff
28
28
29
USES=		cmake desktop-file-utils compiler:gcc-c++11-lib gnome \
29
USES=		cmake desktop-file-utils gnome \
30
		jpeg localbase:ldflags pkgconfig tar:xz
30
		jpeg localbase:ldflags pkgconfig tar:xz
31
31
32
DOS2UNIX_REGEX=	.*\.(cc|h)
32
DOS2UNIX_REGEX=	.*\.(cc|h)
33
USE_GNOME=	gtkmm30 librsvg2
33
USE_GNOME=	gtkmm30 librsvg2
34
USE_GCC=	9+
35
USE_BINUTILS=	yes
36
34
37
_LTO_FLAGS=	-flto=${MAKE_JOBS_NUMBER} -fuse-linker-plugin -fno-fat-lto-objects
38
_AR=		${CC:S/gcc/gcc-ar/}
39
_RANLIB=	${CC:S/gcc/gcc-ranlib/}
40
CFLAGS+=	-I${LOCALBASE}/include -fPIC ${_LTO_FLAGS} ${_OPT_FLAGS}
35
CFLAGS+=	-I${LOCALBASE}/include -fPIC ${_LTO_FLAGS} ${_OPT_FLAGS}
41
LDFLAGS+=	-Wl,--as-needed -lpthread ${_LTO_FLAGS} ${_OPT_FLAGS}
36
LDFLAGS+=	-Wl,--as-needed -lpthread ${_LTO_FLAGS} ${_OPT_FLAGS}
42
CMAKE_ARGS+=	-DDOCDIR="${DOCSDIR}" \
37
CMAKE_ARGS+=	-DDOCDIR="${DOCSDIR}" \
Lines 46-53 Link Here
46
		-DDATADIR="${DATADIR}" \
41
		-DDATADIR="${DATADIR}" \
47
		-DCACHE_NAME_SUFFIX="" \
42
		-DCACHE_NAME_SUFFIX="" \
48
		-Wno-dev \
43
		-Wno-dev \
49
		-DCMAKE_AR:FILEPATH=${_AR} \
50
		-DCMAKE_RANLIB:FILEPATH=${_RANLIB} \
51
		-DCMAKE_POLICY_DEFAULT_CMP0056:STRING=NEW
44
		-DCMAKE_POLICY_DEFAULT_CMP0056:STRING=NEW
52
# 3.4.x: CMAKE_EXE_LINKER_FLAGS is not passed to TRY_COMPILE by default
45
# 3.4.x: CMAKE_EXE_LINKER_FLAGS is not passed to TRY_COMPILE by default
53
# any more. The CMP0056 policy must be explicitly set to NEW to ensure
46
# any more. The CMP0056 policy must be explicitly set to NEW to ensure
Lines 70-80 Link Here
70
63
71
RTDIR=		${PREFIX}/libdata/${PORTNAME}
64
RTDIR=		${PREFIX}/libdata/${PORTNAME}
72
65
73
OPTIONS_DEFINE=		DOCS NATIVE
66
OPTIONS_DEFINE=		DOCS LTO NATIVE
74
OPTIONS_DEFINE_i386=	DOCS NATIVE OPENMP
67
OPTIONS_DEFINE_i386=	DOCS LTO NATIVE OPENMP
75
OPTIONS_DEFINE_amd64=	DOCS NATIVE OPENMP
68
OPTIONS_DEFINE_amd64=	DOCS LTO NATIVE OPENMP
76
OPTIONS_DEFAULT=	OPENMP
69
OPTIONS_DEFAULT=	LTO OPENMP
77
OPENMP_DESC=		Enable OpenMP parallel processing (i386/amd64 only)
70
OPENMP_DESC=		Enable OpenMP parallel processing (i386/amd64 only)
71
LTO_DESC=		Enable LTO optomizations (requires gcc)
78
NATIVE_DESC=		Use -march=native (avoid for generic packages!)
72
NATIVE_DESC=		Use -march=native (avoid for generic packages!)
79
73
80
OPENMP_CMAKE_BOOL=	OPTION_OMP
74
OPENMP_CMAKE_BOOL=	OPTION_OMP
Lines 105-110 Link Here
105
STRIP=
99
STRIP=
106
.endif
100
.endif
107
101
102
.if ${PORT_OPTIONS:MLTO}
103
USES+=		compiler:gcc-c++11-lib
104
USE_GCC=	9+
105
USE_BINUTILS=	yes
106
_LTO_FLAGS=	-flto=${MAKE_JOBS_NUMBER} -fuse-linker-plugin -fno-fat-lto-objects
107
_AR=		${CC:S/gcc/gcc-ar/}
108
_RANLIB=	${CC:S/gcc/gcc-ranlib/}
109
CMAKE_ARGS+=	-DCMAKE_AR:FILEPATH=${_AR} \
110
		-DCMAKE_RANLIB:FILEPATH=${_RANLIB}
111
.endif
112
108
_OPT_FLAGS=	-O3 -funroll-loops
113
_OPT_FLAGS=	-O3 -funroll-loops
109
# GCC 5.4 includes -fexpensive-optimizations in -O2 already
114
# GCC 5.4 includes -fexpensive-optimizations in -O2 already
110
.if (${ARCH} == i386) || (${ARCH} == amd64)
115
.if (${ARCH} == i386) || (${ARCH} == amd64)

Return to bug 240594