/[gentoo-alt]/trunk/eclass/bsdmk.eclass
Gentoo

Contents of /trunk/eclass/bsdmk.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 767 - (show annotations) (download)
Mon Sep 26 23:39:35 2005 UTC (9 years, 1 month ago) by flameeyes
File size: 1322 byte(s)
Updated bsdmk eclass to use portability eclass and its get_bmake function.

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4 #
5 # Otavio R. Piske "AngusYoung" <angusyoung@gentoo.org>
6 # Diego Pettenò <flameeyes@gentoo.org>
7
8 inherit toolchain-funcs portability
9
10 EXPORT_FUNCTIONS src_compile src_install
11
12 # this should actually be BDEPEND, but this works.
13 DEPEND="!userland_BSD? ( sys-devel/pmake )"
14
15 #### mkmake <options>
16 # calls bsd-make command with the given options, passing ${mymakeopts} to
17 # enable ports to useflags bridge.
18 #
19 ###########################################################################
20 mkmake() {
21 [[ -z ${BMAKE} ]] && BMAKE="$(get_bmake)"
22
23 tc-export CC CXX LD
24
25 ${BMAKE} ${MAKEOPTS} ${EXTRA_EMAKE} ${mymakeopts} NO_WERROR= "$@"
26 }
27
28 mkinstall() {
29 [[ -z ${BMAKE} ]] && BMAKE="$(get_bmake)"
30
31 ${BMAKE} ${mymakeopts} NO_WERROR= DESTDIR="${D}" "$@" install
32 }
33
34 #### dummy_mk <dirnames>
35 # removes the specified subdirectories and creates a dummy makefile in them
36 # useful to remove the need for "minimal" patches
37 #
38 ############################################################################
39 dummy_mk() {
40 for dir in $@; do
41 echo ".include <bsd.lib.mk>" > ${dir}/Makefile
42 done
43 }
44
45 bsdmk_src_compile() {
46 cd ${S}
47 mkmake || die "make failed"
48 }
49
50 bsdmk_src_install() {
51 cd ${S}
52 mkinstall || die "install failed"
53 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20