summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2011-01-30 12:01:46 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2011-01-30 12:01:46 +0000
commit03612297ffe30c4ce5eaff13c0862e1e89534101 (patch)
tree6b5395d988d082145ed03aed93a0e05e96562681 /media-gfx
parentDon't call prepalldocs, it is no longer needed with EAPI 4. (diff)
downloadgentoo-2-03612297ffe30c4ce5eaff13c0862e1e89534101.tar.gz
gentoo-2-03612297ffe30c4ce5eaff13c0862e1e89534101.tar.bz2
gentoo-2-03612297ffe30c4ce5eaff13c0862e1e89534101.zip
Initial import. Ebuild written by me.
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/mandelbulber/ChangeLog10
-rw-r--r--media-gfx/mandelbulber/files/mandelbulber-0.97-qa.patch30
-rw-r--r--media-gfx/mandelbulber/mandelbulber-0.97.ebuild46
-rw-r--r--media-gfx/mandelbulber/metadata.xml15
4 files changed, 101 insertions, 0 deletions
diff --git a/media-gfx/mandelbulber/ChangeLog b/media-gfx/mandelbulber/ChangeLog
new file mode 100644
index 000000000000..71dd9f5553ad
--- /dev/null
+++ b/media-gfx/mandelbulber/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for media-gfx/mandelbulber
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/mandelbulber/ChangeLog,v 1.1 2011/01/30 12:01:46 xarthisius Exp $
+
+*mandelbulber-0.97 (30 Jan 2011)
+
+ 30 Jan 2011; Kacper Kowalik <xarthisius@gentoo.org>
+ +mandelbulber-0.97.ebuild, +files/mandelbulber-0.97-qa.patch, +metadata.xml:
+ Initial import. Ebuild written by me.
+
diff --git a/media-gfx/mandelbulber/files/mandelbulber-0.97-qa.patch b/media-gfx/mandelbulber/files/mandelbulber-0.97-qa.patch
new file mode 100644
index 000000000000..316e33685c70
--- /dev/null
+++ b/media-gfx/mandelbulber/files/mandelbulber-0.97-qa.patch
@@ -0,0 +1,30 @@
+--- src/Release/makefile.orig 2011-01-30 12:17:24.774427282 +0100
++++ src/Release/makefile 2011-01-30 12:19:06.741766666 +0100
+@@ -43,7 +43,7 @@
+ mandelbulber: $(OBJS) $(USER_OBJS)
+ @echo 'Building target: $@'
+ @echo 'Invoking: GCC C++ Linker'
+- g++ `pkg-config --libs gtk+-2.0 gthread-2.0` -o"mandelbulber" $(OBJS) $(USER_OBJS) $(LIBS)
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o "mandelbulber" $(OBJS) $(USER_OBJS) `pkg-config --libs gtk+-2.0 gthread-2.0` $(LIBS)
+ @echo 'Finished building target: $@'
+ @echo ' '
+
+--- src/Release/subdir.mk.orig 2011-01-30 12:18:22.699456900 +0100
++++ src/Release/subdir.mk 2011-01-30 12:18:50.772927083 +0100
+@@ -65,14 +65,14 @@
+ Render3D.o: ../Render3D.cpp
+ @echo 'Building file: $<'
+ @echo 'Invoking: GCC C++ Compiler'
+- g++ -O2 -ffast-math -Wall -c -fmessage-length=0 `pkg-config --cflags gtk+-2.0 gthread-2.0;` -MMD -MP -MF"$(@:%.o=%.d)" -MT"Render3D.d" -o"$@" "$<"
++ $(CXX) $(CXXFLAGS) -Wall -c -fmessage-length=0 `pkg-config --cflags gtk+-2.0 gthread-2.0;` -MMD -MP -MF"$(@:%.o=%.d)" -MT"Render3D.d" -o"$@" "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+ %.o: ../%.cpp
+ @echo 'Building file: $<'
+ @echo 'Invoking: GCC C++ Compiler'
+- g++ -O2 -ffast-math -Wall -c -fmessage-length=0 `pkg-config --cflags gtk+-2.0 gthread-2.0;` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"
++ $(CXX) $(CXXFLAGS) -Wall -c -fmessage-length=0 `pkg-config --cflags gtk+-2.0 gthread-2.0;` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
diff --git a/media-gfx/mandelbulber/mandelbulber-0.97.ebuild b/media-gfx/mandelbulber/mandelbulber-0.97.ebuild
new file mode 100644
index 000000000000..fcb9accadac1
--- /dev/null
+++ b/media-gfx/mandelbulber/mandelbulber-0.97.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/mandelbulber/mandelbulber-0.97.ebuild,v 1.1 2011/01/30 12:01:46 xarthisius Exp $
+
+EAPI=3
+
+inherit toolchain-funcs versionator
+
+MY_P=${PN}${PV}
+
+DESCRIPTION="Tool to render 3D fractals"
+HOMEPAGE="http://sites.google.com/site/mandelbulber/home"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="x11-libs/gtk+:2
+ >=media-libs/libsndfile-1
+ media-libs/libpng
+ media-libs/jpeg"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-qa.patch
+}
+
+src_compile() {
+ emake CXX="$(tc-getCXX)" -C src/Release all || die
+}
+
+src_install() {
+ dobin src/Release/${PN} || die
+ dodoc README.txt CHANGE_LOG.txt || die
+ dodir /usr/share/${PN}
+ insinto /usr/share/${PN}
+ doins -r .${PN}/* || die
+}
+
+pkg_postinst() {
+ elog "Before you run ${PN} please copy /usr/share/${PN}/* to \${HOME}/.${PN}"
+}
diff --git a/media-gfx/mandelbulber/metadata.xml b/media-gfx/mandelbulber/metadata.xml
new file mode 100644
index 000000000000..cbc56d135001
--- /dev/null
+++ b/media-gfx/mandelbulber/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>xarthisius@gentoo.org</email>
+ <name>Kacper Kowalik</name>
+ </maintainer>
+ <longdescription>
+ Mandelbulber is an easy to use, handy but experimental application
+ designed to help you render 3D Mandelbrot fractals called Mandelbulb
+ and some other kind of 3D fractals like Mandelbox, Bulbbox, Juliabulb,
+ Menger Sponge.
+ </longdescription>
+</pkgmetadata>