| 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/wxwidgets.eclass,v 1.9 2005/05/11 23:45:18 pythonhead Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/wxwidgets.eclass,v 1.12 2005/07/06 20:23:20 agriffis 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 |
| … | |
… | |
| 17 | # set-wxconfig |
17 | # set-wxconfig |
| 18 | # Arguments: (wxGTK 2.4) wxgtk, wxgtk2, or wxgtk2u |
18 | # Arguments: (wxGTK 2.4) wxgtk, wxgtk2, or wxgtk2u |
| 19 | # Arguments: (wxGTK 2.6) gtk-ansi gtk2-ansi unicode base-ansi base-unicode mac-ansi mac-unicode |
19 | # Arguments: (wxGTK 2.6) gtk-ansi gtk2-ansi unicode base-ansi base-unicode mac-ansi mac-unicode |
| 20 | # Note: Don't call this function directly from ebuilds |
20 | # Note: Don't call this function directly from ebuilds |
| 21 | |
21 | |
| 22 | ECLASS=wxwidgets |
22 | inherit multilib |
| 23 | INHERITED="$INHERITED $ECLASS" |
|
|
| 24 | |
23 | |
| 25 | need-wxwidgets() { |
24 | need-wxwidgets() { |
| 26 | debug-print-function $FUNCNAME $* |
25 | debug-print-function $FUNCNAME $* |
| 27 | #If you want to use wxGTK-2.6* export WX_GTK_VER in your ebuild: |
26 | #If you want to use wxGTK-2.6* export WX_GTK_VER in your ebuild: |
| 28 | if [ "${WX_GTK_VER}" = "2.6" ]; then |
27 | if [ "${WX_GTK_VER}" = "2.6" ]; then |
| … | |
… | |
| 56 | set-wxconfig() { |
55 | set-wxconfig() { |
| 57 | |
56 | |
| 58 | debug-print-function $FUNCNAME $* |
57 | debug-print-function $FUNCNAME $* |
| 59 | |
58 | |
| 60 | if [ "${WX_GTK_VER}" = "2.6" ] ; then |
59 | if [ "${WX_GTK_VER}" = "2.6" ] ; then |
| 61 | wxconfig_prefix="/usr/lib/wx/config" |
60 | wxconfig_prefix="/usr/$(get_libdir)/wx/config" |
| 62 | wxconfig_name="${1}-release-${WX_GTK_VER}" |
61 | wxconfig_name="${1}-release-${WX_GTK_VER}" |
| 63 | wxconfig="${wxconfig_prefix}/${wxconfig_name}" |
62 | wxconfig="${wxconfig_prefix}/${wxconfig_name}" |
| 64 | wxconfig_debug_name="${1}-debug-${WX_GTK_VER}" |
63 | wxconfig_debug_name="${1}-debug-${WX_GTK_VER}" |
| 65 | wxconfig_debug="${wxconfig_prefix}/${wxconfig_debug_name}" |
64 | wxconfig_debug="${wxconfig_prefix}/${wxconfig_debug_name}" |
| 66 | else |
65 | else |