summaryrefslogtreecommitdiffstats
path: root/graphics/pqiv/Makefile
blob: befef91e752f92c543404ac8039d8cab00f196c5 (plain)
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
# Created by: Martin Tournoij <carpetsmoker@xs4all.nl>
# $FreeBSD$

PORTNAME=	pqiv
PORTVERSION=	2.6
PORTREVISION=	1
CATEGORIES=	graphics

MAINTAINER=	danilo@FreeBSD.org
COMMENT=	Pretty Quick Image Viewer

LICENSE=	GPLv2

BUILD_DEPENDS=	bash:shells/bash

LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2

USE_GITHUB=	yes
GH_ACCOUNT=	phillipberndt

OPTIONS_SINGLE=		GTK
OPTIONS_SINGLE_GTK=	GTK2 GTK3

OPTIONS_GROUP=		BACKENDS
OPTIONS_GROUP_BACKENDS=	LIBAV PIXBUF POPPLER SPECTRE WAND
LIBAV_DESC=		Video support
SPECTRE_DESC=		PS/EPS support
WAND_DESC=		ImageMagick image processing support

OPTIONS_DEFAULT=	GTK2 PIXBUF

USES=		gettext-runtime gmake pkgconfig
USE_XORG=	x11
USE_GNOME=	cairo gdkpixbuf2
HAS_CONFIGURE=	yes

LIBAV_CONFIGURE_WITH=	libav
LIBAV_LIB_DEPENDS=	libavcodec.so:multimedia/ffmpeg

PIXBUF_CONFIGURE_WITH=	gdkpixbuf

POPPLER_CONFIGURE_WITH=	poppler
POPPLER_LIB_DEPENDS=	libpoppler-glib.so:graphics/poppler-glib

SPECTRE_CONFIGURE_WITH=	spectre
SPECTRE_LIB_DEPENDS=	libspectre.so:print/libspectre

WAND_CONFIGURE_WITH=	wand
WAND_LIB_DEPENDS=	libMagickWand-6.so:graphics/ImageMagick

GTK2_CONFIGURE_ON=	--gtk-version=2
GTK2_USE=		GNOME=gtk20

GTK3_CONFIGURE_ON=	--gtk-version=3
GTK3_USE=		GNOME=gtk30

MAKEFILE=	GNUmakefile

PORTDOCS=	README.markdown
PLIST_FILES=	bin/pqiv man/man1/pqiv.1.gz

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/pqiv ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/pqiv.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.markdown ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud