Revision 383

Date:
2013/09/29 19:24:47
Author:
ahitrov
Revision Log:
More comprehensive patch for perl libdir

Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/core/ports/etc/perl.mk

     
    8 8
    9 9 ifeq (${shell ${PERL} -e '${PERL_LEVEL}<500600 && print 1'},1)
    10 10 PERL_VER ?= ${shell ${PERL} -e '$$]=~/(\d+)\.(\d{3})(\d+)/; printf "%d.%03d", $$1,$$2;'}
    11 elif (${shell ${PERL} -e '${PERL_LEVEL}<501205 && print 1'},1)
    12 PERL_VER ?= ${shell ${PERL} -e '$$]=~/(\d+)\.(\d{3})(\d+)/; printf "%d.%d.%d", $$1,$$2,$$3;'}
    11 13 else
    12 PERL_VER ?= ${shell ${PERL} -e '$$]=~/(\d+)\.(\d{3})(\d+)/; printf "%d.%d.%d", $$1,$$2,$$3;'}
    13 PERL_MAJOR_VER ?= ${shell ${PERL} -e '$$]=~/(\d+)\.(\d{3})(\d+)/; printf "%d.%d", $$1,$$2;'}
    14 PERL_VER ?= ${shell ${PERL} -e '$$]=~/(\d+)\.(\d{3})(\d+)/; printf "%d.%d", $$1,$$2;'}
    14 15 endif
    15 16
    16 17 ifeq (${shell ${PERL} -e '${PERL_LEVEL}<500600 && print 1'},1)
     
    22 23 PERL_LIB ?= ${PREFIX}/lib/perl5/${PERL_VER} \
    23 24 ${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} \
    24 25 ${PREFIX}/lib/perl5/site_perl \
    25 ${PREFIX}/lib/perl5/site_perl/${PERL_MAJOR_VER} \
    26 ${PREFIX}/lib/perl5/site_perl/${PERL_MAJOR_VER}/${PERL_ARCH} \
    27 26 ${PREFIX}/lib/perl5/site_perl/${PERL_VER} \
    28 27 ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}
    29 28 PERL_LIBCOL ?= ${shell echo ${PERL_LIB} | perl -pe 's/\s+$$//; s/\s+/:/g'}