Magellan Linux

Diff of /trunk/core/perl/perl-5.28.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 31550 by niro, Fri Nov 30 09:09:19 2018 UTC revision 31561 by niro, Fri Nov 30 10:52:59 2018 UTC
# Line 20  DEPEND="$(marchdepend) Line 20  DEPEND="$(marchdepend)
20  SRCFILE="${PNAME}-${PVER}.tar.gz"  SRCFILE="${PNAME}-${PVER}.tar.gz"
21  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22    
23    EXPORT_ABI_LDFLAGS=false
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    
# Line 39  src_prepare() Line 38  src_prepare()
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
# Line 65  src_compile() Line 58  src_compile()
58   # from gentoo:   # from gentoo:
59   # 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.
60   export libscheck="   export libscheck="
61   ( echo 'main(){}' > '${SRCDIR}'/conftest.c &&   ( echo 'main(){}' > '${SRCDIR}'-$(mabi)/conftest.c &&
62    ${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
63   ) || xxx=/dev/null"   ) || 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} \

Legend:
Removed from v.31550  
changed lines
  Added in v.31561