summaryrefslogtreecommitdiff
path: root/core/gmp/MAKEPKG
diff options
context:
space:
mode:
authorrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
committerrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
commitc82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch)
tree56d864b5a5c6c145edd96178ae219a8f90e191a6 /core/gmp/MAKEPKG
downloadports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'core/gmp/MAKEPKG')
-rw-r--r--core/gmp/MAKEPKG43
1 files changed, 43 insertions, 0 deletions
diff --git a/core/gmp/MAKEPKG b/core/gmp/MAKEPKG
new file mode 100644
index 0000000..d52ab8a
--- /dev/null
+++ b/core/gmp/MAKEPKG
@@ -0,0 +1,43 @@
+#!/bin/mkpkg
+# description: GNU multiple precision arithmetic library
+# url: https://gmplib.org
+
+name=gmp
+version=6.3.0
+release=2
+source=(https://ftp.gnu.org/gnu/gmp/gmp-$version.tar.xz)
+depends=()
+makedeps=(m4 findutils)
+
+sha256sums=(
+ "a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898"
+)
+
+build() {
+ cd gmp-$version
+
+ # C only. --enable-cxx builds libgmpxx, which links libc++/libc++abi/
+ # libunwind and makes the whole llvm toolchain a runtime dependency of
+ # anything that needs gmp -- nftables included. Nothing in the tree
+ # uses the C++ interface.
+ ./configure \
+ --prefix=/ \
+ --libdir=/lib \
+ --includedir=/include \
+ --mandir=/usr/share/man \
+ --disable-static \
+ --disable-cxx
+
+ make
+ make DESTDIR=$PKG install
+
+ # Remove info/docs
+ rm -rf $PKG/share
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh