blob: 00135a35328a2dd2fa2207bf0493b339f52ec032 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# $FreeBSD$
PORTNAME= coppermine
PORTVERSION= 1.5.40
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/Coppermine/1.5.x/
DISTNAME= cpg${PORTVERSION}
MAINTAINER= danilo@FreeBSD.org
COMMENT= Web picture gallery script
LICENSE= GPLv3
OPTIONS_DEFINE= DOCS IMAGEMAGICK
IMAGEMAGICK_DESC= Use ImageMagick instead of PHP GD extension
IMAGEMAGICK_RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
USE_PHP= mysql pcre ctype
USES= zip
NO_BUILD= yes
NO_ARCH= 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>
.if empty(PORT_OPTIONS:MIMAGEMAGICK)
USE_PHP+= gd
.endif
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "By default, coppermine depends on PHP with GD support."
@${ECHO_MSG} "You may select IMAGEMAGICK to depend on ImageMagick instead of GD."
@${ECHO_MSG} ""
post-extract:
@${CHMOD} -R o-w ${WRKSRC}/
pre-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${STAGEDIR}${DOCSDIR}
do-install:
cd ${WRKSRC}/ && ${RM} ${DOCFILES}
cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/
.include <bsd.port.mk>
|