aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/qiv/Makefile
blob: fe406bc90695fccc3e1109bc23c2869ee7098d04 (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
# Created by: Bill Fumerola <billf@chc-chimes.com>
# $FreeBSD$

PORTNAME=   qiv
PORTVERSION=    2.2.4
PORTREVISION=   1
CATEGORIES= graphics
MASTER_SITES=   http://spiegl.de/qiv/download/ \
        http://www.predatorlabs.net/dl/
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Small, fast GDK/Imlib2 image viewer

LIB_DEPENDS=    Imlib2.5:${PORTSDIR}/graphics/imlib2

LICENSE=    GPLv2

USE_GMAKE=  yes
USE_GNOME=  gtk20

MAKE_JOBS_SAFE= yes

OPTIONS_DEFINE= XINERAMA

MAN1=       qiv.1
PLIST_FILES=    bin/qiv
USE_XORG+=  x11

.include <bsd.port.options.mk>

pre-configure:
.if ${PORT_OPTIONS:MXINERAMA}
USE_XORG+=  xinerama
.else
    @${REINPLACE_CMD} 's|GTD.*=|#|' ${WRKSRC}/Makefile
.endif

do-configure:
    @${REINPLACE_CMD} 's|/usr/local|${PREFIX}|; \
        s|gcc|${CC}|; \
        s|-O2|${CFLAGS}|; \
        s|libs-gdk`|libs-gdk` ${LDFLAGS}|;' \
        ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/qiv ${PREFIX}/bin/
    ${INSTALL_MAN} ${WRKSRC}/qiv.1 ${MAN1PREFIX}/man/man1/

.include <bsd.port.mk>