| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 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/gnustep-base.eclass,v 1.2 2007/08/19 18:15:04 grobian Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnustep-base.eclass,v 1.3 2007/09/17 10:58:04 grobian Exp $ |
| 4 | |
4 | |
| 5 | inherit eutils flag-o-matic |
5 | inherit eutils flag-o-matic |
| 6 | |
6 | |
| 7 | # Inner gnustep eclass, should only be inherited directly by gnustep-base |
7 | # Inner gnustep eclass, should only be inherited directly by gnustep-base |
| 8 | # packages |
8 | # packages |
| … | |
… | |
| 96 | addpredict "/root/GNUstep" |
96 | addpredict "/root/GNUstep" |
| 97 | |
97 | |
| 98 | # Set rpath in ldflags when available |
98 | # Set rpath in ldflags when available |
| 99 | case ${CHOST} in |
99 | case ${CHOST} in |
| 100 | *-linux-gnu|*-solaris*) |
100 | *-linux-gnu|*-solaris*) |
|
|
101 | is-ldflagq -Wl,-rpath="${GNUSTEP_SYSTEM_LIBRARIES}" \ |
| 101 | append-ldflags \ |
102 | || append-ldflags \ |
| 102 | -Wl,-rpath="${GNUSTEP_SYSTEM_LIBRARIES}" \ |
103 | -Wl,-rpath="${GNUSTEP_SYSTEM_LIBRARIES}" |
| 103 | -L"${GNUSTEP_SYSTEM_LIBRARIES}" |
|
|
| 104 | ;; |
|
|
| 105 | *) |
|
|
| 106 | append-ldflags \ |
|
|
| 107 | -L"${GNUSTEP_SYSTEM_LIBRARIES}" |
|
|
| 108 | ;; |
104 | ;; |
| 109 | esac |
105 | esac |
|
|
106 | is-ldflagq -L"${GNUSTEP_SYSTEM_LIBRARIES}" \ |
|
|
107 | || append-ldflags \ |
|
|
108 | -L"${GNUSTEP_SYSTEM_LIBRARIES}" |
| 110 | |
109 | |
| 111 | # Set up env vars for make operations |
110 | # Set up env vars for make operations |
| 112 | GS_ENV=( AUXILIARY_LDFLAGS="${LDFLAGS}" \ |
111 | GS_ENV=( AUXILIARY_LDFLAGS="${LDFLAGS}" \ |
| 113 | DESTDIR="${D}" \ |
112 | DESTDIR="${D}" \ |
| 114 | HOME="${T}" \ |
113 | HOME="${T}" \ |