# $FreeBSD$
PORTNAME= mod_define
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= www
DISTVERSION= ${VERSION}.r${SVN_REV}
CATEGORIES= www
MAINTAINER= amdrea@cervesato.it
COMMENT= Apache 2.2.x module for use variables in config files
MAKE_JOBS_SAFE= yes
USE_APACHE= 22
LATEST_LINK= mod_define
AP_FAST_BUILD= yes
AP_GENPLIST= yes
VERSION= 2.2
.if defined(SVN_FETCH)
NO_CHECKSUM= yes
.endif
.include <bsd.port.pre.mk>
.if defined(BOOTSTRAP)
SVN_REV!= svn info https://mod-define.googlecode.com/svn/trunk/ | ${GREP} Revision | cut -d' ' -f2
.else
.include "Makefile.svn_rev"
.endif
.if defined(BOOTSTRAP) || defined(SVN_FETCH)
FETCH_DEPENDS+= svn:${PORTSDIR}/devel/subversion
do-fetch:
${MKDIR} ${WRKDIR}
svn export --force -r ${SVN_REV} \
https://mod-define.googlecode.com/svn/trunk/ ${WRKDIR}/mod_define${SVN_REV}
cd ${WRKDIR};rm -fr ${DISTNAME}
cd ${WRKDIR};mv ${PORTNAME}${SVN_REV} ${DISTNAME};\
tar cvzf ${DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME}
echo "SVN_REV= ${SVN_REV}" > ${MASTERDIR}/Makefile.svn_rev
.endif
.include <bsd.port.post.mk>