| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 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/vdr-plugin.eclass,v 1.67 2009/02/24 00:26:25 zzam Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.68 2009/03/06 09:09:29 zzam Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: |
5 | # Author: |
| 6 | # Matthias Schwarzott <zzam@gentoo.org> |
6 | # Matthias Schwarzott <zzam@gentoo.org> |
| 7 | # Joerg Bornkessel <hd_brummy@gentoo.org> |
7 | # Joerg Bornkessel <hd_brummy@gentoo.org> |
| 8 | |
8 | |
| … | |
… | |
| 393 | |
393 | |
| 394 | case "$1" in |
394 | case "$1" in |
| 395 | all) |
395 | all) |
| 396 | vdr-plugin_src_util unpack add_local_patch patchmakefile i18n |
396 | vdr-plugin_src_util unpack add_local_patch patchmakefile i18n |
| 397 | ;; |
397 | ;; |
| 398 | all_but_unpack) |
398 | prepare|all_but_unpack) |
| 399 | vdr-plugin_src_util add_local_patch patchmakefile i18n |
399 | vdr-plugin_src_util add_local_patch patchmakefile i18n |
| 400 | ;; |
400 | ;; |
| 401 | unpack) |
401 | unpack) |
| 402 | base_src_unpack |
402 | base_src_unpack |
| 403 | ;; |
403 | ;; |
| … | |
… | |
| 442 | fi |
442 | fi |
| 443 | } |
443 | } |
| 444 | |
444 | |
| 445 | vdr-plugin_src_prepare() { |
445 | vdr-plugin_src_prepare() { |
| 446 | base_src_prepare |
446 | base_src_prepare |
| 447 | vdr-plugin_src_util all_but_unpack |
447 | vdr-plugin_src_util prepare |
| 448 | } |
448 | } |
| 449 | |
449 | |
| 450 | vdr-plugin_src_compile() { |
450 | vdr-plugin_src_compile() { |
| 451 | [ -z "$1" ] && vdr-plugin_src_compile prepare compile |
451 | [ -z "$1" ] && vdr-plugin_src_compile copy_source compile |
| 452 | |
452 | |
| 453 | while [ "$1" ]; do |
453 | while [ "$1" ]; do |
| 454 | |
454 | |
| 455 | case "$1" in |
455 | case "$1" in |
| 456 | prepare) |
456 | copy_source) |
| 457 | [[ -n "${VDRSOURCE_DIR}" ]] && vdr-plugin_copy_source_tree |
457 | [[ -n "${VDRSOURCE_DIR}" ]] && vdr-plugin_copy_source_tree |
| 458 | ;; |
458 | ;; |
| 459 | compile) |
459 | compile) |
| 460 | if [[ ! -f ${WORKDIR}/.vdr-plugin_makefile_patched ]]; then |
460 | if [[ ! -f ${WORKDIR}/.vdr-plugin_makefile_patched ]]; then |
| 461 | eerror "Wrong use of vdr-plugin.eclass." |
461 | eerror "Wrong use of vdr-plugin.eclass." |