View | Details | Raw Unified | Return to bug 273682
Collapse All | Expand All

(-)b/graphics/rawtherapee/Makefile (-18 / +4 lines)
Lines 1-6 Link Here
1
PORTNAME=	rawtherapee
1
PORTNAME=	rawtherapee
2
PORTVERSION=	5.9
2
PORTVERSION=	5.9
3
PORTREVISION=	3
3
PORTREVISION=	4
4
CATEGORIES=	graphics
4
CATEGORIES=	graphics
5
MASTER_SITES=	https://rawtherapee.com/shared/source/ \
5
MASTER_SITES=	https://rawtherapee.com/shared/source/ \
6
		LOCAL/mandree/
6
		LOCAL/mandree/
Lines 25-51 LIB_DEPENDS= \ Link Here
25
		libsigc-2.0.so:devel/libsigc++20 \
25
		libsigc-2.0.so:devel/libsigc++20 \
26
		libtiff.so:graphics/tiff
26
		libtiff.so:graphics/tiff
27
27
28
USES=		cmake desktop-file-utils compiler:gcc-c++11-lib gnome \
28
USES=		cmake desktop-file-utils compiler:c++11-lang gnome \
29
		jpeg localbase:ldflags pkgconfig tar:xz
29
		jpeg localbase:ldflags pkgconfig tar:xz
30
30
31
# Binutils required for LTO (base ar/nm/ld/ranlib don't work)
31
# Binutils required for LTO (base ar/nm/ld/ranlib don't work)
32
USE_BINUTILS=	yes
32
USE_BINUTILS=	yes
33
33
34
# As of 2019-09-29, this port is known to be miscompiled by clang90
35
# (SIGSEGV or SIBGUS).
36
# So we shall stick to a modern GCC for now,
37
# XXX FIXME note that rawtherapee is somewhat sensitive
38
# versus compiler details so we may need to pin GCC 9.x
39
# or a version range.
40
USE_GCC=	yes
41
42
USE_GNOME=	gtkmm30 librsvg2
34
USE_GNOME=	gtkmm30 librsvg2
43
35
44
_LTO_FLAGS=	-flto=${MAKE_JOBS_NUMBER}
36
_LTO_FLAGS=	-flto=thin
45
# gcc needs -flto=${MAKE_JOBS_NUMBER} for parallel link (fixed in GCC 10?)
46
#     and does not understand -flto=thin
47
#
48
# llvm/clang needs -flto=thin and will automatically parallelize the link
49
37
50
# Fix <https://bugs.freebsd.org/251041>:
38
# Fix <https://bugs.freebsd.org/251041>:
51
# 11.x has binutils that don't accept a --plugin option,
39
# 11.x has binutils that don't accept a --plugin option,
Lines 64-72 CMAKE_ARGS+= -DDOCDIR="${DOCSDIR}" \ Link Here
64
		-DDATADIR="${DATADIR}" \
52
		-DDATADIR="${DATADIR}" \
65
		-DCACHE_NAME_SUFFIX="" \
53
		-DCACHE_NAME_SUFFIX="" \
66
		-Wno-dev \
54
		-Wno-dev \
67
		-DCMAKE_AR:FILEPATH=${_AR} \
68
		-DCMAKE_RANLIB:FILEPATH=${_RANLIB} \
69
		-DCMAKE_POLICY_DEFAULT_CMP0056:STRING=NEW
55
		-DCMAKE_POLICY_DEFAULT_CMP0056:STRING=NEW
56
70
# 3.4.x: CMAKE_EXE_LINKER_FLAGS is not passed to TRY_COMPILE by default
57
# 3.4.x: CMAKE_EXE_LINKER_FLAGS is not passed to TRY_COMPILE by default
71
# any more. The CMP0056 policy must be explicitly set to NEW to ensure
58
# any more. The CMP0056 policy must be explicitly set to NEW to ensure
72
# linker flags are passed. Else -lomp is not found with clang.
59
# linker flags are passed. Else -lomp is not found with clang.
73
- 

Return to bug 273682