summaryrefslogtreecommitdiff
path: root/graphics/cthumb/Makefile
blob: 4db2dc9e5a61420ed3cb976dc14a5d6b16d18d18 (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
73
74
# New ports collection makefile for:    cthumb
# Date created:         30 July 2001
# Whom:                 dom@happygiraffe.net
#
# $FreeBSD$
#

PORTNAME=	cthumb
PORTVERSION=	4.1
CATEGORIES=	graphics www
MASTER_SITES=	http://puchol.com/cpg/software/cthumb/

MAINTAINER=	dom@happygiraffe.net
COMMENT=	cthumb - a themable web picture album generator

RUN_DEPENDS=	${LOCALBASE}/bin/pnmscale:${PORTSDIR}/graphics/netpbm \
		${LOCALBASE}/bin/djpeg:${PORTSDIR}/graphics/jpeg \
		${SITE_PERL_ARCH}/HTML/Entities.pm:${PORTSDIR}/www/p5-HTML-Parser \
		${SITE_PERL}/URI/Escape.pm:${PORTSDIR}/net/p5-URI

SITE_PERL=	${SITE_PERL}
SITE_PERL_ARCH=	${SITE_PERL}/${PERL_ARCH}

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-themedir=${PREFIX}/share/${PORTNAME}

MAN1=		cthumb.1

THEMES=		blue-steel.theme \
		classic-clips.theme \
		classic.theme \
		crosshair.theme \
		film.theme \
		flaps.theme \
		float-medium.theme \
		float-more.theme \
		float-thick.theme \
		float.theme \
		ithumb.theme \
		neat-round.theme \
		neat-square.theme \
		oak.theme \
		postcard.theme \
		shiny-tube.theme \
		simpleframe.theme \
		slides-big.theme \
		slides-clean.theme \
		slides-huge.theme \
		slides-small.theme \
		spotlight.theme \
		tv-large.theme \
		tv.theme

post-configure:
	@${PERL} -pi \
		-e 's|cp -r|cp -Rf|g;' \
		${WRKSRC}/cthumb

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/cthumb ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/cthumb.1 ${PREFIX}/man/man1
	${MKDIR} ${DATADIR}
.for theme in ${THEMES}
	${MKDIR} ${DATADIR}/${theme}
	${INSTALL_DATA} ${WRKSRC}/themes/${theme}/* ${DATADIR}/${theme}
.endfor
.if !defined(NOPRTDOCS)
	${MKDIR} ${DOCSDIR}
.for doc in ChangeLog INSTALL README TO-DO VERSION cthumbrc.sample
	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>