aboutsummaryrefslogtreecommitdiff
path: root/graphics/electrix/Makefile
blob: bb6d87cd20908ee74f94087fbd9138a1f6324d0a (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
# New ports collection makefile for: eLectrix
# Date created:		2011-03-10
# Whom:		Olivier Duchateau <duchateau.olivier@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	electrix
PORTVERSION=	0.2.0
CATEGORIES=	graphics print
MASTER_SITES=	SF/${PORTNAME:L}/${PORTVERSION}

MAINTAINER=	duchateau.olivier@gmail.com
COMMENT=	An application to view PDF files

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \
		poppler-glib.8:${PORTSDIR}/graphics/poppler-glib

USE_BZIP2=	yes
USE_GNOME=	gtk20 desktopfileutils intltool intlhack pkgconfig
USE_PYTHON=	yes
USE_GETTEXT=	yes

CFLAGS=	"-I${LOCALBASE}/include"
LFLAGS=	"-L${LOCALBASE}/lib"

CONFIGURE_ARGS=	--prefix=${PREFIX}

OPTIONS=	PS "Enable PostScript support" off

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_PS)
LIB_DEPENDS+=	spectre.1:${PORTSDIR}/print/libspectre
.else
CONFIGURE_ARGS+=	--disable-ps
.endif

do-configure:
	@cd ${WRKSRC} && ${SETENV} ${PYTHON_CMD} waf configure \
		${CONFIGURE_ARGS} && ${TRUE}

do-build:
	@cd ${WRKSRC} && ${SETENV} ${PYTHON_CMD} waf build && ${TRUE}

do-install:
	@cd ${WRKSRC} && ${SETENV} ${PYTHON_CMD} waf install && ${TRUE}

post-install:
	@-update-desktop-database

.include <bsd.port.post.mk>