20 |
SRCFILE="${PNAME}-${PVER}.tar.gz" |
SRCFILE="${PNAME}-${PVER}.tar.gz" |
21 |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
22 |
|
|
23 |
|
EMUL_LINUX_32=true |
24 |
sminclude multilib |
sminclude multilib |
25 |
msetfeature "!check" |
msetfeature "!check" |
26 |
|
|
27 |
SRC_URI=( |
SRC_URI=( |
28 |
#http://www.cpan.org/src/${PVER%%.*}.0/${SRCFILE} |
#http://www.cpan.org/src/${PVER%%.*}.0/${SRCFILE} |
29 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
|
mirror://${PNAME}/${PNAME}-5.10.1-picdl.patch |
|
|
mirror://${PNAME}/${PNAME}-5.8.7-sharedlinker.patch |
|
30 |
mirror://${PNAME}/${PNAME}-5.8.7-Configure_multilib-1.patch |
mirror://${PNAME}/${PNAME}-5.8.7-Configure_multilib-1.patch |
31 |
) |
) |
32 |
|
|
38 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
39 |
cd ${SRCDIR} |
cd ${SRCDIR} |
40 |
|
|
|
# enable dynamic loader |
|
|
mpatch ${PNAME}-5.10.1-picdl.patch || die |
|
|
|
|
|
# and proper ldflags for shrlibs |
|
|
mpatch ${PNAME}-5.8.7-sharedlinker.patch || die |
|
|
|
|
41 |
if [[ $(mlibdir) != lib ]] |
if [[ $(mlibdir) != lib ]] |
42 |
then |
then |
43 |
# allow configure to run successfully on multilib builds |
# allow configure to run successfully on multilib builds |
55 |
|
|
56 |
src_compile() |
src_compile() |
57 |
{ |
{ |
58 |
|
# from gentoo: |
59 |
|
# set a hook to check for each detected library whether it actually works. |
60 |
|
export libscheck=" |
61 |
|
( echo 'main(){}' > '${SRCDIR}'-$(mabi)/conftest.c && |
62 |
|
'${CC}' -o '${SRCDIR}'-$(mabi)/conftest '${SRCDIR}'-$(mabi)/conftest.c -l\$thislib >/dev/null 2>/dev/null |
63 |
|
) || xxx=/dev/null" |
64 |
|
|
65 |
|
# filter -march from cflags |
66 |
|
export CFLAGS=$(mfilterflag CFLAGS '-march=*') |
67 |
|
|
68 |
all-abis ./Configure \ |
all-abis ./Configure \ |
69 |
-des \ |
-des \ |
70 |
-Darchname=${CHOST} \ |
-Darchname='"${CHOST}"' \ |
71 |
-Doptimize='"${CFLAGS}"' \ |
-Doptimize='"${CFLAGS}"' \ |
72 |
|
-Dldflags='"${LDFLAGS}"' \ |
73 |
-Dcc='"${CC}"' \ |
-Dcc='"${CC}"' \ |
74 |
-Dcccdlflags='-fPIC' \ |
-Dcccdlflags='-fPIC' \ |
75 |
-Dccdlflags='-rdynamic' \ |
-Dccdlflags='-rdynamic' \ |
86 |
-Dinstallman3dir=/usr/share/man/man3 \ |
-Dinstallman3dir=/usr/share/man/man3 \ |
87 |
-Dman1ext='1' \ |
-Dman1ext='1' \ |
88 |
-Dman3ext='3pm' \ |
-Dman3ext='3pm' \ |
89 |
-Dlibpth='"/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir)"' \ |
-Dlibpth='"/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir) "' \ |
90 |
|
-Dglibpth='"/$(mlibdir) /usr/$(mlibdir) "' \ |
91 |
|
-Dlocincpth='/usr/include ' \ |
92 |
|| die |
|| die |
93 |
|
|
94 |
mmake || die |
mmake || die |