2004-05-08 02:29:54 +02:00
|
|
|
# Ports collection makefile for: coppermine
|
|
|
|
# Date created: 05 April 2004
|
|
|
|
# Whom: Brooks Davis <brooks@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= coppermine
|
2008-08-18 14:03:57 +02:00
|
|
|
PORTVERSION= 1.4.19
|
2004-05-08 02:29:54 +02:00
|
|
|
CATEGORIES= www
|
2007-09-17 13:51:11 +02:00
|
|
|
MASTER_SITES= SF
|
2008-08-18 14:03:57 +02:00
|
|
|
DISTNAME= cpg1.4.19
|
2004-05-08 02:29:54 +02:00
|
|
|
|
2006-11-08 10:28:33 +01:00
|
|
|
MAINTAINER= farrokhi@FreeBSD.org
|
2006-01-26 10:18:33 +01:00
|
|
|
COMMENT= A web picture gallery script
|
2004-05-08 02:29:54 +02:00
|
|
|
|
2005-05-06 22:32:56 +02:00
|
|
|
USE_PHP= mysql pcre
|
2004-05-08 02:29:54 +02:00
|
|
|
USE_ZIP= yes
|
|
|
|
|
2004-08-23 22:08:41 +02:00
|
|
|
.if defined (WITH_IMAGEMAGICK)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick
|
|
|
|
.else
|
|
|
|
USE_PHP+= gd
|
|
|
|
.endif
|
|
|
|
|
2004-05-08 02:29:54 +02:00
|
|
|
NO_BUILD= yes
|
2006-05-22 17:26:26 +02:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2006-01-26 10:18:33 +01:00
|
|
|
WRKSRC= ${WRKDIR}/cpg${PORTVERSION:S/.//g}
|
2008-01-07 23:34:53 +01:00
|
|
|
DOCFILES= CHANGELOG COPYING README.txt
|
2004-05-08 02:29:54 +02:00
|
|
|
|
2006-09-08 21:45:11 +02:00
|
|
|
SUB_FILES+= pkg-message
|
|
|
|
|
2006-05-22 17:26:26 +02:00
|
|
|
pre-everything::
|
2004-05-08 02:29:54 +02:00
|
|
|
@${ECHO_MSG} ""
|
2004-08-23 22:08:41 +02:00
|
|
|
@${ECHO_MSG} "By default, coppermine depends on PHP with GD support."
|
|
|
|
@${ECHO_MSG} "You may define WITH_IMAGEMAGICK to depend on ImageMagick instead of GD."
|
2004-05-08 02:29:54 +02:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
2004-08-23 22:08:41 +02:00
|
|
|
post-extract:
|
|
|
|
@${CHMOD} -R o-w ${WRKSRC}
|
|
|
|
|
2004-05-08 02:29:54 +02:00
|
|
|
do-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2008-01-07 23:34:53 +01:00
|
|
|
@cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${DOCSDIR}
|
2004-05-08 02:29:54 +02:00
|
|
|
.endif
|
2008-01-07 23:34:53 +01:00
|
|
|
@cd ${WRKSRC} && ${RM} ${DOCFILES}
|
|
|
|
-${MKDIR} ${WWWDIR}
|
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR})
|
|
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
2004-05-08 02:29:54 +02:00
|
|
|
|
2008-01-07 23:34:53 +01:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2004-05-08 02:29:54 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|