diff options
author | mandree <mandree@FreeBSD.org> | 2017-01-30 01:34:53 +0800 |
---|---|---|
committer | mandree <mandree@FreeBSD.org> | 2017-01-30 01:34:53 +0800 |
commit | dd2b979e03af53bd0417c8b0fd1d08186cd5bccf (patch) | |
tree | e8809cf19373f24bb8c17716efa0e1b9869c58e1 /graphics | |
parent | 08a77e35ac13d169d54de855d26b668c51225f3d (diff) | |
download | freebsd-ports-gnome-dd2b979e03af53bd0417c8b0fd1d08186cd5bccf.tar.gz freebsd-ports-gnome-dd2b979e03af53bd0417c8b0fd1d08186cd5bccf.tar.zst freebsd-ports-gnome-dd2b979e03af53bd0417c8b0fd1d08186cd5bccf.zip |
Block esoteric systems.
In particular, only support amd64 for FreeBSD 12+ (-CURRENT),
Nail the coffin of EOL distros: IGNORE builds before 10.3-RELEASE,
and force -mstackrealign on i386 gcc to put an end to i386
instabilities. (for some reason, FreeBSD 12-CURRENT chooses GCC rather
than base clang, and then breaks the stack alignment for SSE2 again,
causing SIGBUS[1].)
[1] http://beefy11.nyi.freebsd.org/data/head-i386-default/p432608_s312909/logs/rawtherapee-devel-5.0.log
Reported by: pkg-fallout@ [1]
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/rawtherapee-devel/Makefile | 17 | ||||
-rw-r--r-- | graphics/rawtherapee/Makefile | 17 |
2 files changed, 34 insertions, 0 deletions
diff --git a/graphics/rawtherapee-devel/Makefile b/graphics/rawtherapee-devel/Makefile index ca79fff00699..1e3469bc31c8 100644 --- a/graphics/rawtherapee-devel/Makefile +++ b/graphics/rawtherapee-devel/Makefile @@ -76,6 +76,18 @@ OPTIMIZED_CFLAGS_CFLAGS= -O3 -funroll-loops -msse2 # ------------------------------------------------------------------- # +.if ${OSVERSION} < 1030000 +IGNORE= is only for supported FreeBSD releases +.endif + +.if ${OSVERSION} >= 1200000 +# don't waste everybody's time with Tier-2 and moving targets. +# might add ARM64 or SPARC64 later on if they are established by the +# time FreeBSD 12 is out. +ONLY_FOR_ARCHS= amd64 +ONLY_FOR_ARCHS_REASON=Only amd64 is supported on non-released FreeBSD versions. +.endif + .if ${PORT_OPTIONS:MNATIVE} CMAKE_ARGS+= -DPROC_TARGET_NUMBER="2" .endif @@ -111,6 +123,11 @@ USES+= compiler:gcc-c++11-lib # over previously set values with gcc-libc++-configure as of r432539. # GCC 4.9 doesn't generate usable code on FreeBSD 11.0. USE_GCC= 5+ + +# work around compiler faults +.if ${ARCH} == i386 +CFLAGS+= -mstackrealign +.endif .endif post-patch: diff --git a/graphics/rawtherapee/Makefile b/graphics/rawtherapee/Makefile index 56ee41a1808b..19cd48cd740f 100644 --- a/graphics/rawtherapee/Makefile +++ b/graphics/rawtherapee/Makefile @@ -74,6 +74,18 @@ OPTIMIZED_CFLAGS_CFLAGS= -O3 -funroll-loops -msse2 # ------------------------------------------------------------------- # +.if ${OSVERSION} < 1030000 +IGNORE= is only for supported FreeBSD releases +.endif + +.if ${OSVERSION} >= 1200000 +# don't waste everybody's time with Tier-2 and moving targets. +# might add ARM64 or SPARC64 later on if they are established by the +# time FreeBSD 12 is out. +ONLY_FOR_ARCHS= amd64 +ONLY_FOR_ARCHS_REASON=Only amd64 is supported on non-released FreeBSD versions. +.endif + .if ${PORT_OPTIONS:MNATIVE} CMAKE_ARGS+= -DPROC_TARGET_NUMBER="2" .endif @@ -109,6 +121,11 @@ USES+= compiler:gcc-c++11-lib # over previously set values with gcc-libc++-configure as of r432539. # GCC 4.9 doesn't generate usable code on FreeBSD 11.0. USE_GCC= 5+ + +# work around compiler faults +.if ${ARCH} == i386 +CFLAGS+= -mstackrealign +.endif .endif post-patch: |