aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/epdfview/Makefile
blob: 9721fe9c47969bfea4db1ef54d50bc23747a0a45 (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
# Created by: chinsan <chinsan.tw@gmail.com>
# $FreeBSD$

PORTNAME=   epdfview
PORTVERSION=    0.1.8
PORTREVISION=   9
CATEGORIES= graphics print gnome
MASTER_SITES=   FRUGALWARE/xapps-extra/${PORTNAME} \
        ftp://ftp.slackware.com/.1/blfs/conglomeration/${PORTNAME}/ \
        http://anduin.linuxfromscratch.org/sources/BLFS/conglomeration/${PORTNAME}/ \
        http://pkgs.fedoraproject.org/repo/pkgs/${PORTNAME}/${DISTNAME}${EXTRACT_SUFX}/e50285b01612169b2594fea375f53ae4/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Lightweight PDF document viewer

LICENSE=    GPLv2

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

GNU_CONFIGURE=  yes
INSTALLS_ICONS= yes
USES=       desktop-file-utils iconv gmake pkgconfig tar:bzip2
USE_GNOME=  gtk20 intlhack
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

OPTIONS_DEFINE= CUPS NLS
OPTIONS_SUB=    yes

CUPS_CONFIGURE_WITH=    cups
CUPS_LIB_DEPENDS=   libcups.so:${PORTSDIR}/print/cups-client

NLS_USES=   gettext
NLS_CPPFLAGS=   -I${LOCALBASE}/include
NLS_LDFLAGS=    -L${LOCALBASE}/lib
NLS_CONFIGURE_ENABLE=   nls

post-patch:
    @${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
        ${WRKSRC}/src/gtk/StockIcons.h

post-install:
    ${REINPLACE_CMD} -e 's,Icon.*,Icon=${DATADIR}/pixmaps/icon_epdfview-48.png,' ${WRKSRC}/data/${PORTNAME}.desktop
    ${INSTALL_DATA} ${WRKSRC}/data/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/

.include <bsd.port.mk>