/[gentoo-x86]/eclass/wxwidgets.eclass
Gentoo

Diff of /eclass/wxwidgets.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.16 Revision 1.17
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.16 2006/04/21 20:36:17 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/wxwidgets.eclass,v 1.17 2006/04/28 12:42:00 flameeyes 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
46 unicode) set-wxconfig wxgtk2u;; 46 unicode) set-wxconfig wxgtk2u;;
47 *) echo "!!! $FUNCNAME: Error: wxGTK was not compiled with $1." 47 *) echo "!!! $FUNCNAME: Error: wxGTK was not compiled with $1."
48 echo "!!! Adjust your USE flags or re-emerge wxGTK with the version you want." 48 echo "!!! Adjust your USE flags or re-emerge wxGTK with the version you want."
49 exit 1;; 49 exit 1;;
50 esac 50 esac
51 fi
52
53 local ldver=$( $(tc-getLD) --version | head -n 1 | \
54 sed -e 's:.*version \([0-9.]\+\) .*:\1:')
55 local ldmaj=$(echo $ldver | cut -f1 -d.)
56 local ldmin=$(echo $ldver | cut -f2 -d.)
57 local ldmicro=$(echo $ldver | cut -f3 -d.)
58
59 if [[ $ldmaj -lt 1 || ( $ldmaj == 2 && $ldmin < 16 && $ldmicro < 92 ) ]]; then
60 filter-ldflags -Wl,--as-needed --as-needed
61 filter-flags -Wl,--as-needed --as-needed
62 fi 51 fi
63} 52}
64 53
65 54
66set-wxconfig() { 55set-wxconfig() {

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20