freebsd-ports/databases/akonadi/Makefile
Raphael Kubo da Costa e4815d14d2 Remove unneeded sed hacks for entities.h.
This header file is not installed, and the current build directory is
added to the include path list before LOCALBASE, so there should be no
naming conflicts with graphics/gd.

Approved by:	avilla (mentor)
2011-09-18 23:19:08 +00:00

54 lines
1.6 KiB
Makefile

# New ports collection Makefile for: akonadi
# Date created: 2008-01-20
# Whom: miwi
#
# $FreeBSD$
PORTNAME= akonadi
PORTVERSION= 1.6.0
CATEGORIES= databases kde ipv6
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTNAME}/src/
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= Storage server for kdepim
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/lgpl-license
LIB_DEPENDS= boost_thread:${PORTSDIR}/devel/boost-libs \
soprano.4:${PORTSDIR}/textproc/soprano
BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt
RUN_DEPENDS= ${QT_PREFIX}/lib/qt4/plugins/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt4-mysql-plugin
# Let process generate meaningful backtrace on core dump
LIB_DEPENDS+= execinfo.1:${PORTSDIR}/devel/libexecinfo
CMAKE_ARGS+= -DAKONADI_BUILD_TESTS:BOOL=FALSE \
-DINSTALL_QSQLITE_IN_QT_PREFIX:BOOL=TRUE \
-DCMAKE_REQUIRED_INCLUDES:STRING="${LOCALBASE}/include"
USE_BZIP2= yes
USE_SQLITE= 3
USE_QT_VER= 4
QT_COMPONENTS= corelib network qtestlib dbus sql \
qmake_build moc_build rcc_build uic_build
USE_MYSQL= server
USE_KDE4= kdeprefix kdehier automoc4 sharedmime
KDE4_BUILDENV= yes
PLIST_SUB+= QT_PREFIX=${QT_PREFIX}
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
#prevent updating mime during build
${REINPLACE_CMD} -e '/^update_xdg_mimetypes/d; /SharedMimeInfo/d' \
${PATCH_WRKSRC}/CMakeLists.txt
post-install:
@-update-mime-database ${KDE4_PREFIX}/share/mime
.include <bsd.port.mk>