[weasel-commit] Source: ming=0.4.0_rc2-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Thu, 10 Jun 2010 10:10:32 -0400

================================
ming:source=0.4.0_rc2-1
cvc rdiff ming -1 /weasel.rpath.org@wgl:3-devel/0.4.0_rc2-1
================================
0.4.0_rc2-1 Filip Brcic (brcha@xxxxxxxxxxxx) Thu Jun 10 10:08:42 2010
    ming 0.4.0_rc2

ming-0.4.x-libpng14.patch: new
--- /dev/null
+++ ming-0.4.x-libpng14.patch
@@ -0,0 +20 @@
+--- src/blocks/pngdbl.c
++++ src/blocks/pngdbl.c
+@@ -49,7 +49,7 @@
+ 
+       if(fread(header, 1, 8, fp) != 8)
+               return NULL;
+-      if(!png_check_sig(header, 8))
++      if(png_sig_cmp(header, 0, 8))
+               return NULL;
+       result = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, 
NULL);
+       if(!result)
+@@ -69,7 +69,7 @@
+       
+       if(SWFInput_read(input, header, 8) != 8)
+               return NULL;
+-      if(!png_check_sig(header, 8))
++      if(png_sig_cmp(header, 0, 8))
+               return NULL;
+       result = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, 
NULL);
+       if(!result)

ming.recipe: new
--- /dev/null
+++ ming.recipe
@@ -0,0 +73 @@
+#
+# Copyright (c) 2010 Weasel GNU/Linux [Filip Brcic (brcha@xxxxxxxxxxxx)]
+# Distributed under the terms of the GNU General Public License v3
+#
+
+#loadSuperClass('phpextension')
+class Ming(AutoPackageRecipe):#, PhpExtensionRecipe):
+    name = 'ming'
+    version = '0.4.0_rc2'
+
+    buildRequires = [
+        'perl:devellib', 'python:devel', 'freetype:devel',
+        'libpng:devel', 'giflib:devel', 'zlib:devel',
+        'gettext:runtime', 'intltool:runtime', 'perl-XML-Parser:perl',
+        'bison:runtime', 'm4:runtime', 'autoconf-wrapper:runtime',
+        'autoconf25:runtime', 'automake-wrapper:runtime',
+        'automake110:runtime', 'flex:runtime', 'libtool:runtime',
+        'php:runtime', 'tcl:runtime', 'libtool:devel',
+        ]
+
+    shortDesc  = 'An Open Source library for Flash movie generation'
+    longDesc   = """
+Ming is a library for generating Macromedia Flash files (.swf),
+written in C, and includes useful utilities for working with .swf
+files. It has wrappers that allow it to be used in C++, PHP, Python,
+Ruby, and Perl.
+"""
+    url        = 'http://ming.sourceforge.net/'
+    licenses   = [ 'LGPL-2.1' ]
+    categories = [ 'Media/Libraries' ]
+
+    def unpack(r):
+        r.macros.archive_version = '0.4.2'
+        r.addArchive('mirror://sourceforge/ming/')
+        r.addPatch('ming-0.4.x-libpng14.patch')
+
+        #Let's get rid of the TEXTRELS, link dynamic. Use gif.
+        r.Replace(('libming.a', 'libming.so'),
+                  ('lungif', 'lgif'),
+                  'perl_ext/Makefile.PL')
+        r.Replace('ungif', 'gif',
+                  'py_ext/setup.py.in')
+
+        r.Remove('macros/libtool.m4')
+
+        r.Autoreconf(m4Dir='macros')
+
+#        r.prepare()
+
+    def configure(r):
+        r.Configure(
+            ' --enable-perl'
+            ' --enable-python'
+            )
+
+    def make(r):
+        r.disableParallelMake()
+        r.Make('DESTDIR=%(destdir)s')
+
+        # r.confArgs += (
+        #     ' --disable-rpath'
+        #     ' --disable-static'
+        #     ' --with-ming'
+        #     )
+
+        # r.Run('phpize', dir='php_ext')
+        # r.Remove('php_ext/aclocal.m4')
+        # r.Autoreconf(dir='php_ext')
+        # r.build(dir='php_ext')
+
+    # def makeinstall(r):
+    #     r.MakeInstall()
+    #     r.install(dir='php_ext')

ming-0.4.2.tar.bz2: new

Committed by: brcha

Other related posts: