[gentoo-x86] / sys-libs / zlib / zlib-1.2.3-r1.ebuild Project Root:

GentooDiff of /sys-libs/zlib/zlib-1.2.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph

version 1.12, Mon May 14 23:51:14 2007 UTC version 1.13, Fri May 2 04:13:33 2008 UTC
Line 1 
Line 1 
 # Copyright 1999-2007 Gentoo Foundation  # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2  # Distributed under the terms of the GNU General Public License v2
 # $Header$  # $Header$
   
Line 19 
Line 19 
 src_unpack() {  src_unpack() {
         unpack ${A}          unpack ${A}
         cd "${S}"          cd "${S}"
           epatch "${FILESDIR}"/${P}-build.patch
         epatch "${FILESDIR}"/${P}-visibility-support.patch #149929          epatch "${FILESDIR}"/${P}-visibility-support.patch #149929
         # Make sure we link with glibc at all times  
         epatch "${FILESDIR}"/${PN}-1.2.1-glibc.patch          epatch "${FILESDIR}"/${PN}-1.2.1-glibc.patch
         # Needed for Alpha and prelink  
         epatch "${FILESDIR}"/${PN}-1.2.1-build-fPIC.patch          epatch "${FILESDIR}"/${PN}-1.2.1-build-fPIC.patch
         epatch "${FILESDIR}"/${PN}-1.2.1-configure.patch #55434          epatch "${FILESDIR}"/${PN}-1.2.1-configure.patch #55434
         # fix shared library test on -fPIC dependant archs  
         epatch "${FILESDIR}"/${PN}-1.2.1-fPIC.patch          epatch "${FILESDIR}"/${PN}-1.2.1-fPIC.patch
         epatch "${FILESDIR}"/${PN}-1.2.3-r1-bsd-soname.patch #123571          epatch "${FILESDIR}"/${PN}-1.2.3-r1-bsd-soname.patch #123571
         epatch "${FILESDIR}"/${PN}-1.2.3-LDFLAGS.patch #126718          epatch "${FILESDIR}"/${PN}-1.2.3-LDFLAGS.patch #126718
         sed -i -e '/ldconfig/d' Makefile.in          sed -i -e '/ldconfig/d' Makefile*
 }  }
   
 src_compile() {  src_compile() {
         tc-export CC RANLIB          tc-export AR CC RANLIB
         export AR="$(tc-getAR) rc"          case ${CHOST} in
           *-mingw*|mingw*)
                   export RC=${CHOST}-windres DLLWRAP=${CHOST}-dllwrap
                   emake -f win32/Makefile.gcc prefix=/usr || die
                   ;;
           *)
                   # not an autoconf script, so cant use econf
         ./configure --shared --prefix=/usr --libdir=/$(get_libdir) || die          ./configure --shared --prefix=/usr --libdir=/$(get_libdir) || die
         emake || die          emake || die
                   ;;
           esac
 }  }
   
 src_install() {  src_install() {
Line 46 
Line 52 
         doins zconf.h zlib.h          doins zconf.h zlib.h
   
         doman zlib.3          doman zlib.3
         dodoc FAQ README ChangeLog          dodoc FAQ README ChangeLog algorithm.txt
         docinto txt  
         dodoc algorithm.txt  
   
         # we don't need the static lib in /lib          # we don't need the static lib in /lib
         # as it's only for compiling against          # as it's only for compiling against
Line 56 
Line 60 
   
         # all the shared libs go into /lib          # all the shared libs go into /lib
         # for NFS based /usr          # for NFS based /usr
           case ${CHOST} in
           *-mingw*|mingw*)
                   dolib zlib1.dll libzdll.a || die
                   ;;
           *)
         into /          into /
         dolib libz.so.${PV}          dolib libz.so.${PV}
         ( cd "${D}"/$(get_libdir) ; chmod 755 libz.so.* )          ( cd "${D}"/$(get_libdir) ; chmod 755 libz.so.* )
         dosym libz.so.${PV} /$(get_libdir)/libz.so          dosym libz.so.${PV} /$(get_libdir)/libz.so
         dosym libz.so.${PV} /$(get_libdir)/libz.so.1          dosym libz.so.${PV} /$(get_libdir)/libz.so.1
         gen_usr_ldscript libz.so          gen_usr_ldscript libz.so
                   ;;
           esac
 }  }

Generate output suitable for use with a patch program
Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

www@gentoo.org

Powered by ViewCVS 1.0_pre20050929

ViewCVS and CVS Help