1 |
commit: 093beb6a1945520416a5179bd5c77ab554ae09d8 |
2 |
Author: Johannes Huber <johu <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 2 07:48:54 2016 +0000 |
4 |
Commit: Johannes Huber <johu <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 08:02:08 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=093beb6a |
7 |
|
8 |
media-libs/qimageblitz: Set minimum cmake version |
9 |
|
10 |
Revision bump adds upstream patch which sets minimum cmake version. |
11 |
|
12 |
Gentoo-bug: 581788 |
13 |
|
14 |
Package-Manager: portage-2.2.28 |
15 |
|
16 |
.../files/qimageblitz-0.0.6-cmake.patch | 12 +++++++ |
17 |
.../files/qimageblitz-0.0.6-exec-stack.patch | 9 +++++ |
18 |
.../qimageblitz/files/qimageblitz-0.0.6-gcc.patch | 4 +-- |
19 |
.../files/qimageblitz-9999-exec-stack.patch | 6 ++-- |
20 |
media-libs/qimageblitz/qimageblitz-0.0.6-r2.ebuild | 40 ++++++++++++++++++++++ |
21 |
5 files changed, 66 insertions(+), 5 deletions(-) |
22 |
|
23 |
diff --git a/media-libs/qimageblitz/files/qimageblitz-0.0.6-cmake.patch b/media-libs/qimageblitz/files/qimageblitz-0.0.6-cmake.patch |
24 |
new file mode 100644 |
25 |
index 0000000..adb183d |
26 |
--- /dev/null |
27 |
+++ b/media-libs/qimageblitz/files/qimageblitz-0.0.6-cmake.patch |
28 |
@@ -0,0 +1,12 @@ |
29 |
+Index: CMakeLists.txt |
30 |
+=================================================================== |
31 |
+--- a/CMakeLists.txt (revision 1209280) |
32 |
++++ b/CMakeLists.txt (revision 1209281) |
33 |
+@@ -1,5 +1,7 @@ |
34 |
+ project(blitz) |
35 |
+ |
36 |
++cmake_minimum_required(VERSION 2.6.4) |
37 |
++ |
38 |
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ) |
39 |
+ find_package(Qt4 REQUIRED) |
40 |
+ # properly set up compile flags (QT_DEBUG/QT_NO_DEBUG, ...) |
41 |
|
42 |
diff --git a/media-libs/qimageblitz/files/qimageblitz-0.0.6-exec-stack.patch b/media-libs/qimageblitz/files/qimageblitz-0.0.6-exec-stack.patch |
43 |
new file mode 100644 |
44 |
index 0000000..170bd70 |
45 |
--- /dev/null |
46 |
+++ b/media-libs/qimageblitz/files/qimageblitz-0.0.6-exec-stack.patch |
47 |
@@ -0,0 +1,9 @@ |
48 |
+Index: blitz/asm_scale.S |
49 |
+=================================================================== |
50 |
+--- a/blitz/asm_scale.S (revision 1204247) |
51 |
++++ b/blitz/asm_scale.S (revision 1204248) |
52 |
+@@ -1,3 +1,4 @@ |
53 |
++.section .note.GNU-stack,"",%progbits |
54 |
+ |
55 |
+ #if defined(__EMX__) |
56 |
+ /* Due to strange behaviour of as.exe we use this macros */ |
57 |
|
58 |
diff --git a/media-libs/qimageblitz/files/qimageblitz-0.0.6-gcc.patch b/media-libs/qimageblitz/files/qimageblitz-0.0.6-gcc.patch |
59 |
index 9b4d812..b956d2d 100644 |
60 |
--- a/media-libs/qimageblitz/files/qimageblitz-0.0.6-gcc.patch |
61 |
+++ b/media-libs/qimageblitz/files/qimageblitz-0.0.6-gcc.patch |
62 |
@@ -1,5 +1,5 @@ |
63 |
---- blitz/CMakeLists.txt |
64 |
-+++ blitz/CMakeLists.txt |
65 |
+--- a/blitz/CMakeLists.txt |
66 |
++++ b/blitz/CMakeLists.txt |
67 |
@@ -31,12 +31,8 @@ |
68 |
|
69 |
if(HAVE_MMX) |
70 |
|
71 |
diff --git a/media-libs/qimageblitz/files/qimageblitz-9999-exec-stack.patch b/media-libs/qimageblitz/files/qimageblitz-9999-exec-stack.patch |
72 |
index 8692c240..911c56b 100644 |
73 |
--- a/media-libs/qimageblitz/files/qimageblitz-9999-exec-stack.patch |
74 |
+++ b/media-libs/qimageblitz/files/qimageblitz-9999-exec-stack.patch |
75 |
@@ -1,6 +1,6 @@ |
76 |
-diff -uar qimageblitz/blitz/asm_scale.S qimageblitz~/blitz/asm_scale.S |
77 |
---- qimageblitz-orig/blitz/asm_scale.S 2007-10-17 01:17:57.000000000 +0200 |
78 |
-+++ qimageblitz/blitz/asm_scale.S 2007-10-17 01:19:12.000000000 +0200 |
79 |
+diff -Naur qimageblitz/blitz/asm_scale.S qimageblitz~/blitz/asm_scale.S |
80 |
+--- a/qimageblitz-orig/blitz/asm_scale.S 2007-10-17 01:17:57.000000000 +0200 |
81 |
++++ b/qimageblitz/blitz/asm_scale.S 2007-10-17 01:19:12.000000000 +0200 |
82 |
@@ -814,3 +814,7 @@ |
83 |
SIZE(qimageScale_mmx_AARGBA) |
84 |
|
85 |
|
86 |
diff --git a/media-libs/qimageblitz/qimageblitz-0.0.6-r2.ebuild b/media-libs/qimageblitz/qimageblitz-0.0.6-r2.ebuild |
87 |
new file mode 100644 |
88 |
index 0000000..c57aa1c |
89 |
--- /dev/null |
90 |
+++ b/media-libs/qimageblitz/qimageblitz-0.0.6-r2.ebuild |
91 |
@@ -0,0 +1,40 @@ |
92 |
+# Copyright 1999-2016 Gentoo Foundation |
93 |
+# Distributed under the terms of the GNU General Public License v2 |
94 |
+# $Id$ |
95 |
+ |
96 |
+EAPI=6 |
97 |
+ |
98 |
+inherit cmake-utils |
99 |
+ |
100 |
+DESCRIPTION="Graphical effect and filter library by KDE" |
101 |
+HOMEPAGE="https://websvn.kde.org/trunk/kdesupport/qimageblitz/" |
102 |
+SRC_URI="mirror://kde/stable/${PN}/${P}.tar.bz2" |
103 |
+ |
104 |
+LICENSE="GPL-2 LGPL-2" |
105 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris" |
106 |
+SLOT="0" |
107 |
+IUSE="cpu_flags_x86_3dnow altivec debug cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2" |
108 |
+ |
109 |
+DEPEND=" |
110 |
+ dev-qt/qtcore:4 |
111 |
+ dev-qt/qtgui:4 |
112 |
+" |
113 |
+RDEPEND="${DEPEND}" |
114 |
+ |
115 |
+PATCHES=( |
116 |
+ "${FILESDIR}/${P}-exec-stack.patch" |
117 |
+ "${FILESDIR}/${P}-gcc.patch" |
118 |
+ "${FILESDIR}/${P}-cmake.patch" |
119 |
+) |
120 |
+ |
121 |
+src_configure() { |
122 |
+ local mycmakeargs=( |
123 |
+ -DHAVE_ALTIVEC=$(usex altivec) |
124 |
+ -DHAVE_3DNOW=$(usex cpu_flags_x86_3dnow) |
125 |
+ -DHAVE_MMX=$(usex cpu_flags_x86_mmx) |
126 |
+ -DHAVE_SSE=$(usex cpu_flags_x86_sse) |
127 |
+ -DHAVE_SSE2=$(usex cpu_flags_x86_sse2) |
128 |
+ ) |
129 |
+ |
130 |
+ cmake-utils_src_configure |
131 |
+} |