diff options
author | marino <marino@FreeBSD.org> | 2016-08-04 11:00:26 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2016-08-04 11:00:26 +0800 |
commit | d2536be7551b9ea295431ed0841f5d0d6470a237 (patch) | |
tree | fa0a14d9a49f98bb14dd2eedd8aea08f81d08ebd /math/R | |
parent | 794aa4d2006136ca7754c98b1957606e3e4219f3 (diff) | |
download | freebsd-ports-gnome-d2536be7551b9ea295431ed0841f5d0d6470a237.tar.gz freebsd-ports-gnome-d2536be7551b9ea295431ed0841f5d0d6470a237.tar.zst freebsd-ports-gnome-d2536be7551b9ea295431ed0841f5d0d6470a237.zip |
math/R: Tweak previous ${OSVERSION} without ${OPSYS} commit
I made a mistake; some of the post-patch target does apply to DragonFly
as well as the pre-configure target. Tighten up which code is designated
as FreeBSD only. (again, a No-Op for FreeBSD)
Approved by: OSVERSION/OPSYS blanket
Diffstat (limited to 'math/R')
-rw-r--r-- | math/R/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/math/R/Makefile b/math/R/Makefile index b80e30e939b7..5527d88a7541 100644 --- a/math/R/Makefile +++ b/math/R/Makefile @@ -163,8 +163,7 @@ PLIST_SUB= R_SOVERSION="${R_SOVERSION}" \ .include "compiler.mk" .include <bsd.port.options.mk> -.if ${OPSYS} == FreeBSD -.if ${OSVERSION} > 1000052 && \ +.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1000052 && \ (${ARCH} == amd64 || ${ARCH} == i386 || ${ARCH} == ia64 || ${ARCH} == pc98 || \ ${ARCH} == sparc64) .for i in coshl erfcl erfl lgammal powl sinhl tanhl tgammal @@ -174,6 +173,7 @@ LDFLAGS+= -fno-builtin-${i} .endif post-patch: +.if ${OPSYS} == FreeBSD .if !${PORT_OPTIONS:MMISSING} .if ${OSVERSION} < 1000016 @${REINPLACE_CMD} -e \ @@ -204,6 +204,7 @@ ${ARCH} == sparc64) '\|#[[:blank:]]*include[[:blank:]]*<complex.h>|{x;s|^.*$$|#include "missing_complex.h"|;H;x;}' \ ${WRKSRC}/src/main/complex.c .endif # !PORT_OPTIONS:MMISSING +.endif # ${OPSYS} == FreeBSD @${REINPLACE_CMD} -e \ '\|#[[:blank:]]*include[[:blank:]]*<math.h>|{x;s|^.*$$|#include ${LIBMH}|;H;x;}'\ ${WRKSRC}/src/nmath/nmath.h \ @@ -223,7 +224,6 @@ pre-configure: compiler and architecture: please enable the MISSING option."; \ fi .endif -.endif # ${OPSYS} == FreeBSD post-install: .for L in R Rblas Rlapack |