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 31547 by niro, Fri Nov 30 08:26:13 2018 UTC revision 31562 by niro, Fri Nov 30 12:12:02 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
44   mpatch ${PNAME}-5.8.7-Configure_multilib-1.patch || die   mpatch ${PNAME}-5.8.7-Configure_multilib-1.patch || die
45   fi   fi
46    
  # force use of system-zlib  
  all-abis 'sed -i "/^BUILD_ZLIB/s/True/False/" cpan/Compress-Raw-Zlib/config.in || die'  
  all-abis 'sed -i "/^INCLUDE/s,\./zlib-src,/usr/include," cpan/Compress-Raw-Zlib/config.in || die'  
  all-abis 'sed -i "/^LIB/s,\./zlib-src,/usr/lib," cpan/Compress-Raw-Zlib/config.in || die'  
   
47   # tell perl where to install the libs to   # tell perl where to install the libs to
48   all-abis 'echo "installstyle=\"$(mlibdir)/perl5\"" >>hints/linux.sh || die'   all-abis 'echo "installstyle=\"$(mlibdir)/perl5\"" >>hints/linux.sh || die'
49  }  }
50    
51  src_compile()  src_compile()
52  {  {
53     # from gentoo:
54     # set a hook to check for each detected library whether it actually works.
55     export libscheck="
56     ( echo 'main(){}' > '${SRCDIR}'-$(mabi)/conftest.c &&
57     $(mabi-cc) -o '${SRCDIR}'-$(mabi)/conftest '${SRCDIR}'-$(mabi)/conftest.c -l\$thislib >/dev/null 2>/dev/null
58     ) || xxx=/dev/null"
59    
60     # filter -march from cflags
61     export CFLAGS=$(mfilterflag CFLAGS '-march=*')
62    
63   all-abis ./Configure \   all-abis ./Configure \
64   -des \   -des \
65   -Darchname=${CHOST} \   -Darchname=${CHOST} \
66   -Doptimize='"${CFLAGS}"' \   -Doptimize='"${CFLAGS}"' \
67     -Dldflags='"${LDFLAGS}"' \
68   -Dcc='"${CC}"' \   -Dcc='"${CC}"' \
69   -Dcccdlflags='-fPIC' \   -Dcccdlflags='-fPIC' \
70   -Dccdlflags='-rdynamic' \   -Dccdlflags='-rdynamic' \
# Line 82  src_compile() Line 81  src_compile()
81   -Dinstallman3dir=/usr/share/man/man3 \   -Dinstallman3dir=/usr/share/man/man3 \
82   -Dman1ext='1' \   -Dman1ext='1' \
83   -Dman3ext='3pm' \   -Dman3ext='3pm' \
84   -Dlibpth='"/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir)"' \   -Dlibpth='"/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir) "' \
85     -Dglibpth='"/$(mlibdir) /usr/$(mlibdir) "' \
86     -Dlocincpth='/usr/include ' \
87   || die   || die
88    
89   mmake || die   mmake || die

Legend:
Removed from v.31547  
changed lines
  Added in v.31562