mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
bf785b0c8b
common changes: - don't use deprecated USE_KDE4=kdehier - drop deprecated @dirrmtry and use absolute path instead of @cwd databases/akonadi: - Update to 1.13.0 - add upstream patch to really avoid building Akonadi's unit tests devel/grantlee: - update to 0.5.1 devel/libkgapi: - update to 2.2.0 devel/libkolab: - update to 0.5.3 multimedia/phonon and multimedia/phonon-designerplugin: - update to 4.8.1 multimedia/phonon-gstreamer: - update to 4.8.0 - switch from GStreamer 0.10.x to 1.x multimedia/phonon-vlc: - update to 0.8.0
67 lines
2.1 KiB
Makefile
67 lines
2.1 KiB
Makefile
# Created by: miwi
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= akonadi
|
|
PORTVERSION= 1.13.0
|
|
CATEGORIES= databases kde
|
|
MASTER_SITES= KDE/stable/${PORTNAME}/src
|
|
DIST_SUBDIR= KDE
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= Storage server for KDE-Pim
|
|
|
|
LICENSE= LGPL21
|
|
|
|
LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs
|
|
# Let process generate meaningful backtrace on core dump.
|
|
BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt
|
|
|
|
USE_KDE4= kdeprefix automoc4 soprano
|
|
USES= cmake:outsource execinfo shared-mime-info compiler:c++11-lang tar:bzip2
|
|
USE_QT4= 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= MYSQL=server QT4=sql-mysql_run
|
|
|
|
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_USE= QT4=sql-pgsql_run
|
|
|
|
SQLITE_DESC= Enable SQLite backend
|
|
SQLITE_USE= SQLITE=3
|
|
SQLITE_CMAKE_OFF= -DAKONADI_BUILD_QSQLITE=off
|
|
|
|
OPTIONS_DEFAULT= MYSQL
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e '/akonadi.pc/ s|pkgconfig|../libdata/pkgconfig|' \
|
|
${PATCH_WRKSRC}/CMakeLists.txt
|
|
${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>
|