summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-10-16 10:35:26 +0000
committerMike Frysinger <vapier@gentoo.org>2005-10-16 10:35:26 +0000
commitdad2b25a0dcfa128608d2e344e4070ef89cb3207 (patch)
tree10abb795bd1643d156455a9f53171517c7728656 /sys-devel/crossdev
parenttweak cleaning a bit more and add support for dietlibc/freebsd CTARGETs (diff)
downloadgentoo-2-dad2b25a0dcfa128608d2e344e4070ef89cb3207.tar.gz
gentoo-2-dad2b25a0dcfa128608d2e344e4070ef89cb3207.tar.bz2
gentoo-2-dad2b25a0dcfa128608d2e344e4070ef89cb3207.zip
move CTARGET parsing logic to the same function and add more tweaks for freebsd from flameeyes
(Portage version: 2.0.53_rc5)
Diffstat (limited to 'sys-devel/crossdev')
-rwxr-xr-xsys-devel/crossdev/files/crossdev23
1 files changed, 16 insertions, 7 deletions
diff --git a/sys-devel/crossdev/files/crossdev b/sys-devel/crossdev/files/crossdev
index a7426be7c06d..6db314d1859f 100755
--- a/sys-devel/crossdev/files/crossdev
+++ b/sys-devel/crossdev/files/crossdev
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.38 2005/10/16 10:26:27 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.39 2005/10/16 10:35:26 vapier Exp $
cd /
@@ -159,6 +159,21 @@ parse_target() {
CTARGET=${CPRE}
[[ -n ${CPOST} ]] && CTARGET=${CTARGET}-${CPOST}
+
+ # Tweak packages based upon CTARGET
+ case ${CTARGET} in
+ # Normal Linux host, just diff libc
+ *-dietlibc) LPKG="dietlibc";;
+ *-klibc) LPKG="klibc";;
+ *-uclibc) LPKG="uclibc";;
+
+ # Now for the BSDs ...
+ *-freebsd*)
+ TARCH="${TARCH}-fbsd"
+ LCAT="sys-freebsd" LPKG="freebsd-lib"
+ KCAT="sys-freebsd" KPKG="freebsd-headers"
+ ;;
+ esac
}
setup_portage_vars() {
@@ -284,12 +299,6 @@ done
[[ -z ${CTARGET} ]] && usage 1
[[ ${STAGE} == "COW" ]] && STAGE=${STAGE_C_CPP}
-case ${CTARGET} in
- *-dietlibc) LPKG="dietlibc";;
- *-freebsd*) LPKG="freebsd-lib" KPKG="freebsd-headers";;
- *-klibc) LPKG="klibc";;
- *-uclibc) LPKG="uclibc";;
-esac
#####################
### sanity checks ###