/[gentoo-alt]/trunk/sys-apps/freebsd-ubin/freebsd-ubin-5.3.ebuild
Gentoo

Contents of /trunk/sys-apps/freebsd-ubin/freebsd-ubin-5.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


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

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 MY_PATCH=${PN}-5.3_rc1
8
9 DESCRIPTION="FreeBSD's base system source for /usr/bin"
10 SRC_URI="mirror://gentoo/${UBIN}.tar.bz2
11 mirror://gentoo/${CONTRIB}.tar.bz2
12 mirror://gentoo/${LIB}.tar.bz2
13 mirror://gentoo/${BIN}.tar.bz2"
14
15 DEPEND="=sys-devel/freebsd-mk-defs-5.3*
16 =sys-libs/freebsd-lib-5.3*
17 =sys-kernel/freebsd-headers-5.3*
18 =sys-kernel/freebsd-sources-5.3*"
19 S=${WORKDIR}/usr.bin
20
21 src_unpack() {
22 unpack ${P}.tar.bz2
23 unpack ${CONTRIB}.tar.bz2
24 unpack ${LIB}.tar.bz2
25 unpack ${BIN}.tar.bz2
26
27 # Fixed location to /usr/src
28 cd ${S}/kdump
29 epatch ${FILESDIR}/${MY_PATCH}-kdump-makefile.patch
30
31 # I belive this patch may give problems with sandbox in the future
32 cd ${S}/truss
33 epatch ${FILESDIR}/${MY_PATCH}-truss-makefile.patch
34
35 # Installation related patch (to create necessary dirs)
36 cd ${S}/calendar
37 epatch ${FILESDIR}/${MY_PATCH}-calendar-makefile.patch
38
39 # These patch does not create NLSLINKS
40 cd ${S}/ee
41 epatch ${FILESDIR}/${MY_PATCH}-ee-makefile.patch
42 cd ${S}/vi
43 epatch ${FILESDIR}/${MY_PATCH}-vi-makefile.patch
44 }
45
46 src_compile() {
47 # ATM -fomit-frame pointer is incompatible with
48 # a flag (-pg) used to build libbind.
49 filter-flags "-fomit-frame-pointer"
50
51 einfo "Building library dependencies"
52 cd ${WORKDIR}/lib/bind
53 make || die "emake libbind failed"
54 cd ${WORKDIR}/lib/libtelnet
55 emake || die "emake libtelnet failed"
56 cd ${WORKDIR}/lib/libsm
57 emake || die "emake libsm failed"
58 cd ${WORKDIR}/lib/libsmutil
59 emake || die "emake libsmutil failed"
60 cd ${WORKDIR}/lib/libsmdb
61 emake || die "emake libsmdb failed"
62
63 cd ${S}
64 einfo "Building package"
65 emake || die "emake failed"
66 }
67
68 src_install() {
69 cd ${S}
70 emake DESTDIR=${D} install || die "Install failed"
71 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20