2007-01-16 12:52:06 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.4 2007/01/16 17:52:06 simon Exp $
|
2005-05-27 12:07:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
COMMENT= "mod_perl Apache gallery handler"
|
|
|
|
|
2007-01-16 12:52:06 -05:00
|
|
|
MODULES= cpan
|
2005-05-27 12:07:43 -04:00
|
|
|
DISTNAME= Apache-Gallery-0.9.1
|
2007-01-16 12:52:06 -05:00
|
|
|
PKGNAME= p5-${DISTNAME}p0
|
|
|
|
CATEGORIES= www
|
2005-05-27 12:07:43 -04:00
|
|
|
|
2005-10-11 13:02:25 -04:00
|
|
|
MAINTAINER= Michael Knudsen <mk@molioner.dk>
|
2005-05-27 12:07:43 -04:00
|
|
|
HOMEPAGE= http://www.apachegallery.dk/
|
|
|
|
|
|
|
|
# Artistic
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
RUN_DEPENDS= ::www/p5-URI \
|
|
|
|
::graphics/p5-Image-Info \
|
|
|
|
::graphics/p5-Image-Size \
|
|
|
|
::textproc/p5-Text-Template \
|
|
|
|
::graphics/p5-Image-Imlib2 \
|
2005-05-27 23:31:30 -04:00
|
|
|
:mod_perl-*:www/mod_perl \
|
|
|
|
:p5-libapreq->=1.0:www/p5-libapreq
|
2005-05-27 12:07:43 -04:00
|
|
|
|
2007-01-16 12:52:06 -05:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2005-05-27 12:07:43 -04:00
|
|
|
REGRESS_DEPENDS= ::devel/p5-Test-Pod \
|
|
|
|
::devel/p5-Test-MockObject
|
|
|
|
|
|
|
|
TEMPLATESDIR= ${PREFIX}/share/Apache-Gallery/templates
|
|
|
|
ICONSDIR= ${PREFIX}/share/Apache-Gallery/icons
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/Apache-Gallery
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@sed -e 's,%%LOCALBASE%%,${LOCALBASE},g;' \
|
|
|
|
${FILESDIR}/README.chroot > ${WRKSRC}/README.chroot
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${TEMPLATESDIR}
|
|
|
|
.for i in new default
|
|
|
|
${INSTALL_DATA_DIR} ${TEMPLATESDIR}/${i}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/templates/${i}/*.tpl ${TEMPLATESDIR}/${i}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/templates/${i}/gallery.css \
|
|
|
|
${TEMPLATESDIR}/${i}
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA_DIR} ${ICONSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/htdocs/*.png ${ICONSDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/{README,INSTALL} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.chroot ${DOCSDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|