/[gentoo-x86]/eclass/bsdmk.eclass
Gentoo

Diff of /eclass/bsdmk.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.4
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/bsdmk.eclass,v 1.1 2006/04/01 15:24:18 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/bsdmk.eclass,v 1.4 2006/04/22 21:14:50 flameeyes Exp $
4# 4#
5# Otavio R. Piske "AngusYoung" <angusyoung@gentoo.org> 5# Otavio R. Piske "AngusYoung" <angusyoung@gentoo.org>
6# Diego Pettenò <flameeyes@gentoo.org> 6# Diego Pettenò <flameeyes@gentoo.org>
7# Benigno B. Junior <bbj@gentoo.org> 7# Benigno B. Junior <bbj@gentoo.org>
8 8
9inherit toolchain-funcs portability 9inherit toolchain-funcs portability flag-o-matic
10 10
11EXPORT_FUNCTIONS src_compile src_install 11EXPORT_FUNCTIONS src_compile src_install
12 12
13RDEPEND=""
13# this should actually be BDEPEND, but this works. 14# this should actually be BDEPEND, but this works.
14DEPEND="!userland_BSD? ( sys-devel/pmake )" 15DEPEND="|| (
16 sys-devel/pmake
17 sys-freebsd/freebsd-ubin
18 sys-openbsd/openbsd-ubin
19 )"
20
21ESED="/usr/bin/sed"
15 22
16#### append-opt <options> 23#### append-opt <options>
17# append options to enable or disable features 24# append options to enable or disable features
18# 25#
19########################################################################### 26###########################################################################
55# set LDFLAGS in order to fix lazy binding warnings in binaries 62# set LDFLAGS in order to fix lazy binding warnings in binaries
56# 63#
57############################################################################ 64############################################################################
58fix_lazy_bindings() { 65fix_lazy_bindings() {
59 for dir in $@; do 66 for dir in $@; do
60 echo "LDFLAGS+= -Wl,-z,now" >> ${dir}/Makefile 67 echo "LDFLAGS+= $(bindnow-flags)" >> ${dir}/Makefile
61 done 68 done
62} 69}
63 70
64bsdmk_src_compile() { 71bsdmk_src_compile() {
65 cd ${S}
66 mkmake || die "make failed" 72 mkmake || die "make failed"
67} 73}
68 74
69bsdmk_src_install() { 75bsdmk_src_install() {
70 cd ${S}
71 mkinstall || die "install failed" 76 mkinstall || die "install failed"
72} 77}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20