pkgsrc/www/p5-Apache-Gallery/Makefile
kim 13c3a39044 Upgrade p5-Apache-Gallery to 0.6.
Notable changes:
* Apache now internally handles image dispatch which enables use of
  all Apache caching possibilities
* Support the EXIF Orientation key for automatic rotate
* Directory comments
* New GallerySortBy option to allow sort by time, size etc.
* Set width/height on thumbnail images for better performance
* InlineDir is no longer configurable using PerlSetVar
* Write to the error log if unable to open files in the cache
* Added slideshow feature
* Moved the cache to one single directory outside the webscope
* Allow user to customize the "No info found" message

Some people have been reporting problems with Apache segfaulting
when displaying images from certain cameras (eg. the Canon G2).
The problem can be solved by using Image::Info 1.11 or earlier.
2003-09-06 03:52:07 +00:00

90 lines
2.6 KiB
Makefile

# $NetBSD: Makefile,v 1.8 2003/09/06 03:52:07 kim Exp $
#
DISTNAME= Apache-Gallery-0.6
PKGNAME= p5-${DISTNAME}
SVR4_PKGNAME= p5aga
CATEGORIES= www graphics
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Apache/}
MAINTAINER= kim@tac.nyc.ny.us
HOMEPAGE= http://apachegallery.dk/
COMMENT= Perl5/Apache module for handling image directories
DEPENDS+= p5-URI-[0-9]*:../../www/p5-URI
DEPENDS+= p5-Image-Info-[0-9]*:../../graphics/p5-Image-Info
DEPENDS+= p5-Image-Size-[0-9]*:../../graphics/p5-Image-Size
DEPENDS+= p5-CGI-FastTemplate-[0-9]*:../../www/p5-CGI-FastTemplate
DEPENDS+= p5-Inline-[0-9]*:../../devel/p5-Inline
DEPENDS+= p5-libapreq-[0-9]*:../../www/p5-libapreq
USE_BUILDLINK2= YES
USE_PKGINSTALL= YES
USE_X11= YES
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Apache/Gallery/.packlist
.include "../../mk/bsd.prefs.mk"
PKG_SYSCONFSUBDIR?= httpd
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
AG= ag
AG_DOCDIR= ${PREFIX}/share/doc/${AG}
AG_EGDIR= ${PREFIX}/share/examples/${AG}
AG_SHAREDIR= ${PREFIX}/share/${AG}
FILES_SUBST+= AG=${AG}
FILES_SUBST+= AG_SHAREDIR=${AG_SHAREDIR}
FILES_SUBST+= LDFLAGS=${LDFLAGS:Q}
MESSAGE_SUBST+= AG=${AG}
MESSAGE_SUBST+= AG_DOCDIR=${AG_DOCDIR}
MESSAGE_SUBST+= AG_SHAREDIR=${AG_SHAREDIR}
PLIST_SUBST+= AG=${AG}
PLIST_SUBST+= AG_DOCDIR=${AG_DOCDIR:S,${PREFIX}/,,}
PLIST_SUBST+= AG_EGDIR=${AG_EGDIR:S,${PREFIX}/,,}
PLIST_SUBST+= AG_SHAREDIR=${AG_SHAREDIR:S,${PREFIX}/,,}
CONF_FILES= ${AG_EGDIR}/${AG}.conf ${PKG_SYSCONFDIR}/${AG}.conf
post-patch:
cd ${WRKSRC}/lib/Apache && \
${CP} -p Gallery.pm Gallery.pm.orig && \
${SED} ${FILES_SUBST_SED} Gallery.pm.orig > Gallery.pm && \
${RM} -f Gallery.pm.orig
post-build:
@cd ${WRKSRC}/templates; \
for i in *.tpl; \
do \
${CP} -p $$i $$i.orig && \
${SED} -e 's,/icons/,/${AG}/,' \
-e 's,/gallery.css,/${AG}/gallery.css,' \
$$i.orig > $$i; \
${RM} -f $$i.orig; \
done
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/ag.conf > ${WRKDIR}/${AG}.conf
post-install:
${INSTALL_DATA_DIR} ${AG_SHAREDIR}
@set +x; \
for i in htdocs templates; \
do \
${INSTALL_DATA_DIR} ${AG_SHAREDIR}/$$i; \
cd ${WRKSRC}/$$i && ${PAX} -rw . ${AG_SHAREDIR}/$$i; \
done; \
${INSTALL_DATA_DIR} ${AG_DOCDIR}; \
for i in Changes INSTALL LICENSE README UPGRADE; \
do \
${INSTALL_DATA} ${WRKSRC}/$$i ${AG_DOCDIR}; \
done
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${AG_SHAREDIR}; \
${INSTALL_DATA_DIR} ${AG_EGDIR}
${INSTALL_DATA} ${WRKDIR}/${AG}.conf ${AG_EGDIR}
.include "../../graphics/imlib2/buildlink2.mk"
.include "../../www/ap-perl/buildlink2.mk"
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"