aboutsummaryrefslogtreecommitdiff
path: root/deskutils/griffith/Makefile
blob: ccf8f8b103bff3357956f5cd0ec4351b07e8e1ad (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
# New ports collection makefile for:	griffith
# Date created:		27 January 2007
# Whom:			Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	griffith
PORTVERSION=	0.11
CATEGORIES=	deskutils
MASTER_SITES=	http://launchpadlibrarian.net/37682783/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Lightweight film collection manager

RUN_DEPENDS=	py*-pysqlite>=2.0:${PORTSDIR}/databases/py-pysqlite23 \
		py*-sqlalchemy>=0.5:${PORTSDIR}/databases/py-sqlalchemy \
		py*-imaging>=0:${PORTSDIR}/graphics/py-imaging \
		py*-reportlab>=1.19:${PORTSDIR}/print/py-reportlab \
		py*-chardet>=0:${PORTSDIR}/textproc/py-chardet \
		${PYXML}

USE_GNOME=	pygtk2
WANT_GNOME=	yes
USE_PYTHON=	yes
USE_GETTEXT=	yes
USE_GMAKE=	yes
NO_BUILD=	yes

MANLANG=	"" pl pt
MAN1=		${PORTNAME}.1

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mpygnomeextras}!=""
USE_GNOME+=	pygnomeextras
.endif

post-patch:
.for file in Makefile
	@${REINPLACE_CMD} -e \
		'/^LANGUAGES=/s|find.*|cd i18n/\&\&ls -d *)|g ; \
		 /^PREFIX/s|^|#|g ; \
		 /^ETCDIR/s|=.*|= $$(PREFIX)/etc|g' ${WRKSRC}/${file}
.endfor
.for file in docs/en/Makefile docs/pl/Makefile docs/pt/Makefile
	@${REINPLACE_CMD} -e \
		'/^PREFIX/s|^|#|g ; \
		 /^MANDIR/s|=.*|=${MANPREFIX}/man|g' ${WRKSRC}/${file}
.endfor

.include <bsd.port.post.mk>