aboutsummaryrefslogtreecommitdiff
path: root/www/coppermine/Makefile
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2006-05-22 15:26:26 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2006-05-22 15:26:26 +0000
commit191664aaaf20b8e83d29444a0eb7dfa886985d88 (patch)
tree312ffcb2c8419faa04d8bef3f208249246bf5002 /www/coppermine/Makefile
parentb6cf40b4b2a5fc55ca070b9f7e33a2c3fa155813 (diff)
downloadports-191664aaaf20b8e83d29444a0eb7dfa886985d88.tar.gz
ports-191664aaaf20b8e83d29444a0eb7dfa886985d88.zip
Notes
Diffstat (limited to 'www/coppermine/Makefile')
-rw-r--r--www/coppermine/Makefile41
1 files changed, 20 insertions, 21 deletions
diff --git a/www/coppermine/Makefile b/www/coppermine/Makefile
index c70422e22834..2a7f2f505423 100644
--- a/www/coppermine/Makefile
+++ b/www/coppermine/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= coppermine
-PORTVERSION= 1.3.5
+PORTVERSION= 1.4.6
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -16,7 +16,6 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= A web picture gallery script
USE_PHP= mysql pcre
-WANT_PHP_MOD= yes
USE_ZIP= yes
.if defined (WITH_IMAGEMAGICK)
@@ -25,16 +24,20 @@ RUN_DEPENDS+= ${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick
USE_PHP+= gd
.endif
-PKGMESSAGE= ${WRKDIR}/pkg-message
+CPGDIR?= www/coppermine
+WWWOWN?= www
+WWWGRP?= www
+
NO_BUILD= yes
+PKGMESSAGE= ${WRKDIR}/pkg-message
WRKSRC= ${WRKDIR}/cpg${PORTVERSION:S/.//g}
DOCFILES= CHANGELOG
EXCEPTFILES= ${DOCFILES} COPYING docs/COPYING
CPIOARGS= --quiet -pdum -R
PLIST_SUB= CPGDIR=${CPGDIR}
-pre-fetch:
-.if !defined(CPGDIR)
+pre-everything::
+.if ${CPGDIR} == "www/coppermine"
@${ECHO_MSG} ""
@${ECHO_MSG} "Define CPGDIR to override default of 'www/coppermine'."
@${ECHO_MSG} ""
@@ -51,21 +54,17 @@ pre-patch:
-e 's|%%CPGDIR%%|${CPGDIR}|g' \
${.CURDIR}/pkg-message > ${PKGMESSAGE}
-CPGDIR?= www/coppermine
-WWWOWN?= www
-WWWGRP?= www
-
do-install:
@${MKDIR} -m 0755 ${PREFIX}/${CPGDIR}
- @cd ${WRKSRC} && \
+ cd ${WRKSRC} && \
${FIND} . -name \*.orig ${EXCEPTFILES:S/^/-o -name /} -o -print | \
${CPIO} ${CPIOARGS} ${WWWOWN}:${WWWGRP} ${PREFIX}/${CPGDIR}
+
+post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- @cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${DOCSDIR}
.endif
-
-post-install:
@${CAT} ${PKGMESSAGE}
########################################################################
@@ -76,17 +75,17 @@ post-install:
# build a pkg-plist file.
build-plist:
${FIND} ${DOCSDIR} -type f | \
- ${SED} -e 's|${DOCSDIR}|%%PORTDOCS%%%%DOCSDIR%%|' | \
- ${SORT} > pkg-plist
+ ${SED} -e 's|${DOCSDIR}|%%PORTDOCS%%%%DOCSDIR%%|' | \
+ ${SORT} > pkg-plist
${FIND} ${PREFIX}/${CPGDIR}/* -type f | \
- ${SED} -e 's|${PREFIX}/${CPGDIR}|%%CPGDIR%%|' | \
- ${SORT} >> pkg-plist
+ ${SED} -e 's|${PREFIX}/${CPGDIR}|%%CPGDIR%%|' | \
+ ${SORT} >> pkg-plist
${FIND} ${PREFIX}/${CPGDIR}/* -type d | \
- ${SED} -e 's|${PREFIX}/${CPGDIR}|@dirrm %%CPGDIR%%|' | \
- ${SORT} -r >> pkg-plist
+ ${SED} -e 's|${PREFIX}/${CPGDIR}|@dirrm %%CPGDIR%%|' | \
+ ${SORT} -r >> pkg-plist
${FIND} ${DOCSDIR} -type d | \
- ${SED} -e 's|${DOCSDIR}|%%PORTDOCS%%@dirrm %%DOCSDIR%%|' | \
- ${SORT} -r >> pkg-plist
+ ${SED} -e 's|${DOCSDIR}|%%PORTDOCS%%@dirrm %%DOCSDIR%%|' | \
+ ${SORT} -r >> pkg-plist
${ECHO} "@dirrmtry %%CPGDIR%%" >> pkg-plist
.include <bsd.port.mk>