Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 296509 | Differences between
and this patch

Collapse All | Expand All

(-)../overlay.orig/media-sound/squeezeboxserver/files/build-modules.sh (-6 / +9 lines)
Lines 20-28 Link Here
20
OS=`uname`
20
OS=`uname`
21
21
22
# get system arch, stripping out extra -gnu on Linux
22
# get system arch, stripping out extra -gnu on Linux
23
ARCH=`/usr/bin/perl -MConfig -le 'print $Config{archname}' | sed 's/gnu-//' | sed 's/^i[3456]86-/i386-/' `
23
ARCH=`${EPREFIX}/usr/bin/perl -MConfig -le 'print $Config{archname}' | sed 's/gnu-//' | sed 's/^i[3456]86-/i386-/' `
24
24
25
if [ $OS = "Linux" -o $OS = "Darwin" -o $OS = "FreeBSD" ]; then
25
if [ $OS = "Linux" -o $OS = "Darwin" -o $OS = "FreeBSD" -o $OS = "SunOS" ]; then
26
    echo "Building for $OS / $ARCH"
26
    echo "Building for $OS / $ARCH"
27
else
27
else
28
    echo "Unsupported platform: $OS, please submit a patch or provide us with access to a development system."
28
    echo "Unsupported platform: $OS, please submit a patch or provide us with access to a development system."
Lines 33-40 Link Here
33
BUILD=$PWD
33
BUILD=$PWD
34
34
35
# Path to Perl 5.8.8
35
# Path to Perl 5.8.8
36
if [ -x "/usr/bin/perl5.8.8" ]; then
36
if [ -x "${EPREFIX}/usr/bin/perl5.8.8" ]; then
37
    PERL_58=/usr/bin/perl5.8.8
37
    PERL_58="${EPREFIX}"/usr/bin/perl5.8.8
38
elif [ -x "/usr/local/bin/perl5.8.8" ]; then
38
elif [ -x "/usr/local/bin/perl5.8.8" ]; then
39
    PERL_58=/usr/local/bin/perl5.8.8
39
    PERL_58=/usr/local/bin/perl5.8.8
40
elif [ -x "/usr/local/bin/perl5.8.9" ]; then # FreeBSD 7.2
40
elif [ -x "/usr/local/bin/perl5.8.9" ]; then # FreeBSD 7.2
Lines 49-56 Link Here
49
BASE_58=$BUILD/5.8
49
BASE_58=$BUILD/5.8
50
50
51
# Path to Perl 5.10.0
51
# Path to Perl 5.10.0
52
if [ -x "/usr/bin/perl5.10.0" ]; then
52
if [ -x "${EPREFIX}/usr/bin/perl5.10.0" ]; then
53
    PERL_510=/usr/bin/perl5.10.0
53
    PERL_510="${EPREFIX}"/usr/bin/perl5.10.0
54
elif [ -x "/usr/local/bin/perl5.10.0" ]; then
54
elif [ -x "/usr/local/bin/perl5.10.0" ]; then
55
    PERL_510=/usr/local/bin/perl5.10.0
55
    PERL_510=/usr/local/bin/perl5.10.0
56
fi
56
fi
Lines 89-94 Link Here
89
    export MAKE=/usr/bin/make
89
    export MAKE=/usr/bin/make
90
fi
90
fi
91
91
92
# Use make from the prefix
93
export GNUMAKE="${EPREFIX}/usr/bin/make"
94
export MAKE="${EPREFIX}/usr/bin/make"
92
# Clean up
95
# Clean up
93
# XXX command-line flag to skip cleanup
96
# XXX command-line flag to skip cleanup
94
#rm -rf $BUILD
97
#rm -rf $BUILD

Return to bug 296509