summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormicha <micha@pkgsrc.org>2021-09-08 12:08:21 +0000
committermicha <micha@pkgsrc.org>2021-09-08 12:08:21 +0000
commita03f3ad7bad439fa19eeb60ee2412b7a065603c6 (patch)
tree305202591614cd99e5787905a583e1eeea6f2542
parent6c3f408a8fe2ed411d46923031fcc206fc980ba5 (diff)
downloadpkgsrc-a03f3ad7bad439fa19eeb60ee2412b7a065603c6.tar.gz
cross/avr-gcc: Add options.mk
-rw-r--r--cross/avr-gcc/options.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/cross/avr-gcc/options.mk b/cross/avr-gcc/options.mk
new file mode 100644
index 00000000000..a6f48aa9410
--- /dev/null
+++ b/cross/avr-gcc/options.mk
@@ -0,0 +1,24 @@
+# $NetBSD: options.mk,v 1.1 2021/09/08 12:08:21 micha Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.avr-gcc
+PKG_SUPPORTED_OPTIONS= gcc-inplace-math
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+# gcc-inplace-math: Build math libraries in place
+.if !empty(PKG_OPTIONS:Mgcc-inplace-math)
+. include "../../devel/gmp/inplace.mk"
+. include "../../math/isl/inplace.mk"
+. include "../../math/mpcomplex/inplace.mk"
+. include "../../math/mpfr/inplace.mk"
+.else
+CONFIGURE_ARGS+= --with-gmp=${BUILDLINK_PREFIX.gmp}
+CONFIGURE_ARGS+= --with-isl=${BUILDLINK_PREFIX.isl}
+CONFIGURE_ARGS+= --with-mpc=${BUILDLINK_PREFIX.mpcomplex}
+CONFIGURE_ARGS+= --with-mpfr=${BUILDLINK_PREFIX.mpfr}
+. include "../../devel/gmp/buildlink3.mk"
+. include "../../math/isl/buildlink3.mk"
+. include "../../math/mpcomplex/buildlink3.mk"
+. include "../../math/mpfr/buildlink3.mk"
+.endif