summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Haag2016-09-07 08:26:58 +0200
committerChristoph Haag2016-09-07 11:09:28 +0200
commit94b5ca6d2e8f7818517f8deff4da64ac17131299 (patch)
tree4854a2d02e7239598b4013b5746e2edfea8dcbba
parentf453e1e1c8bed8f52ad8573e4b95b51c9c90b6bc (diff)
downloadaur-94b5ca6d2e8f7818517f8deff4da64ac17131299.tar.gz
new version with patch
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD14
-rw-r--r--fixWriteLog.diff15
3 files changed, 31 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 58f8729a804..160a2b2e239 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mandelbulber-opencl
pkgdesc = 3D application designed to render 3D fractals such as the Mandelbulb, Mandelbox, BulbBox, JuliaBulb, Menger Sponge, and Iterated Function Systems.
pkgver = 1.21
- pkgrel = 1
+ pkgrel = 2
url = http://mandelbulber.com/
arch = any
license = GPL3
@@ -11,8 +11,10 @@ pkgbase = mandelbulber-opencl
depends = gtk2
provides = mandelbulber
conflicts = mandlebulber
- source = mandelbulber-opencl::http://iweb.dl.sourceforge.net/project/mandelbulber/mandelbulber-opencl-1.21-1.orig.tar.gz
- md5sums = 5215d76f72a74436f57fe944be538654
+ source = mandelbulber-opencl::https://sourceforge.net/projects/mandelbulber/files/mandelbulber-opencl-1.21-2.orig.tar.gz/download
+ source = fixWriteLog.diff
+ md5sums = d4dcb855aab3a5afe139dfcafb14ad72
+ md5sums = 5f80e2fe5cad48fe33500c23440f602d
pkgname = mandelbulber-opencl
diff --git a/PKGBUILD b/PKGBUILD
index 5e2a296e0d1..b427fd554eb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=mandelbulber-opencl
pkgver=1.21
-pkgrel=1
+pkgrel=2
pkgdesc="3D application designed to render 3D fractals such as the Mandelbulb, Mandelbox, BulbBox, JuliaBulb, Menger Sponge, and Iterated Function Systems."
arch=('any')
url="http://mandelbulber.com/"
@@ -11,8 +11,16 @@ depends=('libjpeg-turbo' 'ocl-icd' 'gtk2')
makedepends=('opencl-headers')
provides=('mandelbulber')
conflicts=('mandlebulber')
-source=("${pkgname}::http://iweb.dl.sourceforge.net/project/mandelbulber/${pkgname}-${pkgver}-${pkgrel}.orig.tar.gz")
-md5sums=('5215d76f72a74436f57fe944be538654')
+#source=("${pkgname}::http://iweb.dl.sourceforge.net/project/mandelbulber/${pkgname}-${pkgver}-${pkgrel}.orig.tar.gz")
+source=("${pkgname}::https://sourceforge.net/projects/mandelbulber/files/mandelbulber-opencl-${pkgver}-${pkgrel}.orig.tar.gz/download"
+ "fixWriteLog.diff")
+md5sums=('d4dcb855aab3a5afe139dfcafb14ad72'
+ '5f80e2fe5cad48fe33500c23440f602d')
+
+prepare() {
+ cd ${pkgname}-${pkgver}-${pkgrel}.orig
+ patch -p1 < "$srcdir"/fixWriteLog.diff
+}
build()
{
diff --git a/fixWriteLog.diff b/fixWriteLog.diff
new file mode 100644
index 00000000000..7ed9d3e8095
--- /dev/null
+++ b/fixWriteLog.diff
@@ -0,0 +1,15 @@
+diff --git a/src/files.h b/src/files.h
+index 8b8b6c0..79e387b 100644
+--- a/src/files.h
++++ b/src/files.h
+@@ -56,8 +56,8 @@ void SavePNG16(const char *filename, int quality, int width, int height, sRGB16*
+ void SavePNG16Alpha(const char *filename, int quality, int width, int height, cImage *image);
+ void SaveFromTilesPNG16(const char *filename, int width, int height, int tiles);
+ bool FileIfExists(const char *filename);
+-void WriteLog(const char *text);
+-void WriteLogDouble(const char *text, double value);
++#define WriteLog(text) if(0)
++#define WriteLogDouble(text,value) if(0)
+ int fcopy(const char *source, const char *dest);
+ void BufferNormalize16(sRGB16 *buffer, unsigned int size);
+ //void SaveAllImageLayers(const char *filename, cImage *image);