51 lines
1.4 KiB
Makefile
51 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.9 2009/12/23 18:58:54 landry Exp $
|
|
|
|
|
|
COMMENT= mod_perl Apache gallery handler
|
|
|
|
MODULES= cpan
|
|
DISTNAME= Apache-Gallery-1.0RC3
|
|
PKGNAME= p5-${DISTNAME}p0
|
|
CATEGORIES= www
|
|
|
|
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 \
|
|
:p5-Image-Size->=3.1.1:graphics/p5-Image-Size \
|
|
::textproc/p5-Text-Template \
|
|
::graphics/p5-Image-Imlib2 \
|
|
:mod_perl-*:www/mod_perl \
|
|
:p5-libapreq->=1.0:www/p5-libapreq
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
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
|
|
|
|
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}
|
|
${SUBST_CMD} -c ${FILESDIR}/README.chroot ${DOCSDIR}/README.chroot
|
|
chown ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}/README.chroot
|
|
|
|
.include <bsd.port.mk>
|