Revision 495 (by ahitrov, 2015/05/21 14:15:14) Installation procedure workflow upgraded.
Perl up to version 5.16.0 is tested.

##############################################################################
#
###############################################################################

include ../../etc/perl.mk

ifeq (${shell ${PERL} -e 'print 1 if ${PERL_LEVEL}<501000'},1)
PORTVERSION =		1.29
else
PORTVERSION =		1.31
endif

MASTER_CPAN_SUBDIR =	ModPerl/GOZER
PERL_MAKEMAKER =	yes
PERL_CHECK =		no
CONFIGURE_POSTARGS =	APACHE_SRC=${APACHE_WRKSRC}/src			\
			USE_APACI=1					\
			DO_HTTPD=1					\
			PREP_HTTPD=1					\
			EVERYTHING=1

CONFIGURE_PRECMD =	${MAKE_RECURSIVE} pre-configure
pre-configure:
ifeq (${shell ${PERL} -e 'print 1 if ${PERL_LEVEL}>=501400'},1)
	cd ${WRKSRC} && patch -p0 < ${PORTDIR}/patch.perl5.14
endif
ifeq (${shell ${PERL} -e 'print 1 if ${PERL_LEVEL}>=501600'},1)
	cd ${WRKSRC} && patch -p0 < ${PORTDIR}/patch.perl5.16
endif


include ../../etc/ports.mk