summaryrefslogtreecommitdiffstats
path: root/graphics/eog3/Makefile
blob: e8bad525f1ab4d8ede0d9b82735665932e792f31 (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
65
66
67
68
69
70
71
72
73
74
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/trunk/graphics/eog3/Makefile 17268 2013-04-01 05:13:11Z marcus $

PORTNAME=   eog
PORTVERSION=    3.4.3
CATEGORIES= graphics gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome3

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

BUILD_DEPENDS=  ${LOCALBASE}/share/icons/gnome/index.theme:${PORTSDIR}/misc/gnome-icon-theme \
        g-ir-scanner:${PORTSDIR}/devel/gobject-introspection \
        ${LOCALBASE}/libdata/pkgconfig/gsettings-desktop-schemas.pc:${PORTSDIR}/devel/gsettings-desktop-schemas
LIB_DEPENDS=    peas-gtk-1.0:${PORTSDIR}/devel/libpeas \
        lcms.1:${PORTSDIR}/graphics/lcms
RUN_DEPENDS=    ${LOCALBASE}/share/icons/gnome/index.theme:${PORTSDIR}/misc/gnome-icon-theme \
        ${LOCALBASE}/libdata/pkgconfig/gsettings-desktop-schemas.pc:${PORTSDIR}/devel/gsettings-desktop-schemas

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

LATEST_LINK=    eog3
USE_XZ=     yes
USE_GMAKE=  yes
USE_GNOME=  gnomeprefix intlhack librsvg2 gtk30 gnomedesktop3 gnomedocutils
INSTALLS_ICONS= yes
USES=       gettext pathfix desktop-file-utils pkgconfig shared-mime-info
INSTALLS_OMF=   yes
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

GLIB_SCHEMAS=   org.gnome.eog.enums.xml \
        org.gnome.eog.gschema.xml

PLIST_SUB+= VERSION=3.0

OPTIONS_DEFINE= EXIF EXEMPI
OPTIONS_DEFAULT=EXIF EXEMPI
EXIF_DESC=  Digital camera file meta-data support
EXEMPI_DESC=    XMP support

.include <bsd.port.options.mk>

_WITH_EXIF= no
_WITH_EXEMPI=   no

.if ${PORT_OPTIONS:MEXIF}
CONFIGURE_ARGS+=--with-libexif
LIB_DEPENDS+=   exif:${PORTSDIR}/graphics/libexif
PLIST_SUB+= EXIF=""
_WITH_EXIF= yes
.else
CONFIGURE_ARGS+=--without-libexif
PLIST_SUB+= EXIF="@comment "
.endif

.if ${PORT_OPTIONS:MEXEMPI}
CONFIGURE_ARGS+=--with-xmp
LIB_DEPENDS+=   exempi:${PORTSDIR}/textproc/exempi
_WITH_EXEMPI=   yes
.else
CONFIGURE_ARGS+=--without-xmp
.endif

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

.include <bsd.port.mk>