From 6d495a834a10c1b0ce8fc312ae9a6c442bb2ea8c Mon Sep 17 00:00:00 2001 From: Johann Visagie Date: Fri, 7 Jun 2002 07:59:53 +0000 Subject: - Update to version 1.3 - Add additional dependencies - Install documentation to $DOCSDIR - Place installation path under build-time user control - Various style improvements Approved by: MAINTAINER --- www/gallery3/Makefile | 59 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 24 deletions(-) (limited to 'www/gallery3/Makefile') diff --git a/www/gallery3/Makefile b/www/gallery3/Makefile index fb081595fbe4..c105f9cdf4d3 100644 --- a/www/gallery3/Makefile +++ b/www/gallery3/Makefile @@ -6,42 +6,53 @@ # PORTNAME= gallery -PORTVERSION= 1.2.5 +PORTVERSION= 1.3 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= jamie@hermans.ca -RUN_DEPENDS= ${LOCALBASE}/share/netpbm:${PORTSDIR}/graphics/netpbm \ - ${LOCALBASE}/bin/jhead:${PORTSDIR}/graphics/jhead +RUN_DEPENDS= giftopnm:${PORTSDIR}/graphics/netpbm \ + jhead:${PORTSDIR}/graphics/jhead \ + unzip:${PORTSDIR}/archivers/unzip \ + ${LOCALBASE}/lib/php/System.php:${PORTSDIR}/www/mod_php4 WRKSRC= ${WRKDIR}/${PORTNAME} NO_BUILD= yes +PKGMESSAGE= ${WRKDIR}/pkg-message +DOCFILES= AUTHORS ChangeLog README UPGRADING +EXCEPTFILES= ${DOCFILES} LICENSE.txt +CPIO= cpio --quiet -pdum -R +PLIST_SUB= GALLERYDIR=${GALLERYDIR} + +GALLERYDIR?= www/data/gallery +WWWOWN?= www +WWWGRP?= www + +pre-fetch: +.if !defined(GALLERYDIR) + @${ECHO_MSG} "" + @${ECHO_MSG} "Define GALLERYDIR to override default of 'www/data/gallery'." + @${ECHO_MSG} "" +.endif + +post-configure: + @ ${SED} -e 's#%%PREFIX%%#${PREFIX}#g' \ + -e 's#%%GALLERYDIR%%#${GALLERYDIR}#g' pkg-message > ${PKGMESSAGE} do-install: - ${MKDIR} -v ${LOCALBASE}/www/data - cd ${WRKDIR}; \ - ${CP} -R gallery ${LOCALBASE}/www/data + @ ${MKDIR} -m 0755 ${PREFIX}/${GALLERYDIR} + @ cd ${WRKSRC} && find * -name \*.bat ${EXCEPTFILES:S/^/-o -name /} \ + -o -print | ${CPIO} ${WWWOWN}:${WWWGRP} ${PREFIX}/${GALLERYDIR} post-install: - @${ECHO} "" - @${ECHO} "*****************************************************************" - @${ECHO} "" - @${ECHO} " Please consider adding the following 3 lines to your httpd.conf" - @${ECHO} "" - @${ECHO} " " - @${ECHO} " AllowOverride Options FileInfo" - @${ECHO} " " - @${ECHO} "" - @${ECHO} " Then restart apache: 'apachectl restart'" - @${ECHO} "" - @${ECHO} "*****************************************************************" - @${ECHO} "" - @${ECHO} " Please visit 'http://{host.domain}/gallery/' in a" - @${ECHO} " web-browser and follow the configuration instructions." - @${ECHO} "" - @${ECHO} "*****************************************************************" - @${ECHO} "" +.if !defined(NOPORTDOCS) + @ ${MKDIR} ${DOCSDIR} + @ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${DOCSDIR} +.endif +.if !defined(BATCH) + @ ${CAT} ${PKGMESSAGE} +.endif .include -- cgit v1.2.3