summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-11-13 22:51:06 +0000
committerjoerg <joerg@pkgsrc.org>2013-11-13 22:51:06 +0000
commitf90b270d3a36574dc448b9b6b618fc713fe99361 (patch)
treed70c256eeba1ddab2a2aae628200d3f573797f3f
parent6e57f909decfa193287691839b4e542a7ebc3565 (diff)
downloadpkgsrc-f90b270d3a36574dc448b9b6b618fc713fe99361.tar.gz
Do not force C90 and remove some other pointless options that will
create issues with Clang builds. Bump revision.
-rw-r--r--multimedia/phonon/Makefile3
-rw-r--r--multimedia/phonon/distinfo3
-rw-r--r--multimedia/phonon/patches/patch-cmake_FindPhononInternal.cmake24
3 files changed, 28 insertions, 2 deletions
diff --git a/multimedia/phonon/Makefile b/multimedia/phonon/Makefile
index 60398737911..fbb8a519eb6 100644
--- a/multimedia/phonon/Makefile
+++ b/multimedia/phonon/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.36 2013/11/09 22:45:05 markd Exp $
+# $NetBSD: Makefile,v 1.37 2013/11/13 22:51:06 joerg Exp $
DISTNAME= phonon-4.7.0
+PKGREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_KDE:=phonon/4.7.0/}
EXTRACT_SUFX= .tar.xz
diff --git a/multimedia/phonon/distinfo b/multimedia/phonon/distinfo
index aa8caea79d3..db79429f864 100644
--- a/multimedia/phonon/distinfo
+++ b/multimedia/phonon/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.8 2013/11/09 22:45:05 markd Exp $
+$NetBSD: distinfo,v 1.9 2013/11/13 22:51:06 joerg Exp $
SHA1 (phonon-4.7.0.tar.xz) = feda28afe016fe38eb253f2be01973fc0226d10f
RMD160 (phonon-4.7.0.tar.xz) = dfe1dd8febc3b8304368340438d4f4f692ac8572
Size (phonon-4.7.0.tar.xz) = 329792 bytes
+SHA1 (patch-cmake_FindPhononInternal.cmake) = b44464daf9542d985e1163cd0b5eb6db73a0b457
diff --git a/multimedia/phonon/patches/patch-cmake_FindPhononInternal.cmake b/multimedia/phonon/patches/patch-cmake_FindPhononInternal.cmake
new file mode 100644
index 00000000000..83105476e51
--- /dev/null
+++ b/multimedia/phonon/patches/patch-cmake_FindPhononInternal.cmake
@@ -0,0 +1,24 @@
+$NetBSD: patch-cmake_FindPhononInternal.cmake,v 1.1 2013/11/13 22:51:06 joerg Exp $
+
+--- cmake/FindPhononInternal.cmake.orig 2013-11-13 13:44:42.000000000 +0000
++++ cmake/FindPhononInternal.cmake
+@@ -320,16 +320,16 @@ if (CMAKE_COMPILER_IS_GNUCXX)
+ # Select flags.
+ set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -DNDEBUG -DQT_NO_DEBUG")
+ set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG -DQT_NO_DEBUG")
+- set(CMAKE_CXX_FLAGS_DEBUG "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline")
++ set(CMAKE_CXX_FLAGS_DEBUG "-g -O2 -fno-inline")
+ set(CMAKE_CXX_FLAGS_DEBUGFULL "-g3 -fno-inline")
+ set(CMAKE_CXX_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage -fprofile-arcs")
+ set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g -DNDEBUG -DQT_NO_DEBUG")
+ set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG -DQT_NO_DEBUG")
+- set(CMAKE_C_FLAGS_DEBUG "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline")
++ set(CMAKE_C_FLAGS_DEBUG "-g -O2 -fno-inline")
+ set(CMAKE_C_FLAGS_DEBUGFULL "-g3 -fno-inline")
+ set(CMAKE_C_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage -fprofile-arcs")
+
+- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common")
++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common")
+ # As of Qt 4.6.x we need to override the new exception macros if we want compile with -fno-exceptions
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common")
+