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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 445 - (show annotations) (download)
Wed Jun 8 17:59:49 2005 UTC (9 years, 3 months ago) by flameeyes
File size: 1850 byte(s)
Moved also freebsd-lib to use dummy_mk instead of minimal patches.

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 DESCRIPTION="FreeBSD's base system libraries"
8 SLOT="0"
9 SRC_URI="mirror://gentoo/${LIB}.tar.bz2
10 mirror://gentoo/${USBIN}.tar.bz2
11 mirror://gentoo/${CONTRIB}.tar.bz2
12 mirror://gentoo/${CRYPTO}.tar.bz2
13 mirror://gentoo/${LIBEXEC}.tar.bz2"
14
15 DEPEND="=sys-devel/freebsd-mk-defs-5.4*
16 =sys-kernel/freebsd-sources-5.4*
17 =sys-kernel/freebsd-headers-5.4*
18 ssl? ( dev-libs/openssl )
19 kerberos? ( virtual/krb5 )"
20 PROVIDE="virtual/libc"
21
22 S=${WORKDIR}/lib
23
24 IUSE="atm bluetooth ssl usb ipv6 kerberos nis gpib"
25
26 pkg_setup() {
27 if ! use ssl && use kerberos; then
28 eerror "If you want kerberos support you need to enable ssl support, too."
29 fi
30
31 use atm || mymakeopts="${mymakeopts} NO_ATM= "
32 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
33 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NOCRYPT= "
34 use usb || mymakeopts="${mymakeopts} NO_USB= "
35 use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
36 use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= "
37 use nis || mymakeopts="${mymakeopts} NO_NIS= "
38 use gpib || mymakeopts="${mymakeopts} NO_GPIB= "
39
40 mymakeopts="${mymakeopts} NO_OPENSSH= NO_WERROR= NO_BIND= NO_SENDMAIL= "
41 }
42
43 src_unpack() {
44 unpack ${A}
45
46 cd ${S}
47 epatch ${FILESDIR}/${PN}-fixmakefiles.patch
48 epatch ${FILESDIR}/${PN}-runet.patch
49 epatch ${FILESDIR}/${PN}-bsdxml.patch
50 epatch ${FILESDIR}/${PN}-fixmp.patch
51
52 dummy_mk libcom_err libncurses libbz2 libpam libpcap \
53 libsm libsmutil libz bind
54
55 # Fixes in the source files
56 cd ${S}/msun/i387
57 epatch ${FILESDIR}/${PN}-msun-fenvc.patch
58 }
59
60 src_compile() {
61 filter-flags "-fomit-frame-pointer"
62 replace-flags "-O?" -"O1"
63 fmake || die "emake failed"
64 }
65
66 src_install() {
67 fmake DESTDIR=${D} install || die "Install failed"
68 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20