summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorwiz <wiz>2016-12-12 14:23:47 +0000
committerwiz <wiz>2016-12-12 14:23:47 +0000
commit9883901f8a2258ff0d4d9e9c1fd8c73437a59fe4 (patch)
tree4ad8dbecf32d586fdf3e37ff2b5cc8c44a41d797 /math
parentd8c1b7dfd46f35cc3350cc40ef950f7d82e8c251 (diff)
downloadpkgsrc-9883901f8a2258ff0d4d9e9c1fd8c73437a59fe4.tar.gz
Wrap DragonFly specific workaround in .if ${OPSYS} == "DragonFly"
Diffstat (limited to 'math')
-rw-r--r--math/py-numpy/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/math/py-numpy/Makefile b/math/py-numpy/Makefile
index 8daebf5baac..501ae90dbcf 100644
--- a/math/py-numpy/Makefile
+++ b/math/py-numpy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2016/12/04 22:51:55 marino Exp $
+# $NetBSD: Makefile,v 1.35 2016/12/12 14:23:47 wiz Exp $
DISTNAME= numpy-1.11.2
GITHUB_PROJECT= numpy
@@ -17,12 +17,6 @@ MAKE_ENV+= ATLAS=None
REPLACE_PYTHON+= *.py */*.py */*/*.py */*/*/*.py */*/*/*/*.py
-# numpy fails using the gold linker with:
-# fatal error: --sysroot=: must take a non-empty argument
-# Work around it on DragonFly by specifying the classic gnu linker
-
-MAKE_ENV+= LDVER=ld.bfd
-
# XXX Avoid picking up other compilers when installed
.include "../../mk/compiler.mk"
@@ -40,6 +34,13 @@ LDFLAGS+= ${_COMPILER_ABI_FLAG.${ABI}}
.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "DragonFly"
+# numpy fails using the gold linker with:
+# fatal error: --sysroot=: must take a non-empty argument
+# Work around it on DragonFly by specifying the classic gnu linker
+MAKE_ENV+= LDVER=ld.bfd
+.endif
+
# TEST_DEPENDS
BUILD_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose