aboutsummaryrefslogtreecommitdiff
path: root/graphics/digikam-kde4/Makefile
blob: 72a6cf58900bd9b2f85129cd93d1406244047a2b (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
75
76
77
78
79
80
# New ports collection makefile for:	digikam
# Date created: 			3 February 2003
# Whom:					Arjan van Leeuwen <avleeuwen@piwebs.com>
#
# $FreeBSD$
#

PORTNAME=	digikam
DISTVERSION=	1.9.0
PORTREVISION=	2
PORTEPOCH=	1
CATEGORIES=	graphics kde
MASTER_SITES=	SF

MAINTAINER=	kde@FreeBSD.org
COMMENT=	An advanced digital photo management application for KDE4

LIB_DEPENDS=	tiff.4:${PORTSDIR}/graphics/tiff \
		lcms.1:${PORTSDIR}/graphics/lcms \
		png.6:${PORTSDIR}/graphics/png \
		jasper.4:${PORTSDIR}/graphics/jasper \
		lqr-1.3:${PORTSDIR}/graphics/liblqr-1 \
		kipi.8:${PORTSDIR}/graphics/libkipi-kde4 \
		kexiv2.10:${PORTSDIR}/graphics/libkexiv2-kde4 \
		kdcraw.20:${PORTSDIR}/graphics/libkdcraw-kde4

LATEST_LINK=	${PORTNAME}-kde4

MAKE_JOBS_SAFE=	yes
USE_BZIP2=	yes
USE_KDE4=	automoc4 kdehier kdeprefix kdelibs
USE_QT_VER=	4
QT_COMPONENTS=	gui dbus network qt3support sql svg xml \
		qmake_build moc_build rcc_build uic_build
USE_GNOME=	pkgconfig
USE_CMAKE=	yes
USE_GETTEXT=	yes
USE_LDCONFIG=	yes

MAN1=		digitaglinktree.1 \
		cleanup_digikamdb.1

OPTIONS=	GPHOTO2 "Compile with gphoto2 support" on \
		LENSFUN "Compile lens auto-correction image editor plugin" off \
		MARBLE "Geolocation support (requires astro/marble, broken)" off \
		PIMLIBS "Address book support" on

.include <bsd.port.options.mk>

.if defined(WITHOUT_GPHOTO2)
CMAKE_ARGS+=	-DENABLE_GPHOTO2:BOOL=OFF
.else
LIB_DEPENDS+=	gphoto2.2:${PORTSDIR}/graphics/libgphoto2
.endif

.if defined(WITH_LENSFUN)
LIB_DEPENDS+=	lensfun.2:${PORTSDIR}/graphics/lensfun
.else
CMAKE_ARGS+=	-DWITH_LensFun:BOOL=OFF
.endif

#.if defined(WITH_MARBLE)
#LIB_DEPENDS+=	marblewidget.12:${PORTSDIR}/astro/marble
#PLIST_SUB+=		MARBLE=""
#.else
CMAKE_ARGS+=	-DWITH_MarbleWidget:BOOL=OFF
PLIST_SUB+=		MARBLE="@comment "
#.endif

.if defined(WITHOUT_PIMLIBS)
CMAKE_ARGS+=	-DWITH_KdepimLibs:BOOL=OFF
.else
USE_KDE4+=	pimlibs
.endif

post-patch:
	${GREP} -H -r "#include <q" ${WRKSRC} | ${CUT} -d: -f1 | uniq | \
		${XARGS} ${REINPLACE_CMD} -f ${FILESDIR}/qt3to4headers.txt

.include <bsd.port.mk>