aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/digikam-kde4/Makefile
blob: 90054227a7bcef7e225a414bca640a42c6d9de13 (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
81
82
83
84
85
86
87
88
89
90
# New ports collection makefile for:    digikam
# Date created:             3 February 2003
# Whom:                 Arjan van Leeuwen <avleeuwen@piwebs.com>
#
# $FreeBSD$
#

PORTNAME=   digikam
DISTVERSION=    2.6.0
PORTEPOCH=  1
CATEGORIES= graphics kde
MASTER_SITES=   SF

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

LICENSE=    GPLv2

LIB_DEPENDS=    tiff:${PORTSDIR}/graphics/tiff \
        lcms:${PORTSDIR}/graphics/lcms \
        png15:${PORTSDIR}/graphics/png \
        jasper:${PORTSDIR}/graphics/jasper \
        lensfun:${PORTSDIR}/graphics/lensfun \
        lqr-1:${PORTSDIR}/graphics/liblqr-1 \
        kface:${PORTSDIR}/graphics/libkface \
        kgeomap:${PORTSDIR}/astro/libkgeomap

LATEST_LINK=    ${PORTNAME}-kde4

OPTIONS_DEFINE=     NLS GPHOTO2 PIMLIBS MYSQL
OPTIONS_DEFAULT=    GPHOTO2 PIMLIBS

GPHOTO2_DESC=       Enable gphoto2 camera support
PIMLIBS_DESC=       Enable address book support

MAKE_JOBS_SAFE= yes
USE_BZIP2=  yes
USE_KDE4=   automoc4 kdehier kdeprefix kdelibs libkdcraw libkexiv2 libkipi
USE_QT4=    sql-sqlite3_run \
        qmake_build moc_build rcc_build uic_build
USE_CMAKE=  yes
USE_LDCONFIG=   yes

MAN1=       digitaglinktree.1 \
        cleanup_digikamdb.1

WRKSRC=     ${WRKDIR}/${DISTNAME}/core

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.else
CMAKE_ARGS+=    -DWITH_NLS:BOOL=OFF
PLIST_SUB+= NLS="@comment "
.endif

.if ${PORT_OPTIONS:MGPHOTO2}
LIB_DEPENDS+=   gphoto2:${PORTSDIR}/graphics/libgphoto2
.else
CMAKE_ARGS+=    -DWITH_Gphoto2:BOOL=OFF
.endif

.if ${PORT_OPTIONS:MPIMLIBS}
USE_KDE4+=  pimlibs
.else
CMAKE_ARGS+=    -DWITH_KdepimLibs:BOOL=OFF
.endif

.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL=  server
USE_QT4+=   sql-mysql_run
CMAKE_ARGS+=    -DMYSQLD_PATH:PATH=${LOCALBASE}/libexec \
        -DMYSQL_TOOLS_PATH:PATH=${LOCALBASE}/bin
PLIST_SUB+= MYSQL=""
.else
CMAKE_ARGS+=    -DENABLE_INTERNALMYSQL:BOOL=OFF
PLIST_SUB+= MYSQL="@comment "
.endif

post-patch:
    ${LN} -s ../doc ${WRKSRC}/doc
    ${LN} -s ../po ${WRKSRC}/po
    ${RM} ${WRKSRC}/po/*/libkgeomap.po ${WRKSRC}/po/*/kipi*

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>