blob: 5c86a50038e7669fccac91db6c39c2dff37fd1c5 (
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
|
# Created by: miwi
# $FreeBSD$
PORTNAME= akonadi
PORTVERSION= 1.13.0
PORTREVISION= 10
CATEGORIES= databases kde
MASTER_SITES= KDE/stable/${PORTNAME}/src
PKGNAMESUFFIX= -kde4
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= Storage server for KDE-Pim
LICENSE= LGPL21
DEPRECATED= KDE4 is EOL upstream
EXPIRATION_DATE= 2018-12-31
LIB_DEPENDS= libboost_thread.so:devel/boost-libs
# Let process generate meaningful backtrace on core dump.
BUILD_DEPENDS= xsltproc:textproc/libxslt
USES= cmake kde:4 qt:4 shared-mime-info \
compiler:c++11-lang pathfix tar:bzip2
USE_KDE= automoc4 soprano
USE_QT= corelib dbus gui network qtestlib_build sql xml \
moc_build qmake_build rcc_build uic_build
CMAKE_ARGS+= -DAKONADI_BUILD_TESTS:BOOL=FALSE \
-DINSTALL_QSQLITE_IN_QT_PREFIX:BOOL=TRUE \
-DCMAKE_REQUIRED_INCLUDES:STRING="${LOCALBASE}/include"
USE_LDCONFIG= yes
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE
OPTIONS_SUB= yes # SQLITE
MYSQL_DESC= Install MySQL Qt plugin and server
MYSQL_USE= QT=sql-mysql_run
MYSQL_USES= mysql:server qt:4
PGSQL_DESC= Install PostgreSQL Qt plugin
# Do not add a dependency on PostgreSQL server as someone preferring
# it over MySQL might like to use some advanced configuration, like a
# remote server.
#PGSQL_USE= PGSQL=server
PGSQL_USES= qt:4
PGSQL_USE= QT=sql-pgsql_run
SQLITE_DESC= Enable SQLite backend
SQLITE_USES= sqlite:3
SQLITE_CMAKE_OFF= -DAKONADI_BUILD_QSQLITE=off
OPTIONS_DEFAULT= MYSQL
post-patch:
${REINPLACE_CMD} -e '/find_program/ s|mysqld|mysqld_safe ${LOCALBASE}/bin|g' \
${PATCH_WRKSRC}/server/CMakeLists.txt
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
${PATCH_WRKSRC}/server/src/storage/dbconfigmysql.cpp
# To avoid overflow, MySQL settings need to be lower than
# INT_MAX / kern.hz. This setting assumes kern.hz=2000, and
# it's nothing but a temporary hack.
${REINPLACE_CMD} -e '/wait_timeout/ s|31536000|1073741|' \
${PATCH_WRKSRC}/server/src/storage/*.conf
# Prevent updating MIME during build.
${REINPLACE_CMD} -e '/^update_xdg_mimetypes/ d' \
-e '/find_package(SharedMimeInfo/ d' \
${PATCH_WRKSRC}/CMakeLists.txt
.include <bsd.port.mk>
|