#!/usr/bin/env modbuild

SOURCE_URL="http://www.mpfr.org/$P-current/$P-$V.tar.gz"

pbuild::configure() {
	"${MODULE_SRCDIR}"/configure \
		--prefix="${PREFIX}" \
		--with-gmp=$GMP_PREFIX \
		--disable-shared \
		|| exit 1
}

# use system gcc to compile
declare -rx CC=gcc

module use 'Libraries'

pbuild::add_to_group 'Libraries'
pbuild::make_all
