| 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/wxwidgets.eclass,v 1.2 2004/08/07 03:40:19 pythonhead Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/wxwidgets.eclass,v 1.3 2004/08/16 16:42:40 pythonhead Exp $ |
| 4 | # |
4 | # |
| 5 | # Author Rob Cakebread <pythonhead@gentoo.org> |
5 | # Author Rob Cakebread <pythonhead@gentoo.org> |
| 6 | |
6 | |
| 7 | # This eclass helps you find the correct wx-config script so ebuilds |
7 | # This eclass helps you find the correct wx-config script so ebuilds |
| 8 | # can use gtk, gtk2 or gtk2+unicode versions of wxGTK |
8 | # can use gtk, gtk2 or gtk2+unicode versions of wxGTK |
| … | |
… | |
| 40 | local wxconfig="/usr/bin/${1}-${wxgtk_ver}-config" |
40 | local wxconfig="/usr/bin/${1}-${wxgtk_ver}-config" |
| 41 | local wxconfig_debug="/usr/bin/${1}d-${wxgtk_ver}-config" |
41 | local wxconfig_debug="/usr/bin/${1}d-${wxgtk_ver}-config" |
| 42 | |
42 | |
| 43 | if [ -e ${wxconfig} ] ; then |
43 | if [ -e ${wxconfig} ] ; then |
| 44 | export WX_CONFIG=${wxconfig} |
44 | export WX_CONFIG=${wxconfig} |
|
|
45 | export WX_CONFIG_NAME="${1}-${wxgtk_ver}-config" |
|
|
46 | export WXBASE_CONFIG_NAME="${1}-${wxgtk_ver}-config" |
|
|
47 | echo ${WX_CONFIG_NAME} |
| 45 | echo " * Using ${wxconfig}" |
48 | echo " * Using ${wxconfig}" |
| 46 | elif [ -e ${wxconfig_debug} ] ; then |
49 | elif [ -e ${wxconfig_debug} ] ; then |
| 47 | export WX_CONFIG=${wxconfig_debug} |
50 | export WX_CONFIG=${wxconfig_debug} |
|
|
51 | export WX_CONFIG_NAME="${1}d-${wxgtk_ver}-config" |
|
|
52 | export WXBASE_CONFIG_NAME="${1}d-${wxgtk_ver}-config" |
| 48 | echo " * Using ${wxconfig_debug}" |
53 | echo " * Using ${wxconfig_debug}" |
| 49 | else |
54 | else |
| 50 | echo "!!! $FUNCNAME: Error: Can't find normal or debug version:" |
55 | echo "!!! $FUNCNAME: Error: Can't find normal or debug version:" |
| 51 | echo "!!! $FUNCNAME: ${wxconfig} not found" |
56 | echo "!!! $FUNCNAME: ${wxconfig} not found" |
| 52 | echo "!!! $FUNCNAME: ${wxconfig_debug} not found" |
57 | echo "!!! $FUNCNAME: ${wxconfig_debug} not found" |