pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/cross/avr-gcc cross/avr-gcc: Add options.mk



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e92843cba26d
branches:  trunk
changeset: 458051:e92843cba26d
user:      micha <micha%pkgsrc.org@localhost>
date:      Wed Sep 08 12:08:21 2021 +0000

description:
cross/avr-gcc: Add options.mk

diffstat:

 cross/avr-gcc/options.mk |  24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diffs (28 lines):

diff -r c765d1d5faca -r e92843cba26d cross/avr-gcc/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/cross/avr-gcc/options.mk  Wed Sep 08 12:08:21 2021 +0000
@@ -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



Home | Main Index | Thread Index | Old Index