| 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.64 2008/06/25 21:35:27 zzam Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.65 2008/07/03 11:18:13 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 | |
| … | |
… | |
| 71 | |
71 | |
| 72 | # works in most cases |
72 | # works in most cases |
| 73 | S="${WORKDIR}/${VDRPLUGIN}-${PV}" |
73 | S="${WORKDIR}/${VDRPLUGIN}-${PV}" |
| 74 | |
74 | |
| 75 | # depend on headers for DVB-driver |
75 | # depend on headers for DVB-driver |
| 76 | DEPEND=">=media-tv/gentoo-vdr-scripts-0.3.8 |
76 | COMMON_DEPEND=">=media-tv/gentoo-vdr-scripts-0.4.2" |
| 77 | || ( >=media-tv/gentoo-vdr-scripts-0.4.2 >=media-tv/vdrplugin-rebuild-0.2 ) |
77 | |
| 78 | >=app-admin/eselect-vdr-0.0.2 |
78 | DEPEND="${COMMON_DEPEND} |
| 79 | media-tv/linuxtv-dvb-headers" |
79 | media-tv/linuxtv-dvb-headers" |
| 80 | |
80 | RDEPEND="${COMMON_DEPEND} |
|
|
81 | >=app-admin/eselect-vdr-0.0.2" |
| 81 | |
82 | |
| 82 | # New method of storing plugindb |
83 | # New method of storing plugindb |
| 83 | # Called from src_install |
84 | # Called from src_install |
| 84 | # file maintained by normal portage-methods |
85 | # file maintained by normal portage-methods |
| 85 | create_plugindb_file() { |
86 | create_plugindb_file() { |
| … | |
… | |
| 441 | eerror "Please report this at bugs.gentoo.org." |
442 | eerror "Please report this at bugs.gentoo.org." |
| 442 | die "vdr-plugin_src_unpack not called!" |
443 | die "vdr-plugin_src_unpack not called!" |
| 443 | fi |
444 | fi |
| 444 | cd "${S}" |
445 | cd "${S}" |
| 445 | |
446 | |
|
|
447 | BUILD_TARGETS=${BUILD_TARGETS:-${VDRPLUGIN_MAKE_TARGET:-all}} |
|
|
448 | |
| 446 | emake ${BUILD_PARAMS} \ |
449 | emake ${BUILD_PARAMS} \ |
| 447 | ${VDRPLUGIN_MAKE_TARGET:-all} \ |
450 | ${BUILD_TARGETS} \ |
| 448 | LOCALEDIR="${TMP_LOCALE_DIR}" \ |
451 | LOCALEDIR="${TMP_LOCALE_DIR}" \ |
| 449 | LIBDIR="${S}" \ |
452 | LIBDIR="${S}" \ |
| 450 | TMPDIR="${T}" \ |
453 | TMPDIR="${T}" \ |
| 451 | || die "emake failed" |
454 | || die "emake failed" |
| 452 | ;; |
455 | ;; |