summaryrefslogtreecommitdiffstats
path: root/graphics/epdfview/Makefile
blob: 24af1bc137addda7132717df620e8a0b0f55df99 (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
56
57
58
# New ports collection makefile for:    epdfview
# Date created:             2006/06/01
# Whom:                 chinsan <chinsan.tw@gmail.com>
#
# $FreeBSD: ports/graphics/epdfview/Makefile,v 1.27 2010/05/31 01:59:13 ade Exp $
#

PORTNAME=   epdfview
PORTVERSION=    0.1.7
PORTREVISION=   7
CATEGORIES= graphics print gnome
MASTER_SITES=   http://trac.emma-soft.com/epdfview/chrome/site/releases/ \
        http://mirror.slitaz.org/sources/packages/e/

MAINTAINER= sylvio@FreeBSD.org
COMMENT=    A lightweight PDF document viewer

BUILD_DEPENDS=  cppunit-config:${PORTSDIR}/devel/cppunit
LIB_DEPENDS=    poppler-glib.5:${PORTSDIR}/graphics/poppler-gtk

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
INSTALLS_ICONS= yes
USE_ICONV=  yes
USE_GMAKE=  yes
USE_GNOME=  gtk20 intlhack
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

OPTIONS=    CUPS    "Use cups printing system"      off \
        NLS "Native language support"       on

.include <bsd.port.pre.mk>

.if defined(WITH_CUPS)
CONFIGURE_ARGS+=--with-cups
LIB_DEPENDS+=   cups.2:${PORTSDIR}/print/cups-base
.else
CONFIGURE_ARGS+=--without-cups
.endif

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif

post-install:
    ${MKDIR} ${PREFIX}/share/applications
    ${INSTALL_DATA} ${WRKSRC}/data/${PORTNAME}.desktop ${PREFIX}/share/applications/
    @-update-desktop-database

.include <bsd.port.post.mk>