[media-libs/qimageblitz] Testing *FLAGS respect for assembler, wrt bug #431968.
authorMichael Palimaka <kensington@gentoo.org>
Wed, 14 Nov 2012 17:17:50 +0000 (04:17 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Wed, 14 Nov 2012 17:26:56 +0000 (04:26 +1100)
Package-Manager: portage-2.1.11.31

media-libs/qimageblitz/Manifest [new file with mode: 0644]
media-libs/qimageblitz/files/qimageblitz-0.0.6-gcc.patch [new file with mode: 0644]
media-libs/qimageblitz/files/qimageblitz-9999-exec-stack.patch [new file with mode: 0644]
media-libs/qimageblitz/metadata.xml [new file with mode: 0644]
media-libs/qimageblitz/qimageblitz-0.0.6-r1.ebuild [new file with mode: 0644]

diff --git a/media-libs/qimageblitz/Manifest b/media-libs/qimageblitz/Manifest
new file mode 100644 (file)
index 0000000..c4e3a06
--- /dev/null
@@ -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 (file)
index 0000000..9b4d812
--- /dev/null
@@ -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 (file)
index 0000000..8692c24
--- /dev/null
@@ -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 (file)
index 0000000..8d1e86a
--- /dev/null
@@ -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 (file)
index 0000000..d7ab45c
--- /dev/null
@@ -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
+}