the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: ntl%type_pkg[-64bit]
Version: 5.4.2
Revision: 1001
GCC: 4.0
Type: -64bit (boolean)
Architecture: ( %type_raw[-64bit] = -64bit ) powerpc, ( %type_raw[-64bit] = -64bit ) i386
Maintainer: Dave Morrison
Description: Library for doing number theory
Source: http://www.shoup.net/ntl/ntl-%v.tar.gz
Source-MD5: 0aac5c680eee09a19732e1601b237a0b
SourceDirectory: %{ni}-%v/src
BuildDepends: gmp%type_pkg[-64bit] (>= 4.1.4-1), libmpfr1%type_pkg[-64bit]
Depends: gmp%type_pkg[-64bit]-shlibs (>= 4.1.4-1), libmpfr1%type_pkg[-64bit]-shlibs, ( %type_raw[-64bit] = -64bit ) 64bit-cpu
BuildDependsOnly: true
Conflicts: ntl, ntl-64bit
Replaces: ntl, ntl-64bit
#Conflicts: ntl-sing
#Replaces: ntl-sing
#Provides: ntl-sing
License: GPL
CompileScript: <<
#!/bin/sh -ev
export CPU=""
if [ "%m" = "powerpc" ]; then
export CPU="-mcpu=7450"
fi
if [ "%type_raw[-64bit]" == "." ]; then
./configure LDLIBS="" PREFIX=%i DOCDIR=%i/share/doc GMP_PREFIX=%p \
NTL_GMP_LIP=on NTL_STD_CXX=on NTL_NO_INIT_TRANS=on NTL_CXX_ONLY=on CC=g++ \
LIBDIR=%i/%lib GMP_LIBDIR="-L%p/%lib"
make
else
# export CC="gcc -m64"
# export CXX="g++ -m64"
./configure LDLIBS="" PREFIX=%i DOCDIR=%i/share/doc GMP_PREFIX=%p \
NTL_GMP_LIP=on NTL_STD_CXX=on NTL_NO_INIT_TRANS=on NTL_CXX_ONLY=on \
CC="g++ -m64" CXX="g++ -m64" LIBDIR=%i/%lib GMP_LIBDIR="-L%p/%lib"
make
fi
<<
InstallScript:<<
make install
mv %i/share/doc/NTL %i/share/doc/tmp
mv %i/share/doc/tmp %i/share/doc/%n
<<
DocFiles: ../README ../doc/copying.txt:LICENSE
PostInstScript: ranlib %p/%lib/libntl.a
DescDetail: <<
NTL is a high-performance, portable c++ library providing data
structures and algorithms for manipulating signed, arbitrary length
integers, and for vectors, matrices, and polynomials over the integers
and over finite fields.
<<
DescPackaging: <<
Configured to use the Gnu Multiple Precision library (gmp)
We now use -fast instead of the obsolete -floop-transpose flag; however,
on powerpc only we must add -mcpu=7450 or else the compiled object will
only run on G5.
Previously maintained by William McCallum.
<<
HomePage: http://www.shoup.net/ntl/
<<