Revision 393
- Date:
- 2013/11/07 21:38:09
- Files:
Legend:
- Added
- Removed
- Modified
-
koi8/core/ports/etc/perl.mk
1 1 ############################################################################## 2 # $HeadURL: http://developers.rambler.ru/svn/contenido/koi8/core/ports/etc/ports.mk $ 3 # $Id: ports.mk 71 2006-06-03 14:32:52Z lonerr $ 2 # 4 3 ############################################################################### 5 4 6 5 PERL ?= ${shell which perl} 7 6 PERL_LEVEL ?= ${shell ${PERL} -e '$$]=~/(\d+)\.(\d{3})(\d+)/; printf "%d%03d%02d", $$1,$$2,$$3;'} 8 7 9 8 ifeq (${shell ${PERL} -e '${PERL_LEVEL}<500600 && print 1'},1) 10 PERL_VER ?= ${shell ${PERL} -e '$$]=~/(\d+)\.(\d{3})(\d+)/; printf "%d.%03d", $$1,$$2;'} 9 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;'} 11 14 else 12 PERL_VER ?= ${shell ${PERL} -e '$$]=~/(\d+)\.(\d{3})(\d+)/; printf "%d.%d.%d", $$1,$$2,$$3;'} 15 PERL_VER ?= ${shell ${PERL} -e '$$]=~/(\d+)\.(\d{3})(\d+)/; printf "%d.%d", $$1,$$2;'} 13 16 endif 14 17 15 18 ifeq (${shell ${PERL} -e '${PERL_LEVEL}<500600 && print 1'},1)