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

Diff of /eclass/bsdmk.eclass

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

Revision 1.2 Revision 1.7
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.2 2006/04/01 15:49:11 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/bsdmk.eclass,v 1.7 2006/12/01 02:58:32 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
10 10
11EXPORT_FUNCTIONS src_compile src_install 11EXPORT_FUNCTIONS src_compile src_install
12 12
13RDEPEND="" 13RDEPEND=""
14# this should actually be BDEPEND, but this works. 14# this should actually be BDEPEND, but this works.
15DEPEND="|| ( 15DEPEND="virtual/pmake"
16 sys-devel/pmake 16
17 sys-freebsd/freebsd-ubin 17ESED="/usr/bin/sed"
18 sys-openbsd/openbsd-ubin
19 )"
20 18
21#### append-opt <options> 19#### append-opt <options>
22# append options to enable or disable features 20# append options to enable or disable features
23# 21#
24########################################################################### 22###########################################################################
34mkmake() { 32mkmake() {
35 [[ -z ${BMAKE} ]] && BMAKE="$(get_bmake)" 33 [[ -z ${BMAKE} ]] && BMAKE="$(get_bmake)"
36 34
37 tc-export CC CXX LD RANLIB 35 tc-export CC CXX LD RANLIB
38 36
39 ${BMAKE} ${MAKEOPTS} ${EXTRA_EMAKE} ${mymakeopts} NO_WERROR= "$@" 37 ${BMAKE} ${MAKEOPTS} ${EXTRA_EMAKE} ${mymakeopts} NO_WERROR= STRIP= "$@"
40} 38}
41 39
42mkinstall() { 40mkinstall() {
43 [[ -z ${BMAKE} ]] && BMAKE="$(get_bmake)" 41 [[ -z ${BMAKE} ]] && BMAKE="$(get_bmake)"
44 42
43 # STRIP= will replace the default value of -s, leaving to portage the
44 # task of stripping executables.
45 ${BMAKE} ${mymakeopts} NO_WERROR= DESTDIR="${D}" "$@" install 45 ${BMAKE} ${mymakeopts} NO_WERROR= STRIP= MANSUBDIR= DESTDIR="${D}" "$@" install
46} 46}
47 47
48#### dummy_mk <dirnames> 48#### dummy_mk <dirnames>
49# removes the specified subdirectories and creates a dummy makefile in them 49# removes the specified subdirectories and creates a dummy makefile in them
50# useful to remove the need for "minimal" patches 50# useful to remove the need for "minimal" patches
65 echo "LDFLAGS+= $(bindnow-flags)" >> ${dir}/Makefile 65 echo "LDFLAGS+= $(bindnow-flags)" >> ${dir}/Makefile
66 done 66 done
67} 67}
68 68
69bsdmk_src_compile() { 69bsdmk_src_compile() {
70 cd ${S}
71 mkmake || die "make failed" 70 mkmake || die "make failed"
72} 71}
73 72
74bsdmk_src_install() { 73bsdmk_src_install() {
75 cd ${S}
76 mkinstall || die "install failed" 74 mkinstall || die "install failed"
77} 75}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20