/[gentoo-alt]/trunk/sys-apps/freebsd-contrib/freebsd-contrib-5.4.ebuild
Gentoo

Contents of /trunk/sys-apps/freebsd-contrib/freebsd-contrib-5.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 441 - (show annotations) (download)
Wed Jun 8 16:59:52 2005 UTC (9 years, 3 months ago) by flameeyes
File size: 1282 byte(s)
Updated to use gentoo's mirrors and freebsd-utils eclass.

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 GCC="freebsd-gcc-3.4.2"
8
9 DESCRIPTION="Contributed sources for FreeBSD. Includes programs and libraries"
10 SRC_URI="mirror://gentoo/${GNU}.tar.bz2
11 mirror://gentoo/${GCC}.tar.bz2
12 mirror://gentoo/${P}.tar.bz2"
13
14 # Must be checked
15 LICENSE="BSD GPL-2 AS-IS"
16 KEYWORDS="~x86-fbsd"
17
18 DEPEND="virtual/libc
19 kerberos? ( virtual/krb5 )
20 ssl? ( dev-libs/openssl )"
21
22 PROVIDE=""
23
24 S=${WORKDIR}/gnu
25
26 IUSE="ssl kerberos"
27
28 pkg_setup() {
29 if use kerberos && ! use ssl; then
30 error "You can't install with kerberos support and no ssl support"
31 fi
32
33 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NOCRYPT= "
34 use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= "
35 }
36
37 src_unpack() {
38 unpack ${A}
39
40 cd ${WORKDIR}/contrib
41 epatch ${FILESDIR}/${PN}-crt_gcc4.patch
42
43 cd ${S}
44 epatch ${FILESDIR}/${PN}-justneeded.patch
45
46 # Installation related patches
47 cd ${S}/lib/csu
48 epatch ${FILESDIR}/${PN}-5.3-lib_csu-makefile.patch
49 }
50
51 src_compile() {
52 # -pg and -fomit-frame-pointer are incompatible
53 filter-flags "-fomit-frame-pointer"
54
55 fmake ojb objlink
56
57 fmake || die "emake failed"
58 }
59
60 src_install() {
61 fmake DESTDIR=${D} install || die "Install failed"
62 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20