summaryrefslogtreecommitdiffstats
path: root/graphics/eog/Makefile
blob: 65ba0c4ba8e13b85ffb0163bcc150c8edad858de (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
59
60
61
62
63
64
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/trunk/graphics/eog/Makefile 17268 2013-04-01 05:13:11Z marcus $

PORTNAME=   eog
PORTVERSION=    2.32.1
PORTREVISION=   4
CATEGORIES= graphics gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org
COMMENT=    The Eye Of Gnome image viewer

BUILD_DEPENDS=  ${LOCALBASE}/share/icons/gnome/index.theme:${PORTSDIR}/misc/gnome-icon-theme
RUN_DEPENDS=    ${LOCALBASE}/share/icons/gnome/index.theme:${PORTSDIR}/misc/gnome-icon-theme

CONFLICTS=  eog-3.[0-9]*

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_GNOME=  gnomeprefix intlhack librsvg2 gconf2 gnomedesktop
WANT_GNOME= yes
INSTALLS_ICONS= yes
USES=       gettext pathfix desktop-file-utils shared-mime-info pkgconfig
INSTALLS_OMF=   yes
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

GCONF_SCHEMAS=  eog.schemas

_WITH_EXIF= no
_WITH_EXEMPI=   no

.if !defined(WITHOUT_EXIF) || (exists(${LOCALBASE}/lib/libexif.so.12) || \
    defined(WITH_EXIF))
LIB_DEPENDS+=   exif:${PORTSDIR}/graphics/libexif
PLIST_SUB+= EXIF=""
_WITH_EXIF= yes
.else
PLIST_SUB+= EXIF="@comment "
.endif

.if !defined(WITHOUT_EXEMPI) || (exists(${LOCALBASE}/lib/libexempi.so)) || \
        defined(WITH_EXEMPI)
LIB_DEPENDS+=   exempi:${PORTSDIR}/textproc/exempi
_WITH_EXEMPI=   yes
.endif

.if ${_WITH_EXIF}=="yes" || ${_WITH_EXEMPI}=="yes"
PLIST_SUB+= EXIFEXEMPI=""
.else
PLIST_SUB+= EXIFEXEMPI="@comment "
.endif

.if ${HAVE_GNOME:Mpygtk2}!=""
USE_GNOME+= pygtk2
CONFIGURE_ARGS+=--enable-python
.else
CONFIGURE_ARGS+=--disable-python
.endif

.include <bsd.port.mk>