blob: 3a549a26559aae9ba6ad952fd65cf10699c6f7e8 (
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
|
PORTNAME= fgallery
PORTVERSION= 1.8.2
PORTREVISION= 5
CATEGORIES= www graphics
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Modern, static javascript photo gallery generator
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING.txt
LIB_DEPENDS= liblcms2.so:graphics/lcms2
RUN_DEPENDS= exiftool:graphics/p5-Image-ExifTool \
exiftran:graphics/exiftran \
p5-Cpanel-JSON-XS>=0:converters/p5-Cpanel-JSON-XS
USES= magick:6,run
USE_GITHUB= yes
GH_ACCOUNT= wavexx
GH_TAGNAME= 45a8629
NO_ARCH= yes
NO_BUILD= yes
OPTIONS_DEFINE= 7ZIP FACEDETECT JPEGOPTIM PNGCRUSH
OPTIONS_DEFAULT= 7ZIP FACEDETECT JPEGOPTIM PNGCRUSH
7ZIP_DESC= Use 7-Zip for better zip compression
FACEDETECT_DESC= Face detection for improved thumbnail centering
JPEGOPTIM_DESC= Use jpegoptim for JPEG size optimization
PNGCRUSH_DESC= Use pngcrush for PNG size optimization
7ZIP_RUN_DEPENDS= 7zz:archivers/7-zip
7ZIP_RUN_DEPENDS_OFF= zip:archivers/zip
FACEDETECT_RUN_DEPENDS= facedetect:graphics/facedetect
JPEGOPTIM_RUN_DEPENDS= jpegoptim:graphics/jpegoptim
PNGCRUSH_RUN_DEPENDS= pngcrush:graphics/pngcrush
post-patch-7ZIP-on:
@${REINPLACE_CMD} -e 's|7za|7zz|g' ${WRKSRC}/${PORTNAME}
do-install:
.for d in album view
(cd ${WRKSRC} && \
${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${DATADIR}
${LN} -s ${DATADIR}/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
|