Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 98555 Details for
Bug 149778
Make fftw compile on freebsd (with patch)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
fftw-3.1.2.ebuild
fftw-3.1.2.ebuild (text/plain), 3.11 KB, created by
Timothy Redaelli (RETIRED)
on 2006-10-01 14:05:14 UTC
(
hide
)
Description:
fftw-3.1.2.ebuild
Filename:
MIME Type:
Creator:
Timothy Redaelli (RETIRED)
Created:
2006-10-01 14:05:14 UTC
Size:
3.11 KB
patch
obsolete
># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/fftw-3.1.2.ebuild,v 1.2 2006/07/12 12:38:37 markusle Exp $ > >inherit flag-o-matic eutils toolchain-funcs autotools > >DESCRIPTION="C subroutine library for computing the Discrete Fourier Transform (DFT)" >HOMEPAGE="http://www.fftw.org/" >SRC_URI="http://www.fftw.org/${P}.tar.gz" > >LICENSE="GPL-2" >SLOT="3.0" >KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sparc ~x86 ~x86-fbsd" >IUSE="elibc_FreeBSD altivec sse sse2 test" > >DEPEND="test? ( dev-lang/perl ) > elibc_FreeBSD? ( sci-libs/ldouble )" > >src_unpack() { > unpack ${A} > cd "${S}" > > if use elibc_FreeBSD; then > epatch "${FILESDIR}"/${PN}-configure.patch > einfo "Running autoreconf" > autoreconf --verbose --install --symlink --force || die "autoreconf failed" > fi > > if [[ "${ARCH}" == "ppc-macos" ]];then > epatch "${FILESDIR}"/${PN}-ppc-macos.patch > fi > > # fix info file > sed -e 's/Texinfo documentation system/Libraries/' \ > -i doc/fftw3.info || die "failed to fix info file" > > cd "${WORKDIR}" > mv ${P} ${P}-single > cp -pPR ${P}-single ${P}-double > cp -pPR ${P}-single ${P}-longdouble >} > >src_compile() { > # filter -Os according to docs > replace-flags -Os -O2 > > local myconfcommon="--enable-shared --enable-threads" > local myconfsingle="" > local myconfdouble="" > local myconflongdouble="" > > if use sse2; then > myconfsingle="$myconfsingle --enable-sse" > myconfdouble="$myconfdouble --enable-sse2" > elif use sse; then > myconfsingle="$myconfsingle --enable-sse" > fi > # altivec only helps floats, not doubles > if use altivec; then > myconfsingle="$myconfsingle --enable-altivec" > fi > > cd "${S}-single" > econf \ > ${myconfcommon} \ > --enable-float \ > ${myconfsingle} || \ > die "./configure in single failed" > emake || die > > #the only difference here is no --enable-float > cd "${S}-double" > econf \ > ${myconfcommon} \ > ${myconfdouble} || \ > die "./configure in double failed" > emake || die > > #the only difference here is --enable-long-double > cd "${S}-longdouble" > econf \ > ${myconfcommon} \ > --enable-long-double \ > ${myconflongdouble} || \ > die "./configure in long double failed" > emake || die >} > >src_install () { > #all builds are installed in the same place > #libs have distinuguished names; include files, docs etc. identical. > cd "${S}-single" > emake DESTDIR="${D}" install || die > > cd "${S}-double" > emake DESTDIR="${D}" install || die > > cd "${S}-longdouble" > emake DESTDIR="${D}" install || die > > # Install documentation. > cd "${S}-single" > > dodoc AUTHORS ChangeLog NEWS README TODO COPYRIGHT CONVENTIONS > > cd doc/html > dohtml -r . >} > >src_test () { > # We want this to be a reasonably quick test, but that is still hard... > ewarn "This test series will take 30 minutes on a modern 2.5Ghz machine" > # Do not increase the number of threads, it will not help your performance > local testbase="perl check.pl --nthreads=1 --estimate" > for d in single double longdouble; do > cd "${S}-${d}"/tests > for p in 0 1 2; do > n="${d/longdouble/long double} / ${p}-D" > einfo "Testing $n" > ${testbase} -${p}d || die "Failure: $n" > done > done >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 149778
:
98555
|
98556
|
98557
|
98558
|
98699