Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 36153 Details for
Bug 58341
Enhancement for sys-libs/zlib-1.2.1-r2 (adding asm optimisations for x86)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
zlib-1.2.1-r2.ebuild
zlib-1.2.1-r2.ebuild (text/plain), 2.27 KB, created by
Stefan Briesenick (RETIRED)
on 2004-07-25 16:49:34 UTC
(
hide
)
Description:
zlib-1.2.1-r2.ebuild
Filename:
MIME Type:
Creator:
Stefan Briesenick (RETIRED)
Created:
2004-07-25 16:49:34 UTC
Size:
2.27 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/sys-libs/zlib/zlib-1.2.1-r2.ebuild,v 1.12 2004/07/22 05:06:07 vapier Exp $ > >inherit eutils flag-o-matic > >DESCRIPTION="Standard (de)compression library" >HOMEPAGE="http://www.gzip.org/zlib/" >SRC_URI="http://www.gzip.org/zlib/${P}.tar.bz2" > >LICENSE="ZLIB" >SLOT="0" >KEYWORDS="x86 ~ppc sparc mips alpha arm hppa amd64 ~ia64 ~ppc64 s390" >IUSE="build asm" > >DEPEND="virtual/libc" > >src_unpack() { > unpack ${A} > > cd ${S} > # Make sure we link with glibc at all times > epatch ${FILESDIR}/${P}-glibc.patch > # Needed for Alpha and prelink > epatch ${FILESDIR}/${P}-build-fPIC.patch > # Only export global symbols, bug #32764 > epatch ${FILESDIR}/${P}-mapfile.patch > # The configure script can be kind of dumb #55434 > epatch ${FILESDIR}/${P}-configure.patch >} > >src_compile() { > > local myflags="" > if use asm # using asm optimisations > then > if use x86 # only for x86 > then > local myarch="$(uname -m)" > case "$myarch" in > i[56]86) > append-flags -DASMV > replace-flags "-Os" "-O3" > replace-flags "-O1" "-O3" > replace-flags "-O2" "-O3" > cp contrib/asm${myarch/i/}/* . > epatch ${FILESDIR}/${P}-asm.patch > einfo "Using ${myarch} assembler optimisation..." > myflags="OBJA=match.o" > ;; > *) > ewarn "No assembler optimisation available for this architecture!" > ;; > esac > else > ewarn "No assembler optimisation available for this architecture!" > fi > fi > > ./configure --shared --prefix=/usr --libdir=/lib || die > emake $myflags || die > make test || die > > ./configure --prefix=/usr --libdir=/lib || die > emake $myflags || die >} > >src_install() { > einstall libdir=${D}/lib || die > rm ${D}/lib/libz.a > into /usr > dodir /usr/include > insinto /usr/include > doins zconf.h zlib.h > > if ! use build ; then > doman zlib.3 > dodoc ChangeLog FAQ README* > docinto txt > dodoc algorithm.txt > fi > > # we don't need the static lib in /lib > # as it's only for compiling against > into /usr > dolib libz.a > > # all the shared libs go into /lib > # for NFS based /usr > into / > dolib libz.so.${PV} > ( cd ${D}/lib ; chmod 755 libz.so.* ) > dosym libz.so.${PV} /lib/libz.so > dosym libz.so.${PV} /lib/libz.so.1 > # with an extra symlink at /usr/lib > dosym /lib/libz.so.${PV} /usr/lib/libz.so >}
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 58341
: 36153 |
36154
|
36155