summaryrefslogtreecommitdiff
path: root/deskutils/kdepim-kde4/Makefile
blob: 229490ba289a82f3997148c66a1eb62f4fa26c95 (plain)
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
# Created by: Martin Wilke <miwi@FreeBSD.org>
# $FreeBSD$

PORTNAME=	kdepim
PORTVERSION=	${KDE4_KDEPIM_VERSION}
PORTREVISION=	16
CATEGORIES=	deskutils kde
MASTER_SITES=	KDE/${KDE4_APPLICATIONS_BRANCH}/applications/${KDE4_APPLICATIONS_VERSION}/src
DIST_SUBDIR=	KDE/${PORTVERSION}
PKGNAMESUFFIX=	-kde4

MAINTAINER=	kde@FreeBSD.org
COMMENT=	KDE PIM applications

DEPRECATED=	KDE4 is EOL upstream
EXPIRATION_DATE=	2018-12-31

LIB_DEPENDS=	libgpgme.so:security/gpgme \
		libassuan.so:security/libassuan \
		libsasl2.so:security/cyrus-sasl2 \
		libboost_thread.so:devel/boost-libs \
		libkgapi2.so:devel/libkgapi-kde4
RUN_DEPENDS=	${KDE_PREFIX}/bin/accountwizard:deskutils/kdepim-runtime-kde4 \
		${LOCALBASE}/bin/gmd5sum:sysutils/coreutils

CONFLICTS_INSTALL=	kdepim44-4.*

USE_GNOME=	libxml2 libxslt:build
USE_KDE=	kdelibs pimlibs kactivities \
		akonadi automoc4 soprano nepomuk-widgets baloo
USES=		cmake:outsource grantlee:4 iconv kde:4 qt:4 shebangfix tar:xz
SHEBANG_FILES=	agents/mailfilteragent/kconf_update/migrate-kmail-filters.pl \
		kalarm/*.pl kmail/kconf_update/*.pl \
		libkpgp/kconf_update/kpgp-3.1-upgrade-address-data.pl
USE_OPENLDAP=	yes
USE_QT=		corelib dbus declarative designer_build gui network opengl \
		qt3support script sql webkit xml \
		qmake_build moc_build rcc_build uic_build
USE_XORG=	x11 xscrnsaver
CMAKE_ARGS+=	-DKDEPIM_BUILD_MOBILE:BOOL=FALSE
# Avoids Clang error:
# https://git.reviewboard.kde.org/r/108617
CXXFLAGS+=	-Wno-error=return-type
USE_LDCONFIG=	yes
MAKE_ENV=	XDG_CONFIG_HOME=/dev/null

post-patch:
# Remove BOM
	${REINPLACE_CMD} -e '1 s|^.*/|/|g' \
		${WRKSRC}/knotes/configdialog/knotecollectionconfigwidget.cpp

# net-im/kopete-kde4 needs Kleopatra's headers for its Cryptography plugin.
post-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/include/kde4/kleo
	${INSTALL_DATA} ${WRKSRC}/libkleo/kleo/*.h \
		${STAGEDIR}${PREFIX}/include/kde4/kleo
	${MKDIR} ${STAGEDIR}${PREFIX}/include/kde4/kleo/ui
	${INSTALL_DATA} ${WRKSRC}/libkleo/ui/*.h \
		${STAGEDIR}${PREFIX}/include/kde4/kleo/ui

.include <bsd.port.mk>