blob: eed1205f0747774b7948930474382a28824ec794 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Created by: Goran Lowkrantz <glz@hidden-powers.com>
# $FreeBSD$
PORTNAME= piwigo
PORTVERSION= 2.8.2
CATEGORIES= www
MASTER_SITES= http://piwigo.org/download/dlcounter.php?code=${PORTVERSION}&/
MAINTAINER= tremere@cainites.net
COMMENT= PHP based Web Gallery
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/doc/COPYING
NO_BUILD= yes
NO_ARCH= yes
USE_PHP= calendar ctype dom exif filter gd gettext hash iconv json \
mbstring mcrypt mysql mysqli openssl pcre pdf pdo posix \
session simplexml sockets spl tokenizer xml xmlreader \
xmlwriter zlib
USES= cpe zip
WANT_PHP_WEB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
SUB_FILES= pkg-deinstall pkg-message
SUB_LIST+= CP="${CP}" \
MKDIR="${MKDIR}" \
CHOWN="${CHOWN}" \
TOUCH="${TOUCH}" \
WWWOWN="${WWWOWN}" \
WWWGRP="${WWWGRP}"
OPTIONS_DEFINE= IMAGICK X11 DOCS EXAMPLES
OPTIONS_DEFAULT=IMAGICK
IMAGICK_DESC= ${IMAGEMAGICK_DESC}
PORTDOCS= README_ca.txt README_en.txt README_fr.txt
PLIST_SUB+= WWWOWN="${WWWOWN}" \
WWWGRP="${WWWGRP}" \
CHOWN="${CHOWN}"
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MIMAGICK}
.if ${PORT_OPTIONS:MX11}
RUN_DEPENDS+= ${LOCALBASE}/bin/convert:graphics/ImageMagick
.else
RUN_DEPENDS+= ${LOCALBASE}/bin/convert:graphics/ImageMagick-nox11
.endif
.endif
post-extract:
@${FIND} -d ${WRKSRC} -type d -exec ${CHMOD} 755 {} \;
@${FIND} -d ${WRKSRC} -type f -exec ${CHMOD} ${SHAREMODE} {} \;
pre-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/
@cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
pre-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
@cd ${WRKSRC}/tools/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/
do-install:
@cd ${WRKSRC}/doc/ && ${RM} ${PORTDOCS}
@${RM} -r ${WRKSRC}/tools ${WRKSRC}/_data/dummy.txt
@${INSTALL} -d ${STAGEDIR}${WWWDIR}
@${TAR} -C ${WRKSRC} -cf - . | \
${TAR} --unlink -C ${STAGEDIR}${WWWDIR} -xf -
.include <bsd.port.post.mk>
|