aboutsummaryrefslogtreecommitdiff
path: root/www/p5-Apache-Gallery
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2004-12-01 07:57:55 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2004-12-01 07:57:55 +0000
commita987e0028acb8fa7455db9dbf081aeadba3d734d (patch)
tree34079e4e465b54f5efd5bbea8d57b0a5ae5e7074 /www/p5-Apache-Gallery
parent6524951c5ed0e7089c8eea11d8e8cd67f9e84911 (diff)
downloadports-a987e0028acb8fa7455db9dbf081aeadba3d734d.tar.gz
ports-a987e0028acb8fa7455db9dbf081aeadba3d734d.zip
Notes
Diffstat (limited to 'www/p5-Apache-Gallery')
-rw-r--r--www/p5-Apache-Gallery/Makefile24
-rw-r--r--www/p5-Apache-Gallery/distinfo4
-rw-r--r--www/p5-Apache-Gallery/pkg-plist6
3 files changed, 20 insertions, 14 deletions
diff --git a/www/p5-Apache-Gallery/Makefile b/www/p5-Apache-Gallery/Makefile
index 2b418cc94e60..2fe86f8132d8 100644
--- a/www/p5-Apache-Gallery/Makefile
+++ b/www/p5-Apache-Gallery/Makefile
@@ -6,26 +6,35 @@
#
PORTNAME= Apache-Gallery
-PORTVERSION= 0.7
+PORTVERSION= 0.9.1
CATEGORIES= www perl5
MASTER_SITES= http://apachegallery.dk/download/ \
${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Apache
PKGNAMEPREFIX= p5-
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= kvs@pil.dk
COMMENT= Apache::Gallery - mod_perl handler to create an image gallery
-BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Apache/Request.pm:${PORTSDIR}/www/p5-libapreq \
+BUILD_DEPENDS= ${APXS}:${PORTSDIR}/${APACHE_PORT} \
${SITE_PERL}/URI/Escape.pm:${PORTSDIR}/net/p5-URI \
+ ${SITE_PERL}/Text/Template.pm:${PORTSDIR}/textproc/p5-Text-Template \
${SITE_PERL}/Image/Info.pm:${PORTSDIR}/graphics/p5-Image-Info \
- ${SITE_PERL}/CGI/FastTemplate.pm:${PORTSDIR}/www/p5-CGI-FastTemplate \
${SITE_PERL}/Image/Size.pm:${PORTSDIR}/graphics/p5-Image-Size \
${SITE_PERL}/${PERL_ARCH}/Image/Imlib2.pm:${PORTSDIR}/graphics/p5-Image-Imlib2 \
${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm
RUN_DEPENDS= ${BUILD_DEPENDS}
-PKGMESSAGE= ${WRKDIR}/pkg-message
+.if defined(WITH_APACHE2)
+BUILD_DEPENDS+= ${LOCALBASE}/libexec/apache2/mod_perl.so:${PORTSDIR}/www/mod_perl2
+DEPENDS_ARGS+= WITHOUT_MODPERL=yes
+DEPENDS_ARGS+= WITH_MODPERL2=yes
+.else
+# XXX - probe for static mod_perl using `httpd -l | grep perl`
+BUILD_DEPENDS+= ${LOCALBASE}/libexec/apache/libperl.so:${PORTSDIR}/www/mod_perl \
+ ${SITE_PERL}/${PERL_ARCH}/Apache/Request.pm:${PORTSDIR}/www/p5-libapreq
+.endif
+
PERL_CONFIGURE= yes
MAN3= Apache::Gallery.3
@@ -42,9 +51,6 @@ ICONS= application-doc.png application-mp3.png application-ogg.png \
video-mov.png video-mpeg.png video-mpg.png video-wmv.png \
video-asf.png agfolder.png
-post-configure:
- @ ${SED} -e 's#%%PREFIX%%#${PREFIX}#g' pkg-message > ${PKGMESSAGE}
-
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/Apache-Gallery/templates
@@ -61,7 +67,7 @@ post-install:
${PREFIX}/share/Apache-Gallery/css/
.endif
.if !defined(BATCH)
- @ ${CAT} ${PKGMESSAGE}
+ @${SED} s!%%PREFIX%%!${PREFIX}!g ${PKGMESSAGE}
.endif
.include <bsd.port.pre.mk>
diff --git a/www/p5-Apache-Gallery/distinfo b/www/p5-Apache-Gallery/distinfo
index 6ce616204172..0c79e2da8ee6 100644
--- a/www/p5-Apache-Gallery/distinfo
+++ b/www/p5-Apache-Gallery/distinfo
@@ -1,2 +1,2 @@
-MD5 (Apache-Gallery-0.7.tar.gz) = ff79dedab956105456e6c70d495f6a72
-SIZE (Apache-Gallery-0.7.tar.gz) = 73532
+MD5 (Apache-Gallery-0.9.1.tar.gz) = 882e650e6fc3f059e84eca1564b5f32f
+SIZE (Apache-Gallery-0.7.tar.gz) = 82230
diff --git a/www/p5-Apache-Gallery/pkg-plist b/www/p5-Apache-Gallery/pkg-plist
index f97c426f10d6..fb798f8a5182 100644
--- a/www/p5-Apache-Gallery/pkg-plist
+++ b/www/p5-Apache-Gallery/pkg-plist
@@ -24,11 +24,11 @@ share/Apache-Gallery/templates/slideshowoff.tpl
share/Apache-Gallery/css/gallery.css
www/icons/agfolder.png
www/icons/application-doc.png
-www/icons/application-mp3.png
-www/icons/application-ogg.png
www/icons/application-pdf.png
www/icons/application-rtf.png
-www/icons/application-wav.png
+www/icons/sound-mp3.png
+www/icons/sound-ogg.png
+www/icons/sound-wav.png
www/icons/video-asf.png
www/icons/video-avi.png
www/icons/video-mov.png