/[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.5
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.5 2006/04/25 16:35:47 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="virtual/pmake"
16
17ESED="/usr/bin/sed"
15 18
16#### append-opt <options> 19#### append-opt <options>
17# append options to enable or disable features 20# append options to enable or disable features
18# 21#
19########################################################################### 22###########################################################################
55# set LDFLAGS in order to fix lazy binding warnings in binaries 58# set LDFLAGS in order to fix lazy binding warnings in binaries
56# 59#
57############################################################################ 60############################################################################
58fix_lazy_bindings() { 61fix_lazy_bindings() {
59 for dir in $@; do 62 for dir in $@; do
60 echo "LDFLAGS+= -Wl,-z,now" >> ${dir}/Makefile 63 echo "LDFLAGS+= $(bindnow-flags)" >> ${dir}/Makefile
61 done 64 done
62} 65}
63 66
64bsdmk_src_compile() { 67bsdmk_src_compile() {
65 cd ${S}
66 mkmake || die "make failed" 68 mkmake || die "make failed"
67} 69}
68 70
69bsdmk_src_install() { 71bsdmk_src_install() {
70 cd ${S}
71 mkinstall || die "install failed" 72 mkinstall || die "install failed"
72} 73}

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

  ViewVC Help
Powered by ViewVC 1.1.20