aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
Diffstat (limited to 'x11')
-rw-r--r--x11/kactivitymanagerd/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/x11/kactivitymanagerd/Makefile b/x11/kactivitymanagerd/Makefile
index dba25572f68e..24d41a1cd5a5 100644
--- a/x11/kactivitymanagerd/Makefile
+++ b/x11/kactivitymanagerd/Makefile
@@ -26,12 +26,20 @@ DISTINFO_FILE= ${.CURDIR}/../kactivities/distinfo
# 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 dependence on gcc
+# 'USES= moderncompiler' would help, for now force dependency on gcc
USE_GCC= 4.6+
+.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.mk>
+.include <bsd.port.post.mk>