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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu May 17 14:36:08 2012 UTC (2 years, 1 month ago) by aballier
Branch: MAIN
Changes since 1.3: +1 -2 lines
drop now useless appends flags: we unpack the lib tarball.

(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/boot0-9.0.ebuild,v 1.3 2012/04/26 14:25:41 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="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
12
13 IUSE="bzip2 ieee1394 tftp zfs"
14
15 SRC_URI="mirror://gentoo/${SYS}.tar.bz2
16 mirror://gentoo/${LIB}.tar.bz2
17 mirror://gentoo/${CONTRIB}.tar.bz2"
18
19 RDEPEND=""
20 DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}*
21 =sys-freebsd/freebsd-lib-${RV}*"
22
23 S="${WORKDIR}/sys/boot"
24
25 boot0_use_enable() {
26 use ${1} && mymakeopts="${mymakeopts} LOADER_${2}_SUPPORT=\"yes\""
27 }
28
29 pkg_setup() {
30 boot0_use_enable ieee1394 FIREWIRE
31 boot0_use_enable zfs ZFS
32 boot0_use_enable tftp TFTP
33 boot0_use_enable bzip2 BZIP2
34 }
35
36 src_prepare() {
37 sed -e '/-fomit-frame-pointer/d' -e '/-mno-align-long-strings/d' \
38 -i "${S}"/i386/boot2/Makefile \
39 -i "${S}"/i386/gptboot/Makefile \
40 -i "${S}"/i386/gptzfsboot/Makefile \
41 -i "${S}"/i386/zfsboot/Makefile || die
42 }
43
44 src_compile() {
45 strip-flags
46 append-flags "-fno-strict-aliasing"
47 NOFLAGSTRIP="yes" freebsd_src_compile
48 }
49
50 src_install() {
51 dodir /boot/defaults
52 mkinstall FILESDIR=/boot || die "mkinstall failed"
53 }

  ViewVC Help
Powered by ViewVC 1.1.20