| 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/gst-plugins10.eclass,v 1.2 2006/01/01 01:14:59 swegener Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins10.eclass,v 1.3 2010/08/12 10:48:59 pva Exp $ |
| 4 | |
4 | |
| 5 | # Author : foser <foser@gentoo.org> |
5 | # Author : foser <foser@gentoo.org> |
| 6 | |
6 | |
| 7 | # gst-plugins eclass |
7 | # gst-plugins eclass |
| 8 | # |
8 | # |
| … | |
… | |
| 45 | # internal functions |
45 | # internal functions |
| 46 | ### |
46 | ### |
| 47 | |
47 | |
| 48 | gst-plugins10_find_plugin_dir() { |
48 | gst-plugins10_find_plugin_dir() { |
| 49 | |
49 | |
| 50 | if [ ! -d ${S}/ext/${GST_PLUGINS_BUILD_DIR} ]; then |
50 | if [[ ! -d ${S}/ext/${GST_PLUGINS_BUILD_DIR} ]]; then |
| 51 | if [ ! -d ${S}/sys/${GST_PLUGINS_BUILD_DIR} ]; then |
51 | if [[ ! -d ${S}/sys/${GST_PLUGINS_BUILD_DIR} ]]; then |
| 52 | ewarn "No such plugin directory" |
52 | ewarn "No such plugin directory" |
| 53 | die |
53 | die |
| 54 | fi |
54 | fi |
| 55 | einfo "Building system plugin ..." |
55 | einfo "Building system plugin ..." |
| 56 | cd ${S}/sys/${GST_PLUGINS_BUILD_DIR} |
56 | cd "${S}"/sys/${GST_PLUGINS_BUILD_DIR} |
| 57 | else |
57 | else |
| 58 | einfo "Building external plugin ..." |
58 | einfo "Building external plugin ..." |
| 59 | cd ${S}/ext/${GST_PLUGINS_BUILD_DIR} |
59 | cd "${S}"/ext/${GST_PLUGINS_BUILD_DIR} |
| 60 | fi |
60 | fi |
| 61 | |
61 | |
| 62 | } |
62 | } |
| 63 | |
63 | |
| 64 | ### |
64 | ### |