# vim: ft=make ts=4 sw=4 noet
.DEFAULT_GOAL := all
NAME    = gmp
VERSION = 6.3.0
GARTYPE = v2

MASTER_SITES = http://ftp.gnu.org/gnu/gmp/
DISTFILES   += $(DISTNAME).tar.gz

LICENSE = COPYING

PACKAGES              += OZSWgmp
SPKG_DESC_OZSWgmp     = GNU Multiple Precision Arithmetic Library
CATALOGNAME_OZSWgmp   = gmp

# Keep static libs — nettle and others link against libgmp.a at build time
MERGE_EXCLUDE_STATICLIBS =

# Select 32-bit ABI (i386 build)
EXTRA_CONFIGURE_ENV += ABI=32

post-configure:
	@find $(WORKSRC) -name "libtool" -type f -exec \
	    gsed -i 's/ECHO="print -r --"/ECHO="printf %s\\n"/g' {} \;
	@$(MAKECOOKIE)

include gar/category.mk
