1 |
3 |
ahitrov@rambler.ru |
############################################################################## |
2 |
393 |
ahitrov |
# |
3 |
3 |
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 |
|
|
ifeq (${shell ${PERL} -e '${PERL_LEVEL}<500600 && print 1'},1) |
9 |
393 |
ahitrov |
PERL_VER = ${shell ${PERL} -e '$$]=~/(\d+)\.(\d{3})(\d+)/; printf "%d.%03d", $$1,$$2;'} |
10 |
|
|
endif |
11 |
|
|
|
12 |
|
|
ifeq (${shell ${PERL} -e '${PERL_LEVEL}<501205 && print 1'},1) |
13 |
|
|
PERL_VER ?= ${shell ${PERL} -e '$$]=~/(\d+)\.(\d{3})(\d+)/; printf "%d.%d.%d", $$1,$$2,$$3;'} |
14 |
3 |
ahitrov@rambler.ru |
else |
15 |
393 |
ahitrov |
PERL_VER ?= ${shell ${PERL} -e '$$]=~/(\d+)\.(\d{3})(\d+)/; printf "%d.%d", $$1,$$2;'} |
16 |
3 |
ahitrov@rambler.ru |
endif |
17 |
|
|
|
18 |
|
|
ifeq (${shell ${PERL} -e '${PERL_LEVEL}<500600 && print 1'},1) |
19 |
|
|
PERL_ARCH ?= ${shell ${PERL} -e 'use Config; print $$Config::Config{archname};'} |
20 |
|
|
else |
21 |
|
|
PERL_ARCH ?= mach |
22 |
|
|
endif |
23 |
|
|
|
24 |
|
|
PERL_LIB ?= ${PREFIX}/lib/perl5/${PERL_VER} \ |
25 |
|
|
${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} \ |
26 |
|
|
${PREFIX}/lib/perl5/site_perl \ |
27 |
|
|
${PREFIX}/lib/perl5/site_perl/${PERL_VER} \ |
28 |
|
|
${PREFIX}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH} |
29 |
|
|
PERL_LIBCOL ?= ${shell echo ${PERL_LIB} | perl -pe 's/\s+$$//; s/\s+/:/g'} |