diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2005-09-04 18:40:48 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2005-09-04 18:40:48 +0000 |
commit | 9d3759d77f201c751b2b83bb528100aa0814b326 (patch) | |
tree | d90af26509bd688ee32fbef463c876a842eb5077 /eclass/libtool.eclass | |
parent | Updates from java experimental. (diff) | |
download | historical-9d3759d77f201c751b2b83bb528100aa0814b326.tar.gz historical-9d3759d77f201c751b2b83bb528100aa0814b326.tar.bz2 historical-9d3759d77f201c751b2b83bb528100aa0814b326.zip |
Added elibtoolize patch for Gentoo/FreeBSD, to use linux-style link versioning.
Diffstat (limited to 'eclass/libtool.eclass')
-rw-r--r-- | eclass/libtool.eclass | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass index d95b82bcc898..13d21c9bebf6 100644 --- a/eclass/libtool.eclass +++ b/eclass/libtool.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.54 2005/09/04 15:15:37 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.55 2005/09/04 18:40:48 flameeyes Exp $ # # Author: Martin Schlemmer <azarah@gentoo.org> # @@ -129,6 +129,9 @@ elibtoolize() { my_dirlist="$(ELT_find_ltmain_sh)" + [[ ${CHOST} == *"-freebsd"* ]] && \ + elt_patches="${elt_patches} fbsd-conf" + for x in "$@" ; do case "${x}" in "--portage") @@ -229,6 +232,18 @@ elibtoolize() { ret=$? fi ;; + "fbsd-conf") + if [[ -e ${x}/configure ]] && \ + grep 'version_type=freebsd-' "${x}/configure" > /dev/null ; then + ELT_walk_patches "${x}/configure" "${y}" + ret=$? + # ltmain.sh and co might be in a subdirectory ... + elif [[ ! -e ${x}/configure && -e ${x}/../configure ]] && \ + grep 'version_type=freebsd-' "${x}/../configure" > /dev/null ; then + ELT_walk_patches "${x}/../configure" "${y}" + ret=$? + fi + ;; *) ELT_walk_patches "${x}/ltmain.sh" "${y}" ret=$? @@ -275,6 +290,11 @@ elibtoolize() { [[ ${CHOST} == *"-uclibc" ]] && \ ewarn " uClibc patch set '${y}' failed to apply!" ;; + "fbsd-"*) + [[ ${CHOST} == *"-freebsd"* ]] && \ + eerror " FreeBSD patch set '${y}' failed to apply!" + die "FreeBSD patch set '${y}' failed to apply!" + ;; esac fi done |