summaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authordholland <dholland>2014-12-27 02:03:19 +0000
committerdholland <dholland>2014-12-27 02:03:19 +0000
commit76f8d5e9890128a59b5776364940a12cda0fe647 (patch)
tree20881caa403de17a90b745d7f0b97f16cad19553 /cad
parent98674dbd43fcfa54e6394a78b284461ab1f957f1 (diff)
downloadpkgsrc-76f8d5e9890128a59b5776364940a12cda0fe647.tar.gz
Fix netbsd-5 build by SUBSTing out fabsl(). From John D. Baker in PR 48980.
Diffstat (limited to 'cad')
-rw-r--r--cad/kicad/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/cad/kicad/Makefile b/cad/kicad/Makefile
index fbc0fb0e6d6..48559040cc3 100644
--- a/cad/kicad/Makefile
+++ b/cad/kicad/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2014/11/07 19:39:27 adam Exp $
+# $NetBSD: Makefile,v 1.5 2014/12/27 02:03:19 dholland Exp $
#
V= 20140214
@@ -37,6 +37,18 @@ SUBST_FILES.macosx= bitmap2component/CMakeLists.txt \
pcbnew/CMakeLists.txt
SUBST_SED.macosx= -e 's/[[:<:]]MACOSX_BUNDLE[[:>:]]//'
+.include "../../mk/bsd.prefs.mk"
+
+# PR 48980: no fabsl on netbsd-5
+.if !empty(MACHINE_PLATFORM:MNetBSD-5.*)
+SUBST_CLASSES+= netbsd5
+SUBST_STAGE.netbsd5= pre-patch
+SUBST_MESSAGE.netbsd5= Substituting fabs() for fabsl() for NetBSD-5
+SUBST_FILES.netbsd5= pcbnew/legacy_plugin.cpp \
+ tools/test-nm-biu-to-ascii-mm-round-tripping.cpp
+SUBST_SED.netbsd5= -e 's/fabsl/fabs/g'
+.endif
+
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/cmake/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"