From: Michael Tremer Date: Sun, 29 Nov 2009 19:57:08 +0000 (+0100) Subject: New package: gmp. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58608bd46b0c6f2b6444c69f18cb4d06d8b551aa;p=ipfire-3.x.git New package: gmp. --- diff --git a/pkgs/core/gmp/gmp.nm b/pkgs/core/gmp/gmp.nm new file mode 100644 index 000000000..f45cc66af --- /dev/null +++ b/pkgs/core/gmp/gmp.nm @@ -0,0 +1,72 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include $(PKGROOT)/Include + +PKG_NAME = gmp +PKG_VER = 4.3.1 +PKG_REL = 0 + +PKG_MAINTAINER = +PKG_GROUP = System/Libraries +PKG_URL = http://gmplib.org/ +PKG_LICENSE = LGPLv3+ +PKG_SUMMARY = A GNU arbitrary precision library. + +PKG_DEPS += readline + +define PKG_DESCRIPTION + The gmp package contains GNU MP, a library for arbitrary precision \ + arithmetic, signed integers operations, rational numbers and floating \ + point numbers. GNU MP is designed for speed, for both small and very \ + large operands. GNU MP is fast because it uses fullwords as the basic \ + arithmetic type, it uses fast algorithms, it carefully optimizes \ + assembly code for many CPUs' most common inner loops, and it generally \ + emphasizes speed over simplicity/elegance in its operations. +endef + +PKG_TARBALL = $(THISAPP).tar.bz2 + +ifeq "$(MACHINE)" "x86_64" + ABI = 64 +else + ABI = 32 +endif + +############################################################################### +# Installation Details +############################################################################### + +define STAGE_BUILD + cd $(DIR_APP) && \ + ABI=$(ABI) \ + ./configure \ + $(CONFIGURE_ARCH) \ + --prefix=/usr \ + --enable-cxx \ + --enable-mpbsd \ + --disable-static + + cd $(DIR_APP) && make $(PARALLELISMFLAGS) +endef