aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/npretty/Makefile
blob: a0f991017b9514f63557a1352d43434e425da75c (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
# Created by: Peter Ankerstal <peter@pean.org>
# $FreeBSD$

PORTNAME=   npretty
PORTVERSION=    0.9.3
PORTREVISION=   7
CATEGORIES= graphics
MASTER_SITES=   http://www.pulia.nu/code/projects/npretty/ \
        ${MASTER_SITE_LOCAL:S@%SUBDIR%@gabor@}

MAINTAINER= peter@pean.org
COMMENT=    A simple web-gallery generator written in perl

RUN_DEPENDS=    p5-Image-ExifTool>=0:${PORTSDIR}/graphics/p5-Image-ExifTool \
        convert:${PORTSDIR}/graphics/ImageMagick \
        p5-forks>=0:${PORTSDIR}/devel/p5-forks

LIB_DEPENDS+=   Magick.*:${PORTSDIR}/graphics/ImageMagick

NO_BUILD=   yes
USES=       perl5
USE_PERL5=  run

NO_STAGE=   yes
post-patch:
    @ ${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|" ${WRKSRC}/npretty.pl

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/npretty.pl ${PREFIX}/bin
    ${MKDIR} ${PREFIX}/etc/npretty
    ${INSTALL_DATA} ${WRKSRC}/novideo.gif ${PREFIX}/etc/npretty
    ${INSTALL_DATA} ${WRKSRC}/npretty_template.tpl ${PREFIX}/etc/npretty
    ${INSTALL_DATA} ${WRKSRC}/npretty.conf ${PREFIX}/etc/npretty
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for f in BUGS COPYING README
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>