freebsd-ports/x11/kactivitymanagerd/Makefile
Gerald Pfeifer 41e60477bd Replace USE_GCC=4.6+ and USE_GCC=4.4+ by USE_GCC=yes.
Right now this is a noop in the former case and a noop in the latter
case unless lang/gcc44 has been installed explicitly.

This puts a bit more emphasis on standardizing on a canonical version
"current" GCC and makes it easier to update that canonical version
by changing the default in Mk/bsd.gcc.mk and updating the lang/gcc port.

That is, USE_GCC=yes means "use a decent/modern version of GCC" without
having to worry about details.

Approved by:	portmgr (bdrewery)
2013-08-17 16:27:24 +00:00

45 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= kactivitymanagerd
PORTVERSION= ${KDE4_VERSION}
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src
DIST_SUBDIR= KDE/${PORTVERSION}
DISTNAME= kactivities-${PORTVERSION}
MAINTAINER= kde@FreeBSD.org
COMMENT= Activity Manager daemon
CONFLICTS_INSTALL= kdelibs-4.7.* kde-runtime-4.7.* kactivities-4.[8-9].*
USE_XZ= yes
USE_KDE4= automoc4 kdehier kdelibs kdeprefix soprano nepomuk-core \
kactivities
USES= cmake:outsource
USE_QT4= declarative opengl script sql \
moc_build qmake_build rcc_build uic_build
USE_LDCONFIG= yes
DISTINFO_FILE= ${.CURDIR}/../kactivities/distinfo
MAKE_ENV= XDG_CONFIG_HOME=/dev/null
# https://bugs.kde.org/show_bug.cgi?id=305529#c10
CMAKE_ARGS+= -DCMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS=-rdynamic
# 'USES= moderncompiler' would help, for now force dependency on GCC
USE_GCC= yes
.include <bsd.port.pre.mk>
# Workaround to keep kactivitymanagerd from crashing:
# http://lists.freebsd.org/pipermail/freebsd-current/2012-May/033972.html
.if ${OSVERSION} > 1000000
CXXFLAGS+= -fno-use-cxa-atexit
.endif
post-patch:
${REINPLACE_CMD} -e "/add_subdirectory (lib)/d" \
-e "/add_subdirectory (ontologies)/d" \
${WRKSRC}/src/CMakeLists.txt \
.include <bsd.port.post.mk>