summaryrefslogtreecommitdiffstats
path: root/graphics/gnome-color-manager/Makefile
blob: 32d9ece2a35f4b18d264a505db4de6d385a24592 (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
# Created by: FreeBSD GNOME Team <gnome@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/trunk/graphics/gnome-color-manager/Makefile 18575 2013-06-18 16:28:35Z kwm $

PORTNAME=   gnome-color-manager
PORTVERSION=    3.6.1
CATEGORIES= graphics gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome3

MAINTAINER= gnome@FreeBSD.org
COMMENT=    A session framework for the GNOME desktop to manage color profiles

BUILD_DEPENDS=  docbook2man:${PORTSDIR}/textproc/docbook-utils \
        itstool:${PORTSDIR}/textproc/itstool \
        ${LOCALBASE}/share/sgml/docbook/4.1/dtd/catalog:${PORTSDIR}/textproc/docbook-410
LIB_DEPENDS=    lcms2:${PORTSDIR}/graphics/lcms2 \
        colord:${PORTSDIR}/graphics/colord \
        colord-gtk:${PORTSDIR}/graphics/colord-gtk \
        canberra-gtk3:${PORTSDIR}/audio/libcanberra-gtk3 \
        exif:${PORTSDIR}/graphics/libexif

USE_XZ=     yes
USE_XORG=   xrandr
USE_GNOME=  gnomedesktop3 gnomeprefix gtk30 intlhack vte3
USES=       desktop-file-utils gettext gmake pathfix pkgconfig
USE_LDCONFIG=   yes
INSTALLS_ICONS= yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-clutter=no
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

MAN1=       gcm-calibrate.1 gcm-import.1 gcm-inspect.1 gcm-picker.1 \
        gcm-viewer.1

OPTIONS_DEFINE= RAW
OPTIONS_DEFAULT=RAW

RAW_DESC=   Enable RAW EXIF support

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MRAW}
LIB_DEPENDS+=   exiv2:${PORTSDIR}/graphics/exiv2
CONFIGURE_ARGS+=--enable-exiv=yes
PLIST_SUB+= RAW=""
.else
CONFIGURE_ARGS+=--enable-exiv=no
PLIST_SUB+= RAW="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|-Wclobbered||g ; s|-Wempty-body||g ; \
        s|-Wignored-qualifiers||g ; s|-Wtype-limits||g ; \
        s|-Wmissing-parameter-type||g' \
            ${WRKSRC}/configure

.include <bsd.port.mk>