/[gentoo-alt]/trunk/sys-libs/freebsd-lib/freebsd-lib-5.3.ebuild
Gentoo

Contents of /trunk/sys-libs/freebsd-lib/freebsd-lib-5.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 113 - (show annotations) (download)
Wed Nov 10 18:33:03 2004 UTC (10 years, 1 month ago) by angusyoung
File size: 1867 byte(s)
New ebuilds based on freebsd 5.3

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit freebsd-utils flag-o-matic
6
7 USBIN=freebsd-usbin-${PV}
8 CONTRIB=freebsd-contrib-${PV}
9 CRYPTO=freebsd-crypto-${PV}
10 LIBEXEC=freebsd-libexec-${PV}
11
12 MY_PATCH=${PN}-5.3_rc1
13
14 DESCRIPTION="FreeBSD's base system libraries"
15 SLOT="0"
16 IUSE=""
17 SRC_URI="${SRC_URI} ${USBIN}.tar.bz2 ${CONTRIB}.tar.bz2
18 ${CRYPTO}.tar.bz2 ${LIBEXEC}.tar.bz2"
19
20 DEPEND=""
21 PROVIDE="virtual/glibc virtual/libc"
22
23 S=${WORKDIR}/lib
24
25 src_unpack() {
26 unpack ${P}.tar.bz2 || die "Unable to unpack ${P}.tar.bz2"
27 unpack ${USBIN}.tar.bz2 || die "Unable to unpack ${USBIN}.tar.bz2"
28 unpack ${CONTRIB}.tar.bz2 || die "Unable to unpack ${CONTRIB}.tar.bz2"
29 unpack ${CRYPTO}.tar.bz2 || die "Unable to unpack ${CRYPTO}.tar.bz2"
30 unpack ${LIBEXEC}.tar.bz2 || die "Unable to unpack ${LIBEXEC}.tar.bz2"
31
32 # Massive patching starts here
33 # Fixed locations
34 cd ${S}/libkvm
35 epatch ${FILESDIR}/${MY_PATCH}-libkvm-makefile.patch
36 cd ${S}/libsbuf
37 epatch ${FILESDIR}/${MY_PATCH}-libsbuf-makefile.patch
38 cd ${S}/libypclnt
39 epatch ${FILESDIR}/${MY_PATCH}-libypclnt-makefile.patch
40 cd ${S}/libc
41 epatch ${FILESDIR}/${MY_PATCH}-libc-makefile.patch
42 cd ${S}/libc/sys
43 epatch ${FILESDIR}/${MY_PATCH}-libc_sys-makefileinc.patch
44 cd ${S}/libcam
45 epatch ${FILESDIR}/${MY_PATCH}-libcam-makefile.patch
46 cd ${S}/libngatm
47 epatch ${FILESDIR}/${MY_PATCH}-libngatm-makefile.patch
48 cd ${S}/libthr
49 epatch ${FILESDIR}/${MY_PATCH}-libthr-makefile.patch
50 cd ${S}/libncurses
51 epatch ${FILESDIR}/${MY_PATCH}-libncurses-makefile.patch
52
53 # Fixes in the source files
54 cd ${S}/msun/i387
55 epatch ${FILESDIR}/${MY_PATCH}-msun-fenvc.patch
56 }
57
58 src_compile() {
59 filter-flags "-fomit-frame-pointer"
60 replace-flags "-O?" -"O1"
61 emake || die "emake failed"
62 }
63
64 src_install() {
65 emake DESTDIR=${D} install || die "Install failed"
66 }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20