/[gentoo-x86]/sys-libs/zlib/zlib-1.2.3-r1.ebuild
Gentoo

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Sun Feb 6 21:36:45 2011 UTC (3 years, 7 months ago) by leio
Branch: MAIN
Changes since 1.14: +3 -3 lines
Drop to ~mips

(Portage version: 2.1.9.35/cvs/Linux mips64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-libs/zlib/zlib-1.2.3-r1.ebuild,v 1.14 2009/10/10 17:01:04 vapier Exp $
4
5 inherit eutils flag-o-matic toolchain-funcs
6
7 DESCRIPTION="Standard (de)compression library"
8 HOMEPAGE="http://www.zlib.net/"
9 SRC_URI="http://www.gzip.org/zlib/${P}.tar.bz2
10 http://www.zlib.net/${P}.tar.bz2"
11
12 LICENSE="ZLIB"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
15 IUSE=""
16
17 RDEPEND=""
18
19 src_unpack() {
20 unpack ${A}
21 cd "${S}"
22 epatch "${FILESDIR}"/${P}-build.patch
23 epatch "${FILESDIR}"/${P}-visibility-support.patch #149929
24 epatch "${FILESDIR}"/${PN}-1.2.1-glibc.patch
25 epatch "${FILESDIR}"/${PN}-1.2.1-build-fPIC.patch
26 epatch "${FILESDIR}"/${PN}-1.2.1-configure.patch #55434
27 epatch "${FILESDIR}"/${PN}-1.2.1-fPIC.patch
28 epatch "${FILESDIR}"/${PN}-1.2.3-r1-bsd-soname.patch #123571
29 epatch "${FILESDIR}"/${PN}-1.2.3-LDFLAGS.patch #126718
30 epatch "${FILESDIR}"/${PN}-1.2.3-mingw-implib.patch #288212
31 sed -i -e '/ldconfig/d' Makefile*
32 }
33
34 src_compile() {
35 tc-export AR CC RANLIB
36 case ${CHOST} in
37 *-mingw*|mingw*)
38 export RC=${CHOST}-windres DLLWRAP=${CHOST}-dllwrap
39 emake -f win32/Makefile.gcc prefix=/usr || die
40 ;;
41 *)
42 # not an autoconf script, so cant use econf
43 ./configure --shared --prefix=/usr --libdir=/$(get_libdir) || die
44 emake || die
45 ;;
46 esac
47 }
48
49 src_install() {
50 einstall libdir="${D}"/$(get_libdir) || die
51 rm "${D}"/$(get_libdir)/libz.a
52 insinto /usr/include
53 doins zconf.h zlib.h
54
55 doman zlib.3
56 dodoc FAQ README ChangeLog algorithm.txt
57
58 # we don't need the static lib in /lib
59 # as it's only for compiling against
60 dolib libz.a
61
62 # all the shared libs go into /lib
63 # for NFS based /usr
64 case ${CHOST} in
65 *-mingw*|mingw*)
66 dobin zlib1.dll || die
67 dolib libz.dll.a || die
68 ;;
69 *)
70 into /
71 dolib libz.so.${PV}
72 ( cd "${D}"/$(get_libdir) ; chmod 755 libz.so.* )
73 dosym libz.so.${PV} /$(get_libdir)/libz.so
74 dosym libz.so.${PV} /$(get_libdir)/libz.so.1
75 gen_usr_ldscript libz.so
76 ;;
77 esac
78 }

  ViewVC Help
Powered by ViewVC 1.1.20