summaryrefslogtreecommitdiff
path: root/math/libquadmath
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-05-16 10:10:54 +0000
committernia <nia@pkgsrc.org>2021-05-16 10:10:54 +0000
commit2038e3d99122f6b4a84130046dddfdbf9eb98b76 (patch)
tree5d732c3df6fa9f52383dc80971b3b48822ec0ddf /math/libquadmath
parent88b74caff9e8e141a780a9a8313b132e1ce03f8a (diff)
downloadpkgsrc-2038e3d99122f6b4a84130046dddfdbf9eb98b76.tar.gz
add math/libquadmath
GCC Quad-Precision Math Library
Diffstat (limited to 'math/libquadmath')
-rw-r--r--math/libquadmath/DESCR1
-rw-r--r--math/libquadmath/Makefile41
-rw-r--r--math/libquadmath/PLIST5
-rw-r--r--math/libquadmath/buildlink3.mk13
-rw-r--r--math/libquadmath/distinfo6
5 files changed, 66 insertions, 0 deletions
diff --git a/math/libquadmath/DESCR b/math/libquadmath/DESCR
new file mode 100644
index 00000000000..e866c265df9
--- /dev/null
+++ b/math/libquadmath/DESCR
@@ -0,0 +1 @@
+GCC Quad-Precision Math Library
diff --git a/math/libquadmath/Makefile b/math/libquadmath/Makefile
new file mode 100644
index 00000000000..13f7e685b9c
--- /dev/null
+++ b/math/libquadmath/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.1 2021/05/16 10:10:54 nia Exp $
+
+DISTNAME= gcc-11.1.0
+PKGNAME= ${DISTNAME:S/gcc/libquadmath/}
+CATEGORIES= math
+MASTER_SITES= ${MASTER_SITE_GNU:=gcc/${DISTNAME}/}
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://gcc.gnu.org/
+COMMENT= GCC Quad-Precision Math Library
+LICENSE= gnu-gpl-v3
+
+USE_LANGUAGES= c99 c++
+USE_TOOLS+= gmake
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+INFO_FILES= yes
+
+GNU_CONFIGURE_STRICT= no
+
+## Build outside ${WRKSRC}
+OBJDIR= ../build
+CONFIGURE_DIRS= ${OBJDIR}
+CONFIGURE_SCRIPT= ../${DISTNAME}/libquadmath/configure
+CONFIGURE_ARGS+= --infodir=${PREFIX}/info
+
+PLIST_SUBST+= NATIVE_MACHINE_GNU_PLATFORM=${NATIVE_MACHINE_GNU_PLATFORM}
+
+CHECK_PORTABILITY_SKIP+= contrib/*
+
+.include "../../mk/bsd.prefs.mk"
+
+.if empty(PKGSRC_COMPILER:Mgcc*)
+PKG_SKIP_REASON+= "Uses esoteric GCC-specific features"
+.endif
+
+pre-configure:
+ ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/libquadmath/PLIST b/math/libquadmath/PLIST
new file mode 100644
index 00000000000..f34df61f9cf
--- /dev/null
+++ b/math/libquadmath/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2021/05/16 10:10:54 nia Exp $
+info/libquadmath.info
+lib/gcc/${NATIVE_MACHINE_GNU_PLATFORM}/${PKGVERSION}/include/quadmath.h
+lib/gcc/${NATIVE_MACHINE_GNU_PLATFORM}/${PKGVERSION}/include/quadmath_weak.h
+lib/libquadmath.la
diff --git a/math/libquadmath/buildlink3.mk b/math/libquadmath/buildlink3.mk
new file mode 100644
index 00000000000..025db4dcc57
--- /dev/null
+++ b/math/libquadmath/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2021/05/16 10:10:54 nia Exp $
+
+BUILDLINK_TREE+= libquadmath
+
+.if !defined(LIBQUADMATH_BUILDLINK3_MK)
+LIBQUADMATH_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libquadmath+= libquadmath>=11.0
+BUILDLINK_ABI_DEPENDS.libquadmath+= libquadmath>=11.0
+BUILDLINK_PKGSRCDIR.libquadmath?= ../../math/libquadmath
+.endif
+
+BUILDLINK_TREE+= -libquadmath
diff --git a/math/libquadmath/distinfo b/math/libquadmath/distinfo
new file mode 100644
index 00000000000..81ecc89612d
--- /dev/null
+++ b/math/libquadmath/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/05/16 10:10:54 nia Exp $
+
+SHA1 (gcc-11.1.0.tar.xz) = 9db7917f4ce337026335430814de0a5e991ec6c1
+RMD160 (gcc-11.1.0.tar.xz) = 083384ca351ea1cb6e04d15425af2103c908edf4
+SHA512 (gcc-11.1.0.tar.xz) = fd6bba0f67ff48069d03073d1a9b5e896383b1cfc9dde008e868e60a9ec5014a837d56af0ecbf467b3fb9b37ec74a676e819a18b44393a0a3c4280175b5d7ad8
+Size (gcc-11.1.0.tar.xz) = 78877216 bytes