summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libprojectm/libprojectm-2.0.1-r1.ebuild')
-rw-r--r--media-libs/libprojectm/libprojectm-2.0.1-r1.ebuild17
1 files changed, 9 insertions, 8 deletions
diff --git a/media-libs/libprojectm/libprojectm-2.0.1-r1.ebuild b/media-libs/libprojectm/libprojectm-2.0.1-r1.ebuild
index bdd6ea47372a..a368d8b3dad2 100644
--- a/media-libs/libprojectm/libprojectm-2.0.1-r1.ebuild
+++ b/media-libs/libprojectm/libprojectm-2.0.1-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libprojectm/libprojectm-2.0.1-r1.ebuild,v 1.2 2010/07/29 22:11:16 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libprojectm/libprojectm-2.0.1-r1.ebuild,v 1.3 2012/03/16 09:46:07 scarabeus Exp $
+
+EAPI=4
-EAPI=2
inherit cmake-utils flag-o-matic eutils toolchain-funcs
MY_P=${P/m/M}-Source ; MY_P=${MY_P/lib}
@@ -27,9 +28,9 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/${MY_P}
-src_prepare() {
- epatch "${FILESDIR}"/${P}-pcfix.patch
-}
+PATCHES=(
+ "${FILESDIR}"/${P}-pcfix.patch
+)
src_configure() {
append-ldflags $(no-as-needed)
@@ -39,7 +40,7 @@ src_configure() {
append-flags -I/opt/nvidia-cg-toolkit/include
fi
- mycmakeargs=(
+ local mycmakeargs=(
$(cmake-utils_use_use video_cards_nvidia CG)
"-DUSE_OPENMP=OFF"
)
@@ -47,7 +48,7 @@ src_configure() {
if use openmp && tc-has-openmp; then
mycmakeargs+=(
$(cmake-utils_use_use openmp)
- )
+ )
fi
cmake-utils_src_configure