aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gthumb/Makefile
blob: a364955a89da8fbbcc9b39222a5deb423d3dc149 (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
# New ports collection makefile for:    gThumb2
# Date created:             17 Aug 2002
# Whom:                 Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   gthumb
PORTVERSION=    2.8.0
CATEGORIES= graphics
MASTER_SITES=   ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.8
DISTNAME=   ${PORTNAME:S/2$//}-${PORTVERSION}
DIST_SUBDIR=    gnome2

MAINTAINER= pav@FreeBSD.org
COMMENT=    An image viewer and browser for the GNOME 2 environment

LIB_DEPENDS=    exif.12:${PORTSDIR}/graphics/libexif

USE_BZIP2=  yes
USE_XLIB=   yes
USE_GMAKE=  yes
USE_GNOME=  gnomeprefix gnomehack intlhack libgnomeui libgnomeprintui
GNU_CONFIGURE=  yes
INSTALLS_ICONS= yes
INSTALLS_OMF=   yes
CONFIGURE_ARGS= --mandir=${PREFIX}/man
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

GCONF_SCHEMAS=  gthumb.schemas
MAN1=       gthumb.1

OPTIONS=    GPHOTO2 "Support loading photos from digital cameras" On \
        IPTCDATA "Support for IPTC metadata" Off

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_GPHOTO2)
LIB_DEPENDS+=   gphoto2.2:${PORTSDIR}/graphics/libgphoto2
CONFIGURE_ARGS+=--enable-gphoto2
.else
CONFIGURE_ARGS+=--disable-gphoto2
.endif

.if defined(WITH_IPTCDATA)
LIB_DEPENDS+=   iptcdata.3:${PORTSDIR}/graphics/libiptcdata
CONFIGURE_ARGS+=--enable-iptcdata
.else
CONFIGURE_ARGS+=--disable-iptcdata
.endif

.include <bsd.port.post.mk>