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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 487 - (show annotations) (download)
Sun Jun 19 23:36:19 2005 UTC (9 years, 2 months ago) by flameeyes
File size: 2624 byte(s)
Don't remove libstand, instead install its internal headers as they are used by some packages.

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
10 # Crypto is needed to have an internal OpenSSL header
11 SRC_URI="mirror://gentoo/${LIB}.tar.bz2
12 mirror://gentoo/${CONTRIB}.tar.bz2
13 mirror://gentoo/${CRYPTO}.tar.bz2
14 mirror://gentoo/${LIBEXEC}.tar.bz2"
15
16 RDEPEND="ssl? ( dev-libs/openssl )
17 kerberos? ( virtual/krb5 )"
18
19 DEPEND="${RDEPEND}
20 =sys-devel/freebsd-mk-defs-5.4*
21 =sys-kernel/freebsd-sources-5.4*
22 =sys-kernel/freebsd-headers-5.4*"
23
24 PROVIDE="virtual/libc"
25
26 S=${WORKDIR}/lib
27
28 IUSE="atm bluetooth ssl usb ipv6 kerberos nis gpib"
29
30 pkg_setup() {
31 if ! use ssl && use kerberos; then
32 eerror "If you want kerberos support you need to enable ssl support, too."
33 fi
34
35 use atm || mymakeopts="${mymakeopts} NO_ATM= "
36 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
37 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NOCRYPT= "
38 use usb || mymakeopts="${mymakeopts} NO_USB= "
39 use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
40 use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= "
41 use nis || mymakeopts="${mymakeopts} NO_NIS= "
42 use gpib || mymakeopts="${mymakeopts} NO_GPIB= "
43
44 mymakeopts="${mymakeopts} NO_OPENSSH= NO_WERROR= NO_BIND= NO_SENDMAIL= "
45 }
46
47 src_unpack() {
48 unpack ${A}
49
50 cd ${S}
51 epatch ${FILESDIR}/${PN}-fixmakefiles.patch
52 epatch ${FILESDIR}/${PN}-runet.patch
53 epatch ${FILESDIR}/${PN}-bsdxml.patch
54 epatch ${FILESDIR}/${PN}-fixmp.patch
55
56 # Here we disable and remove source which we don't need or want
57 # In order:
58 # - ncurses stuff
59 # - archiving libraries (have their own ebuild)
60 # - sendmail libraries (they are installed by sendmail)
61 # - SNMP library and dependency (have their own ebuilds)
62 #
63 # The rest are libraries we already have somewhere else because
64 # they are contribution.
65 # Note: libtelnet is an internal lib used by telnet and telnetd programs
66 # as it's not used in freebsd-lib package itself, it's pointless building
67 # it here.
68 dummy_mk \
69 libncurses libform libmenu libpanel \
70 libz libbz2 libarchive \
71 libsm libsmdb libsmutil libmfilter \
72 libbegemot libbsnmp \
73 libsmb libpam libpcap bind libwrap libmagic \
74 libcom_err libtelnet
75
76 # Fixes in the source files
77 cd ${S}/msun/i387
78 epatch ${FILESDIR}/${PN}-msun-fenvc.patch
79 }
80
81 src_compile() {
82 filter-flags "-fomit-frame-pointer"
83 replace-flags "-O?" -"O1"
84 fmake || die "emake failed"
85 }
86
87 src_install() {
88 fmake DESTDIR=${D} install || die "Install failed"
89
90 dodir /usr/include/libstand
91 insinto /usr/include/libstand
92 doins ${S}/libstand/*.h
93 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20