diff options
author | Olivier Fisette <ribosome@gentoo.org> | 2004-12-28 20:11:36 +0000 |
---|---|---|
committer | Olivier Fisette <ribosome@gentoo.org> | 2004-12-28 20:11:36 +0000 |
commit | 4b2e1fe6ad4974db4421f471128bbcd90409e4ad (patch) | |
tree | bdbb63624d33c1be9de88acdbd0a38e85119bb22 /sci-libs/djbfft/djbfft-0.76.ebuild | |
parent | Fixed ChangeLog header. (Manifest recommit) (diff) | |
download | gentoo-2-4b2e1fe6ad4974db4421f471128bbcd90409e4ad.tar.gz gentoo-2-4b2e1fe6ad4974db4421f471128bbcd90409e4ad.tar.bz2 gentoo-2-4b2e1fe6ad4974db4421f471128bbcd90409e4ad.zip |
Moved from dev-libs/djbfft to sci-libs/djbfft.
Diffstat (limited to 'sci-libs/djbfft/djbfft-0.76.ebuild')
-rw-r--r-- | sci-libs/djbfft/djbfft-0.76.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/sci-libs/djbfft/djbfft-0.76.ebuild b/sci-libs/djbfft/djbfft-0.76.ebuild new file mode 100644 index 000000000000..35aaa1a20cc9 --- /dev/null +++ b/sci-libs/djbfft/djbfft-0.76.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/djbfft/djbfft-0.76.ebuild,v 1.1 2004/12/28 20:11:36 ribosome Exp $ + +IUSE="static" + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="extremely fast library for floating-point convolution" +HOMEPAGE="http://cr.yp.to/djbfft.html" +SRC_URI="http://cr.yp.to/djbfft/${P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="amd64 ~hppa ~ppc sparc x86 ~alpha" + +src_unpack() { + MY_PV="${PV:0:1}.${PV:2:1}.${PV:3:1}" # a.bc -> a.b.c + MY_D="${D}usr" + + # mask out everything, which is not suggested by the author (RTFM)! + ALLOWED_FLAGS="-fstack-protector -march -mcpu -pipe -mpreferred-stack-boundary -ffast-math" + strip-flags + + MY_CFLAGS="$CFLAGS -O1 -fomit-frame-pointer" + use x86 && MY_CFLAGS="$MY_CFLAGS -malign-double" + + if use static ; then + LIBPERMS="0644" + LIBDJBFFT="libdjbfft.a" + else + LIBPERMS="0755" + LIBDJBFFT="libdjbfft.so.${MY_PV}" + fi + + unpack "${A}" + cd "${S}" + epatch "${FILESDIR}/${P}-gcc3.patch" + epatch "${FILESDIR}/${P}-shared.patch" + if use static ; then + echo "$(tc-getCC) $MY_CFLAGS" > "conf-cc" + else + echo "$(tc-getCC) $MY_CFLAGS -fPIC -DPIC" > "conf-cc" + fi + echo "$(tc-getCC) $LDFLAGS" > "conf-ld" + echo "${MY_D}" > "conf-home" + einfo "conf-cc: $(<conf-cc)" +} + +src_compile() { + emake LIBDJBFFT="$LIBDJBFFT" LIBPERMS="$LIBPERMS" || die +} + +src_install() { + make LIBDJBFFT="$LIBDJBFFT" setup check || die + if ! use static ; then + ln -snf "${LIBDJBFFT}" "${MY_D}/lib/libdjbfft.so" + ln -snf "${LIBDJBFFT}" "${MY_D}/lib/libdjbfft.so.${MY_PV%%.*}" + fi + dodoc CHANGES README TODO VERSION +} |