aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2012-11-14 17:17:50 (GMT)
committerMichael Palimaka <kensington@gentoo.org>2012-11-14 17:26:56 (GMT)
commiteb42a0e4d45d1de40ffef52d6df2a4dc35bb13aa (patch)
treebd0c89e34288cd6f63182cdd59fff844fdfd9daf
parent[eclass] Add experimental support for assembler *FLAGS respect, wrt bug #432480. (diff)
downloadkde-eb42a0e4d45d1de40ffef52d6df2a4dc35bb13aa.zip
kde-eb42a0e4d45d1de40ffef52d6df2a4dc35bb13aa.tar.gz
kde-eb42a0e4d45d1de40ffef52d6df2a4dc35bb13aa.tar.bz2
[media-libs/qimageblitz] Testing *FLAGS respect for assembler, wrt bug #431968.
Package-Manager: portage-2.1.11.31
-rw-r--r--media-libs/qimageblitz/Manifest1
-rw-r--r--media-libs/qimageblitz/files/qimageblitz-0.0.6-gcc.patch16
-rw-r--r--media-libs/qimageblitz/files/qimageblitz-9999-exec-stack.patch11
-rw-r--r--media-libs/qimageblitz/metadata.xml5
-rw-r--r--media-libs/qimageblitz/qimageblitz-0.0.6-r1.ebuild38
5 files changed, 71 insertions, 0 deletions
diff --git a/media-libs/qimageblitz/Manifest b/media-libs/qimageblitz/Manifest
new file mode 100644
index 0000000..c4e3a06
--- /dev/null
+++ b/media-libs/qimageblitz/Manifest
@@ -0,0 +1 @@
+DIST qimageblitz-0.0.6.tar.bz2 57617 SHA256 9f102269dec50641440e23a449df215a0db9efef9a3969939d618c5e78a5010f SHA512 dbd506c01622824efdec69640eb95e737d7848fa15d33351084a6499ca2321d7bc08e080d1e443f8ab9015cd2967c10d9b5aa2f3c6eaa7558153821c46133af9 WHIRLPOOL e13f5c11e2094296af558de4e9054d3c5a162be5e40a0418c5a505e222fe749c8dac319defc25bc2a2b6a5238e5d1fefb966fd64198d43b6b8af99d608362b45
diff --git a/media-libs/qimageblitz/files/qimageblitz-0.0.6-gcc.patch b/media-libs/qimageblitz/files/qimageblitz-0.0.6-gcc.patch
new file mode 100644
index 0000000..9b4d812
--- /dev/null
+++ b/media-libs/qimageblitz/files/qimageblitz-0.0.6-gcc.patch
@@ -0,0 +1,16 @@
+--- blitz/CMakeLists.txt
++++ blitz/CMakeLists.txt
+@@ -31,12 +31,8 @@
+
+ if(HAVE_MMX)
+ if(NOT APPLE AND NOT WIN32)
++ enable_language(ASM)
+ set( blitz_LIB_SRCS ${blitz_LIB_SRCS} asm_scale.S )
+- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/asm_scale.o
+- COMMAND gcc -c ${CMAKE_CURRENT_SOURCE_DIR}/asm_scale.S
+- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/asm_scale.S )
+- set( blitz_LIB_EXTRA_SRCS ${CMAKE_CURRENT_BINARY_DIR}/asm_scale.o )
+- set(HAVE_EXTERNAL_ASM TRUE)
+ endif(NOT APPLE AND NOT WIN32)
+ endif(HAVE_MMX)
+ configure_file (config-processor.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-processor.h )
diff --git a/media-libs/qimageblitz/files/qimageblitz-9999-exec-stack.patch b/media-libs/qimageblitz/files/qimageblitz-9999-exec-stack.patch
new file mode 100644
index 0000000..8692c24
--- /dev/null
+++ b/media-libs/qimageblitz/files/qimageblitz-9999-exec-stack.patch
@@ -0,0 +1,11 @@
+diff -uar qimageblitz/blitz/asm_scale.S qimageblitz~/blitz/asm_scale.S
+--- qimageblitz-orig/blitz/asm_scale.S 2007-10-17 01:17:57.000000000 +0200
++++ qimageblitz/blitz/asm_scale.S 2007-10-17 01:19:12.000000000 +0200
+@@ -814,3 +814,7 @@
+ SIZE(qimageScale_mmx_AARGBA)
+
+ #endif
++#if defined(__linux__) && defined(__ELF__)
++.section .note.GNU-stack,"",%progbits
++#endif
++
diff --git a/media-libs/qimageblitz/metadata.xml b/media-libs/qimageblitz/metadata.xml
new file mode 100644
index 0000000..8d1e86a
--- /dev/null
+++ b/media-libs/qimageblitz/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>kde</herd>
+</pkgmetadata>
diff --git a/media-libs/qimageblitz/qimageblitz-0.0.6-r1.ebuild b/media-libs/qimageblitz/qimageblitz-0.0.6-r1.ebuild
new file mode 100644
index 0000000..d7ab45c
--- /dev/null
+++ b/media-libs/qimageblitz/qimageblitz-0.0.6-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/qimageblitz/qimageblitz-0.0.6.ebuild,v 1.9 2012/05/17 13:03:37 aballier Exp $
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="A graphical effect and filter library for KDE4"
+HOMEPAGE="http://websvn.kde.org/trunk/kdesupport/qimageblitz/"
+SRC_URI="mirror://kde/stable/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
+SLOT="0"
+IUSE="3dnow altivec debug mmx sse sse2"
+
+DEPEND="
+ x11-libs/qt-core:4
+ x11-libs/qt-gui:4
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-9999-exec-stack.patch"
+ "${FILESDIR}/${P}-gcc.patch"
+)
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_has 3dnow)
+ $(cmake-utils_use_has altivec)
+ $(cmake-utils_use_has mmx)
+ $(cmake-utils_use_has sse)
+ $(cmake-utils_use_has sse2)
+ )
+ cmake-utils_src_configure
+}