aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/mirage/Makefile
blob: 5ba395049aa3d1508d71d3a68d9281a925b167b8 (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
# New ports collection makefile for:    mirage
# Date created:     31 January 2007
# Whom:         Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   mirage
PORTVERSION=    0.9.5.2
PORTREVISION=   1
CATEGORIES= graphics
MASTER_SITES=   BERLIOS/mirageiv

MAINTAINER= pawel@FreeBSD.org
COMMENT=    Fast and simple image viewer

LICENSE=    GPLv3

USE_BZIP2=  yes
USE_GNOME=  gtk20 pygtk2
WANT_GNOME= yes
USE_GETTEXT=    yes
USE_PYTHON= yes
USE_PYDISTUTILS=    yes
PYDISTUTILS_PKGNAME=    Mirage

PORT_VERBS= ${PORTNAME} imgfuncs

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mpygnome2}!=""
USE_GNOME+= pygnome2
.endif

post-patch:
    @${REINPLACE_CMD} -e \
        's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
.for file in CHANGELOG README TODO TRANSLATORS
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>