2004-05-08 02:29:54 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= coppermine
|
2015-08-15 21:36:52 +02:00
|
|
|
PORTVERSION= 1.5.38
|
2004-05-08 02:29:54 +02:00
|
|
|
CATEGORIES= www
|
2013-02-13 18:01:03 +01:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Coppermine/1.5.x/
|
2009-05-29 14:00:48 +02:00
|
|
|
DISTNAME= cpg${PORTVERSION}
|
2004-05-08 02:29:54 +02:00
|
|
|
|
2013-10-19 15:27:32 +02:00
|
|
|
MAINTAINER= danilo@FreeBSD.org
|
|
|
|
COMMENT= Web picture gallery script
|
2004-05-08 02:29:54 +02:00
|
|
|
|
2014-04-05 03:58:10 +02:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2012-08-30 13:40:20 +02:00
|
|
|
OPTIONS_DEFINE= DOCS IMAGEMAGICK
|
|
|
|
IMAGEMAGICK_DESC= Use ImageMagick instead of PHP GD extension
|
2011-10-18 07:07:51 +02:00
|
|
|
|
2013-10-19 15:27:32 +02:00
|
|
|
IMAGEMAGICK_RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
|
|
|
|
|
2013-02-13 18:01:03 +01:00
|
|
|
USE_PHP= mysql pcre ctype
|
2014-03-10 19:01:09 +01:00
|
|
|
USES= zip
|
2004-05-08 02:29:54 +02:00
|
|
|
|
2011-10-18 07:07:51 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
WRKSRC= ${WRKDIR}/cpg${PORTVERSION:R:R}${PORTVERSION:R:E}x
|
|
|
|
DOCFILES= CHANGELOG.txt COPYING.txt README.txt
|
|
|
|
|
|
|
|
SUB_FILES+= pkg-message
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-10-19 15:27:32 +02:00
|
|
|
.if empty(PORT_OPTIONS:MIMAGEMAGICK)
|
2004-08-23 22:08:41 +02:00
|
|
|
USE_PHP+= gd
|
|
|
|
.endif
|
|
|
|
|
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."
|
2012-08-30 13:40:20 +02:00
|
|
|
@${ECHO_MSG} "You may select 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:
|
2011-10-18 07:07:51 +02:00
|
|
|
@${CHMOD} -R o-w ${WRKSRC}/
|
2004-08-23 22:08:41 +02:00
|
|
|
|
2004-05-08 02:29:54 +02:00
|
|
|
do-install:
|
2013-10-19 15:27:32 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/
|
2014-04-05 03:58:10 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC}/ && ${RM} ${DOCFILES}
|
|
|
|
cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/
|
2004-05-08 02:29:54 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|