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

Contents of /trunk/sys-libs/freebsd-lib/freebsd-lib-5.3.20050301-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 285 - (show annotations) (download)
Tue Apr 19 12:27:20 2005 UTC (9 years, 5 months ago) by angusyoung
File size: 2995 byte(s)
New ebuild a patch to avoid compilation of ncurses.

1 # Copyright 1999-2005 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 BASE_PV=5.3
8 MY_PATCH=${PN}-${BASE_PV}_rc1
9
10 USBIN="freebsd-usbin-${PV}"
11 CONTRIB="freebsd-contrib-${PV}"
12 CRYPTO="freebsd-crypto-${PV}"
13 LIBEXEC="freebsd-libexec-${PV}"
14
15 DESCRIPTION="FreeBSD's base system libraries"
16 SLOT="0"
17 IUSE=""
18 SRC_URI="${SRC_URI}
19 ${BASE_SRC_URI}${USBIN}.tar.bz2
20 ${BASE_SRC_URI}${CONTRIB}.tar.bz2
21 ${BASE_SRC_URI}${CRYPTO}.tar.bz2
22 ${BASE_SRC_URI}${LIBEXEC}.tar.bz2"
23
24 # This should depend on com_err stuff asap if kerberos is requested.
25 DEPEND="=sys-devel/freebsd-mk-defs-5.3*
26 =sys-kernel/freebsd-sources-5.3*
27 =sys-kernel/freebsd-headers-5.3*
28 =sys-kernel/freebsd-headers-5.3*
29 ssl? ( || ( =sys-apps/freebsd-crypto-5.3* dev-libs/openssl ) )
30 ssh? ( =sys-apps/freebsd-crypto-5.3* )
31 kerberos? ( virtual/krb5 )"
32
33 PROVIDE="virtual/libc"
34
35 S=${WORKDIR}/lib
36 IUSE="atm bind bluetooth sendmail ssl usb ipv6 kerberos ssh"
37
38 +pkg_setup() {
39 if ! use ssl && use kerberos; then
40 eerror "If you want kerberos support you need to enable ssl sup$
41 fi
42
43 use atm || mymakeopts="${mymakeopts} NO_ATM= "
44 use bind || mymakeopts="${mymakeopts} NO_BIND= "
45 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
46 use bind || mymakeopts="${mymakeopts} NO_BIND= "
47 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
48 use sendmail || mymakeopts="${mymakeopts} NO_SENDMAIL= "
49 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NOCRYPT= "
50 use usb || mymakeopts="${mymakeopts} NO_USB= "
51 use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
52 use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= "
53
54 if use ssh; then
55 einfo "Note that ssh pam support is only usable with freebsd-cr$
56 einfo "ssh version."
57 sleep 5
58 else
59 mymakeopts="${mymakeopts} NO_OPENSSH= "
60 fi
61 }
62
63 src_unpack() {
64 unpack ${A} || die "Unable to unpack ${P}.tar.bz2"
65
66 # Massive patching starts here
67
68 # Removes com_err and ncurses
69 cd ${S}
70 epatch ${FILESDIR}/${PN}-${BASE_PV}-pkgs_removed.patch
71
72 # Fixed locations
73 cd ${S}/libkvm
74 epatch ${FILESDIR}/${MY_PATCH}-libkvm-makefile.patch
75 cd ${S}/libsbuf
76 epatch ${FILESDIR}/${MY_PATCH}-libsbuf-makefile.patch
77 cd ${S}/libypclnt
78 epatch ${FILESDIR}/${MY_PATCH}-libypclnt-makefile.patch
79 cd ${S}/libc
80 epatch ${FILESDIR}/${MY_PATCH}-libc-makefile.patch
81 cd ${S}/libc/sys
82 epatch ${FILESDIR}/${MY_PATCH}-libc_sys-makefileinc.patch
83 cd ${S}/libcam
84 epatch ${FILESDIR}/${MY_PATCH}-libcam-makefile.patch
85 cd ${S}/libngatm
86 epatch ${FILESDIR}/${MY_PATCH}-libngatm-makefile.patch
87 cd ${S}/libthr
88 epatch ${FILESDIR}/${MY_PATCH}-libthr-makefile.patch
89 cd ${S}/libncurses
90 epatch ${FILESDIR}/${MY_PATCH}-libncurses-makefile.patch
91
92 # Fixes in the source files
93 cd ${S}/msun/i387
94 epatch ${FILESDIR}/${MY_PATCH}-msun-fenvc.patch
95 }
96
97 src_compile() {
98 filter-flags "-fomit-frame-pointer"
99 replace-flags "-O?" -"O1"
100 fmake || die "emake failed"
101 }
102
103 src_install() {
104 fmake DESTDIR=${D} install || die "Install failed"
105 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20