]> saetta.ns0.it Git - msys2/commitdiff
clutter-mx: nuovo pacchetto WIP.
authorAndrea Zagli <azagli@libero.it>
Sun, 5 Apr 2015 09:35:38 +0000 (11:35 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 21 Apr 2018 13:13:20 +0000 (15:13 +0200)
packages/mingw-w64-clutter-mx-git/001-win.patch [new file with mode: 0644]
packages/mingw-w64-clutter-mx-git/PKGBUILD [new file with mode: 0644]

diff --git a/packages/mingw-w64-clutter-mx-git/001-win.patch b/packages/mingw-w64-clutter-mx-git/001-win.patch
new file mode 100644 (file)
index 0000000..417249e
--- /dev/null
@@ -0,0 +1,63 @@
+--- ./mx/Makefile.am.orig      2015-02-22 14:57:59.083148000 +0100
++++ ./mx/Makefile.am   2015-02-22 14:58:00.243178900 +0100
+@@ -279,6 +279,7 @@
+ -include $(INTROSPECTION_MAKEFILE)
+ INTROSPECTION_GIRS = Mx-@MX_API_VERSION@.gir
++INTROSPECTION_SCANNER_ENV = CC="$(CC)"
+ Mx-@MX_API_VERSION@.gir: libmx-@MX_API_VERSION@.la Makefile $(INTROSPECTION_SCANNER)
+--- ./mx/mx-box-layout-child.c.orig    2015-02-22 14:57:59.095150400 +0100
++++ ./mx/mx-box-layout-child.c 2015-02-22 14:58:00.250179400 +0100
+@@ -28,6 +28,7 @@
+  * child properties for children inside a #MxBoxLayout.
+  */
++#include "mx-enum-types.h"
+ #include "mx-box-layout-child.h"
+ #include "mx-private.h"
+--- ./mx/mx-box-layout-child.h.orig    2015-02-22 14:57:59.096148600 +0100
++++ ./mx/mx-box-layout-child.h 2015-02-22 14:58:00.256180600 +0100
+@@ -28,7 +28,6 @@
+ #define _MX_BOX_LAYOUT_CHILD_H
+ #include <clutter/clutter.h>
+-#include "mx-enum-types.h"
+ #include "mx-box-layout.h"
+ G_BEGIN_DECLS
+--- ./mx/mx-stack-child.c.orig 2015-02-22 14:57:59.234155800 +0100
++++ ./mx/mx-stack-child.c      2015-02-22 14:58:00.263180400 +0100
+@@ -31,6 +31,7 @@
+  * Since: 1.2
+  */
++#include "mx-enum-types.h"
+ #include "mx-stack-child.h"
+ #include "mx-private.h"
+--- ./mx/mx-stack-child.h.orig 2015-02-22 14:57:59.236155600 +0100
++++ ./mx/mx-stack-child.h      2015-02-22 14:58:00.271180600 +0100
+@@ -29,7 +29,6 @@
+ #define _MX_STACK_CHILD_H
+ #include <clutter/clutter.h>
+-#include "mx-enum-types.h"
+ #include "mx-stack.h"
+ G_BEGIN_DECLS
+--- ./tools/Makefile.am.orig   2015-02-22 15:08:08.803098400 +0100
++++ ./tools/Makefile.am        2015-02-22 15:08:13.563209400 +0100
+@@ -3,6 +3,10 @@
+ AM_CFLAGS = $(MX_CFLAGS) $(MX_MAINTAINER_CFLAGS)
+ LDADD = $(top_builddir)/mx/libmx-$(MX_API_VERSION).la $(MX_LIBS)
++INCLUDES = \
++      -I$(top_srcdir) \
++      -I$(top_builddir)
++
+ mx_builder_SOURCES = mx-builder.c
+ -include $(top_srcdir)/git.mk
diff --git a/packages/mingw-w64-clutter-mx-git/PKGBUILD b/packages/mingw-w64-clutter-mx-git/PKGBUILD
new file mode 100644 (file)
index 0000000..3f5c2c0
--- /dev/null
@@ -0,0 +1,59 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=clutter-mx
+_base_ver=1.99.5
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}-git"
+pkgver=1.99.5.2969.63da1f2
+pkgrel=1
+arch=('any')
+pkgdesc="A widget toolkit using Clutter (mingw-w64)"
+depends=("${MINGW_PACKAGE_PREFIX}-glib2"
+         "${MINGW_PACKAGE_PREFIX}-gdk-pixbuf2"
+         "${MINGW_PACKAGE_PREFIX}-clutter")
+makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
+             "${MINGW_PACKAGE_PREFIX}-vala"
+             "${MINGW_PACKAGE_PREFIX}-gobject-introspection"
+             "git"
+             "gtk-doc")
+options=('strip' 'staticlibs')
+license=("LGPL 2.1")
+url="https://github.com/clutter-project/mx"
+source=("${_realname}"::"git+https://github.com/clutter-project/mx.git"
+        001-win.patch)
+sha256sums=('SKIP'
+            '8801682aefe615c942923b58ad2afa0bc9ddfa9ea614172805835fa5d05d1ce4')
+
+pkgver() {
+  cd "$srcdir/$_realname"
+  printf "%s.%s.%s" "${_base_ver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+  cd $srcdir/${_realname}
+
+  patch -b -V simple -p1 -i ${srcdir}/001-win.patch
+
+  intltoolize --force --copy --automake
+  gtkdocize
+  autoreconf -if
+}
+
+build() {
+  mkdir -p build-${MINGW_CHOST}
+  cd build-${MINGW_CHOST}
+
+  ../${_realname}/configure \
+    --host=${MINGW_CHOST} \
+    --target=${MINGW_CHOST} \
+    --build=${MINGW_CHOST} \
+    --prefix=${MINGW_PREFIX} \
+    --libexecdir=${MINGW_PREFIX}/lib \
+    --with-winsys=none \
+    --enable-tests
+  make
+}
+
+package() {
+  cd "$srcdir/build-${MINGW_CHOST}"
+  make DESTDIR=$pkgdir install
+}