/[gentoo-x86]/sys-freebsd/boot0/boot0-8.0.ebuild
Gentoo

Contents of /sys-freebsd/boot0/boot0-8.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Mar 19 11:51:04 2010 UTC (4 years, 1 month ago) by aballier
Branch: MAIN
bump to 8.0 from the bsd overlay
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/boot0-7.2.ebuild,v 1.1 2009/05/22 11:08:14 aballier Exp $
4
5 EAPI=2
6
7 inherit bsdmk freebsd flag-o-matic
8
9 DESCRIPTION="FreeBSD's bootloader"
10 SLOT="0"
11 KEYWORDS="~sparc-fbsd ~x86-fbsd"
12
13 IUSE="bzip2 ieee1394 tftp zfs"
14
15 SRC_URI="mirror://gentoo/${SYS}.tar.bz2"
16
17 RDEPEND=""
18 DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}*
19 =sys-freebsd/freebsd-lib-${RV}*"
20
21 S="${WORKDIR}/sys/boot"
22
23 boot0_use_enable() {
24 use ${1} && mymakeopts="${mymakeopts} LOADER_${2}_SUPPORT=\"yes\""
25 }
26
27 pkg_setup() {
28 boot0_use_enable ieee1394 FIREWIRE
29 boot0_use_enable zfs ZFS
30 boot0_use_enable tftp TFTP
31 boot0_use_enable bzip2 BZIP2
32 }
33
34 src_prepare() {
35 sed -e '/-fomit-frame-pointer/d' -e '/-mno-align-long-strings/d' \
36 -i "${S}"/i386/boot2/Makefile \
37 -i "${S}"/i386/gptboot/Makefile \
38 -i "${S}"/i386/gptzfsboot/Makefile \
39 -i "${S}"/i386/zfsboot/Makefile || die
40 }
41
42 src_compile() {
43 strip-flags
44 append-flags "-I/usr/include/libstand/"
45 append-flags "-fno-strict-aliasing"
46 NOFLAGSTRIP="yes" freebsd_src_compile
47 }
48
49 src_install() {
50 dodir /boot/defaults
51 mkinstall FILESDIR=/boot || die "mkinstall failed"
52 }

  ViewVC Help
Powered by ViewVC 1.1.20