diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2007-04-07 15:49:52 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2007-04-07 15:49:52 +0000 |
commit | 61cf50629df24e21a773437381299fc699549518 (patch) | |
tree | f49b480e4982a1b774a3bfed5f5f3556326d00e5 /sci-libs/djbfft/djbfft-0.76.ebuild | |
parent | stable amd64, bug 165591 (diff) | |
download | historical-61cf50629df24e21a773437381299fc699549518.tar.gz historical-61cf50629df24e21a773437381299fc699549518.tar.bz2 historical-61cf50629df24e21a773437381299fc699549518.zip |
Fix location for amd64 and remove USE=static, bug 173624 thanks to Georgi Chulkov <g.chulkov@iu-bremen.de>, Thomas A. (gentoofan23) <gentoofan23@gmail.com>, philantrop and jakub
Package-Manager: portage-2.1.2.3
Diffstat (limited to 'sci-libs/djbfft/djbfft-0.76.ebuild')
-rw-r--r-- | sci-libs/djbfft/djbfft-0.76.ebuild | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/sci-libs/djbfft/djbfft-0.76.ebuild b/sci-libs/djbfft/djbfft-0.76.ebuild index fc117a7817d3..f87009d331d1 100644 --- a/sci-libs/djbfft/djbfft-0.76.ebuild +++ b/sci-libs/djbfft/djbfft-0.76.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 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.8 2007/02/04 18:26:10 blubb Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/djbfft/djbfft-0.76.ebuild,v 1.9 2007/04/07 15:49:52 genstef Exp $ inherit eutils flag-o-matic toolchain-funcs multilib @@ -11,7 +11,7 @@ SRC_URI="http://cr.yp.to/djbfft/${P}.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="alpha amd64 arm ~hppa ppc ppc64 sh sparc x86 ~x86-fbsd" -IUSE="static" +IUSE="" # the "check" target of the Makefile (version 0.76 at least) only checks if # all files were installed with correct permissions. Can't check that at @@ -26,41 +26,31 @@ src_unpack() { 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" + 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 + LIBPERMS="0755" + LIBDJBFFT="libdjbfft.so.${MY_PV}" - unpack "${A}" + unpack ${A} cd "${S}" epatch "${FILESDIR}/${P}-gcc3.patch" epatch "${FILESDIR}/${P}-shared.patch" + sed -i -e "s:\"lib\":\"$(get_libdir)\":" hier.c - 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 "$(tc-getCC) $MY_CFLAGS -fPIC -DPIC" > "conf-cc" + echo "$(tc-getCC) ${LDFLAGS}" > "conf-ld" echo "${MY_D}" > "conf-home" einfo "conf-cc: $(<conf-cc)" } src_compile() { - emake LIBDJBFFT="$LIBDJBFFT" LIBPERMS="$LIBPERMS" || die + emake LIBDJBFFT="$LIBDJBFFT" LIBPERMS="$LIBPERMS" || die "emake failed" } 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 + make LIBDJBFFT="$LIBDJBFFT" setup check || die "install failed" + dosym "${LIBDJBFFT}" /usr/$(get_libdir)/libdjbfft.so + dosym "${LIBDJBFFT}" /usr/$(get_libdir)/libdjbfft.so.${MY_PV%%.*} dodoc CHANGES README TODO VERSION } |