| 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.4 2006/04/22 21:14:50 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 | |
| 11 | EXPORT_FUNCTIONS src_compile src_install |
11 | EXPORT_FUNCTIONS src_compile src_install |
| 12 | |
12 | |
| 13 | RDEPEND="" |
13 | RDEPEND="" |
| 14 | # this should actually be BDEPEND, but this works. |
14 | # this should actually be BDEPEND, but this works. |
| 15 | DEPEND="|| ( |
15 | DEPEND="virtual/pmake" |
| 16 | sys-devel/pmake |
|
|
| 17 | sys-freebsd/freebsd-ubin |
|
|
| 18 | sys-openbsd/openbsd-ubin |
|
|
| 19 | )" |
|
|
| 20 | |
16 | |
| 21 | ESED="/usr/bin/sed" |
17 | ESED="/usr/bin/sed" |
| 22 | |
18 | |
| 23 | #### append-opt <options> |
19 | #### append-opt <options> |
| 24 | # append options to enable or disable features |
20 | # append options to enable or disable features |
| … | |
… | |
| 36 | mkmake() { |
32 | mkmake() { |
| 37 | [[ -z ${BMAKE} ]] && BMAKE="$(get_bmake)" |
33 | [[ -z ${BMAKE} ]] && BMAKE="$(get_bmake)" |
| 38 | |
34 | |
| 39 | tc-export CC CXX LD RANLIB |
35 | tc-export CC CXX LD RANLIB |
| 40 | |
36 | |
| 41 | ${BMAKE} ${MAKEOPTS} ${EXTRA_EMAKE} ${mymakeopts} NO_WERROR= "$@" |
37 | ${BMAKE} ${MAKEOPTS} ${EXTRA_EMAKE} ${mymakeopts} NO_WERROR= STRIP= "$@" |
| 42 | } |
38 | } |
| 43 | |
39 | |
| 44 | mkinstall() { |
40 | mkinstall() { |
| 45 | [[ -z ${BMAKE} ]] && BMAKE="$(get_bmake)" |
41 | [[ -z ${BMAKE} ]] && BMAKE="$(get_bmake)" |
| 46 | |
42 | |
|
|
43 | # STRIP= will replace the default value of -s, leaving to portage the |
|
|
44 | # task of stripping executables. |
| 47 | ${BMAKE} ${mymakeopts} NO_WERROR= DESTDIR="${D}" "$@" install |
45 | ${BMAKE} ${mymakeopts} NO_WERROR= STRIP= MANSUBDIR= DESTDIR="${D}" "$@" install |
| 48 | } |
46 | } |
| 49 | |
47 | |
| 50 | #### dummy_mk <dirnames> |
48 | #### dummy_mk <dirnames> |
| 51 | # removes the specified subdirectories and creates a dummy makefile in them |
49 | # removes the specified subdirectories and creates a dummy makefile in them |
| 52 | # useful to remove the need for "minimal" patches |
50 | # useful to remove the need for "minimal" patches |