26 |
SRC_URI=( |
SRC_URI=( |
27 |
#http://www.cpan.org/src/${PVER%%.*}.0/${SRCFILE} |
#http://www.cpan.org/src/${PVER%%.*}.0/${SRCFILE} |
28 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
|
mirror://${PNAME}/${PNAME}-5.10.1-picdl.patch |
|
|
mirror://${PNAME}/${PNAME}-5.8.7-sharedlinker.patch |
|
29 |
mirror://${PNAME}/${PNAME}-5.8.7-Configure_multilib-1.patch |
mirror://${PNAME}/${PNAME}-5.8.7-Configure_multilib-1.patch |
30 |
) |
) |
31 |
|
|
37 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
38 |
cd ${SRCDIR} |
cd ${SRCDIR} |
39 |
|
|
|
# enable dynamic loader |
|
|
mpatch ${PNAME}-5.10.1-picdl.patch || die |
|
|
|
|
|
# and proper ldflags for shrlibs |
|
|
mpatch ${PNAME}-5.8.7-sharedlinker.patch || die |
|
|
|
|
40 |
if [[ $(mlibdir) != lib ]] |
if [[ $(mlibdir) != lib ]] |
41 |
then |
then |
42 |
# allow configure to run successfully on multilib builds |
# allow configure to run successfully on multilib builds |
57 |
# from gentoo: |
# from gentoo: |
58 |
# set a hook to check for each detected library whether it actually works. |
# set a hook to check for each detected library whether it actually works. |
59 |
export libscheck=" |
export libscheck=" |
60 |
( echo 'main(){}' > '${SRCDIR}'/conftest.c && |
( echo 'main(){}' > '${SRCDIR}-$(mabi)'/conftest.c && |
61 |
${CC} -o '${SRCDIR}'/conftest '${SRCDIR}'/conftest.c -l\$thislib >/dev/null 2>/dev/null |
${CC} -o '${SRCDIR}-$(mabi)'/conftest '${SRCDIR}-$(mabi)'/conftest.c -l\$thislib >/dev/null 2>/dev/null |
62 |
) || xxx=/dev/null" |
) || xxx=/dev/null" |
63 |
|
|
64 |
|
# filter -march from cflags |
65 |
|
export CFLAGS=$(mfilterflag CFLAGS '-march=*') |
66 |
|
|
67 |
all-abis ./Configure \ |
all-abis ./Configure \ |
68 |
-des \ |
-des \ |
69 |
-Darchname=${CHOST} \ |
-Darchname=${CHOST} \ |