Line # Revision Author
1 8 ahitrov@rambler.ru ##############################################################################
2 495 ahitrov #
3 8 ahitrov@rambler.ru ###############################################################################
4
5 PERL ?= ${shell which perl}
6 PERL_LEVEL ?= ${shell ${PERL} -e '$$]=~/(\d+)\.(\d{3})(\d+)/; printf "%d%03d%02d", $$1,$$2,$$3;'}
7
8 495 ahitrov PERL_VER = ${shell ${PERL} -e 'my ($$inc) = grep { $$_ =~ /site_perl/ } @INC; $$inc =~ /5\.(\d+)\.(\d)/ ? print "5.$$1.$$2" : $$inc =~ /5\.(\d+)/ ? print "5.$$1" : print '';'}
9 387 ahitrov
10 8 ahitrov@rambler.ru ifeq (${shell ${PERL} -e '${PERL_LEVEL}<500600 && print 1'},1)
11 PERL_ARCH ?= ${shell ${PERL} -e 'use Config; print $$Config::Config{archname};'}
12 else
13 PERL_ARCH ?= mach
14 endif
15
16 PERL_LIB ?= ${PREFIX}/lib/perl5/${PERL_VER} \
17 ${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} \
18 ${PREFIX}/lib/perl5/site_perl \
19 ${PREFIX}/lib/perl5/site_perl/${PERL_VER} \
20 506 ahitrov ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH} \
21 ${PREFIX}/lib/perl5/site_perl/${PERL_ARCH}/${PERL_VER}
22 8 ahitrov@rambler.ru PERL_LIBCOL ?= ${shell echo ${PERL_LIB} | perl -pe 's/\s+$$//; s/\s+/:/g'}