Date: Sunday, November 17, 2013 @ 23:02:34
  Author: eric
Revision: 199875

archrelease: copy trunk to extra-i686, extra-x86_64

Added:
  xaos/repos/extra-i686/PKGBUILD
    (from rev 199874, xaos/trunk/PKGBUILD)
  xaos/repos/extra-i686/xaos-3.5-build-fix-i686.patch
    (from rev 199874, xaos/trunk/xaos-3.5-build-fix-i686.patch)
  xaos/repos/extra-i686/xaos.install
    (from rev 199874, xaos/trunk/xaos.install)
  xaos/repos/extra-x86_64/PKGBUILD
    (from rev 199874, xaos/trunk/PKGBUILD)
  xaos/repos/extra-x86_64/xaos-3.5-build-fix-i686.patch
    (from rev 199874, xaos/trunk/xaos-3.5-build-fix-i686.patch)
  xaos/repos/extra-x86_64/xaos.install
    (from rev 199874, xaos/trunk/xaos.install)
Deleted:
  xaos/repos/extra-i686/PKGBUILD
  xaos/repos/extra-i686/xaos-3.5-build-fix-i686.patch
  xaos/repos/extra-i686/xaos-3.5-libpng15.patch
  xaos/repos/extra-i686/xaos.install
  xaos/repos/extra-x86_64/PKGBUILD
  xaos/repos/extra-x86_64/xaos-3.5-build-fix-i686.patch
  xaos/repos/extra-x86_64/xaos-3.5-libpng15.patch
  xaos/repos/extra-x86_64/xaos.install

--------------------------------------------+
 /PKGBUILD                                  |   70 ++++++++++++++
 /xaos-3.5-build-fix-i686.patch             |   40 ++++++++
 /xaos.install                              |   40 ++++++++
 extra-i686/PKGBUILD                        |   37 -------
 extra-i686/xaos-3.5-build-fix-i686.patch   |   20 ----
 extra-i686/xaos-3.5-libpng15.patch         |  131 ---------------------------
 extra-i686/xaos.install                    |   20 ----
 extra-x86_64/PKGBUILD                      |   37 -------
 extra-x86_64/xaos-3.5-build-fix-i686.patch |   20 ----
 extra-x86_64/xaos-3.5-libpng15.patch       |  131 ---------------------------
 extra-x86_64/xaos.install                  |   20 ----
 11 files changed, 150 insertions(+), 416 deletions(-)

Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD 2013-11-17 22:02:01 UTC (rev 199874)
+++ extra-i686/PKGBUILD 2013-11-17 22:02:34 UTC (rev 199875)
@@ -1,37 +0,0 @@
-# $Id$
-# Maintainer: Eric Bélanger <e...@archlinux.org>
-
-pkgname=xaos
-pkgver=3.5
-pkgrel=6
-pkgdesc="A fast portable real-time interactive fractal zoomer"
-arch=('i686' 'x86_64')
-url="http://sourceforge.net/projects/xaos/";
-license=('GPL')
-depends=('gsl' 'libpng' 'aalib')
-options=('!makeflags')
-install=xaos.install
-source=(http://downloads.sourceforge.net/sourceforge/xaos/${pkgname}-${pkgver}.tar.gz
 \
-        xaos-3.5-libpng15.patch xaos-3.5-build-fix-i686.patch)
-sha1sums=('6d16a58187fba7276e6bd0547cc2fd6bb073b801'
-          '6c51cb2ee1c5f28973680ffc3a040c2cea65fd33'
-          'd2ea8f0460c79c47fb289a4c2f87fe5c44057f9d')
-
-prepare() {
-  cd ${pkgname}-${pkgver}
-  patch -p0 -i ../xaos-3.5-libpng15.patch
-  if [[ $CARCH == "i686" ]]; then
-    patch -p1 -i ../xaos-3.5-build-fix-i686.patch
-  fi
-}
-
-build() {
-  cd ${pkgname}-${pkgver}
-  ./configure --prefix=/usr --with-gsl --with-aa-driver
-  make
-}
-
-package() {
-  cd ${pkgname}-${pkgver}
-  make DESTDIR="${pkgdir}" install
-}

Copied: xaos/repos/extra-i686/PKGBUILD (from rev 199874, xaos/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD                         (rev 0)
+++ extra-i686/PKGBUILD 2013-11-17 22:02:34 UTC (rev 199875)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Eric Bélanger <e...@archlinux.org>
+
+pkgname=xaos
+pkgver=3.6
+pkgrel=1
+pkgdesc="A fast portable real-time interactive fractal zoomer"
+arch=('i686' 'x86_64')
+url="http://matek.hu/xaos/";
+license=('GPL')
+depends=('gsl' 'libpng' 'aalib')
+options=('!makeflags')
+install=xaos.install
+source=(http://downloads.sourceforge.net/sourceforge/xaos/${pkgname}-${pkgver}.tar.gz
+        xaos-3.5-build-fix-i686.patch)
+sha1sums=('0c68d25c4f9c8eaf557e37d9e4586a04ab56d7a0'
+          'd2ea8f0460c79c47fb289a4c2f87fe5c44057f9d')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  if [[ $CARCH == "i686" ]]; then
+    patch -p1 -i ../xaos-3.5-build-fix-i686.patch
+  fi
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr --with-gsl --with-aa-driver
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+}

Deleted: extra-i686/xaos-3.5-build-fix-i686.patch
===================================================================
--- extra-i686/xaos-3.5-build-fix-i686.patch    2013-11-17 22:02:01 UTC (rev 
199874)
+++ extra-i686/xaos-3.5-build-fix-i686.patch    2013-11-17 22:02:34 UTC (rev 
199875)
@@ -1,20 +0,0 @@
---- xaos-3.5/src/engine/zoomd.c.orig   2009-07-18 00:50:31.000000000 +0100
-+++ xaos-3.5/src/engine/zoomd.c        2012-05-20 19:04:55.891065437 +0100
-@@ -280,6 +280,7 @@ dosymetry2(void /*@unused@ */ *data, str
- #endif
- #undef bpp1
- 
-+REGISTERS(0)
- static INLINE void fillline(int line)
- {
-     register unsigned char *RESTRICT vbuff = cimage.currlines[line];
---- xaos-3.5/src/engine/zoom.c.fix-build       2009-07-18 00:50:31.000000000 
+0100
-+++ xaos-3.5/src/engine/zoom.c 2012-05-20 19:11:53.625083113 +0100
-@@ -933,6 +933,7 @@ static /*INLINE */ void preparemoveoldpo
- }
- 
- #ifndef USE_i386ASM
-+REGISTERS(0)
- static /*INLINE */ void
- moveoldpoints(void /*@unused@ */ *data1,
-             struct taskinfo /*@unused@ */ *task,

Copied: xaos/repos/extra-i686/xaos-3.5-build-fix-i686.patch (from rev 199874, 
xaos/trunk/xaos-3.5-build-fix-i686.patch)
===================================================================
--- extra-i686/xaos-3.5-build-fix-i686.patch                            (rev 0)
+++ extra-i686/xaos-3.5-build-fix-i686.patch    2013-11-17 22:02:34 UTC (rev 
199875)
@@ -0,0 +1,20 @@
+--- xaos-3.5/src/engine/zoomd.c.orig   2009-07-18 00:50:31.000000000 +0100
++++ xaos-3.5/src/engine/zoomd.c        2012-05-20 19:04:55.891065437 +0100
+@@ -280,6 +280,7 @@ dosymetry2(void /*@unused@ */ *data, str
+ #endif
+ #undef bpp1
+ 
++REGISTERS(0)
+ static INLINE void fillline(int line)
+ {
+     register unsigned char *RESTRICT vbuff = cimage.currlines[line];
+--- xaos-3.5/src/engine/zoom.c.fix-build       2009-07-18 00:50:31.000000000 
+0100
++++ xaos-3.5/src/engine/zoom.c 2012-05-20 19:11:53.625083113 +0100
+@@ -933,6 +933,7 @@ static /*INLINE */ void preparemoveoldpo
+ }
+ 
+ #ifndef USE_i386ASM
++REGISTERS(0)
+ static /*INLINE */ void
+ moveoldpoints(void /*@unused@ */ *data1,
+             struct taskinfo /*@unused@ */ *task,

Deleted: extra-i686/xaos-3.5-libpng15.patch
===================================================================
--- extra-i686/xaos-3.5-libpng15.patch  2013-11-17 22:02:01 UTC (rev 199874)
+++ extra-i686/xaos-3.5-libpng15.patch  2013-11-17 22:02:34 UTC (rev 199875)
@@ -1,131 +0,0 @@
-http://code.google.com/p/gnuxaos/issues/detail?id=55
-
---- src/util/png.c
-+++ src/util/png.c
-@@ -3,6 +3,7 @@
- #include <aconfig.h>
- #ifdef USE_PNG
- #include <png.h>
-+#include <zlib.h>
- #endif
- #include <stdlib.h>
- #include <stdio.h>
-@@ -31,6 +32,9 @@
-     png_structp png_ptr;
-     png_infop info_ptr;
-     png_color palette[256];
-+    png_color_8 sig_bit;
-+    int color_type;
-+    int bit_depth;
-     volatile unsigned short a = 255;
-     volatile unsigned char *b = (volatile unsigned char *) &a;
- #ifdef _undefined_
-@@ -59,7 +63,7 @@
-       png_destroy_write_struct(&png_ptr, (png_infopp) NULL);
-       return "No memory to create png info structure";
-     }
--    if (setjmp(png_ptr->jmpbuf)) {
-+    if (setjmp(png_jmpbuf(png_ptr))) {
-       png_destroy_write_struct(&png_ptr, &info_ptr);
-       fclose(file);
-       return strerror(errno);
-@@ -78,57 +82,70 @@
-     png_set_compression_window_bits(png_ptr, 15);
-     png_set_compression_method(png_ptr, 8);
- 
--    info_ptr->width = image->width;
--    info_ptr->height = image->height;
--    /*info_ptr->gamma=1.0; */
--    info_ptr->gamma = 0.5;
--    info_ptr->valid |= PNG_INFO_gAMA | PNG_INFO_pHYs;
--    info_ptr->x_pixels_per_unit = (png_uint_32) (100 / image->pixelwidth);
--    info_ptr->y_pixels_per_unit = (png_uint_32) (100 / image->pixelheight);
-+    switch (image->palette->type)
-+    {
-+    case C256:
-+      color_type = PNG_COLOR_TYPE_PALETTE;
-+      bit_depth = image->bytesperpixel * 8;
-+      break;
-+    case SMALLITER:
-+    case LARGEITER:
-+    case GRAYSCALE:
-+      color_type = PNG_COLOR_TYPE_GRAY;
-+      bit_depth = image->bytesperpixel * 8;
-+      break;
-+    case TRUECOLOR:
-+    case TRUECOLOR24:
-+    case TRUECOLOR16:
-+      color_type = PNG_COLOR_TYPE_RGB;
-+      bit_depth = 8;
-+      break;
-+    }
- 
-+    png_set_IHDR (png_ptr, info_ptr, image->width, image->height, bit_depth,
-+                color_type, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_BASE,
-+                PNG_FILTER_TYPE_BASE);
- 
-     switch (image->palette->type) {
-     case C256:
-       {
-           int i;
--          info_ptr->color_type = PNG_COLOR_TYPE_PALETTE;
--          info_ptr->bit_depth = image->bytesperpixel * 8;
--          info_ptr->palette = palette;
--          info_ptr->valid |= PNG_INFO_PLTE;
-+          png_color png_palette[257];
-+          int png_num_palette;
-           for (i = 0; i < image->palette->end; i++)
--              info_ptr->palette[i].red = image->palette->rgb[i][0],
--                  info_ptr->palette[i].green = image->palette->rgb[i][1],
--                  info_ptr->palette[i].blue = image->palette->rgb[i][2],
--                  info_ptr->num_palette = image->palette->end;
-+              png_palette[i].red = image->palette->rgb[i][0],
-+                  png_palette[i].green = image->palette->rgb[i][1],
-+                  png_palette[i].blue = image->palette->rgb[i][2],
-+                  png_num_palette = image->palette->end;
-+          png_set_PLTE(png_ptr, info_ptr, png_palette, png_num_palette);
-       }
-       break;
--    case SMALLITER:
--    case LARGEITER:
--    case GRAYSCALE:
--      info_ptr->color_type = PNG_COLOR_TYPE_GRAY;
--      info_ptr->bit_depth = image->bytesperpixel * 8;
--      break;
-     case TRUECOLOR:
-     case TRUECOLOR24:
-     case TRUECOLOR16:
--      info_ptr->color_type = PNG_COLOR_TYPE_RGB;
--      info_ptr->bit_depth = 8;
--      info_ptr->sig_bit.red = 8 - image->palette->info.truec.rprec;
--      info_ptr->sig_bit.green = 8 - image->palette->info.truec.gprec;
--      info_ptr->sig_bit.blue = 8 - image->palette->info.truec.bprec;
-+      sig_bit.red = 8 - image->palette->info.truec.rprec;
-+      sig_bit.green = 8 - image->palette->info.truec.gprec;
-+      sig_bit.blue = 8 - image->palette->info.truec.bprec;
-+      png_set_sBIT(png_ptr, info_ptr, &sig_bit);
-       break;
-     }
--    info_ptr->interlace_type = 0;
-+
-+    png_write_info (png_ptr, info_ptr);
-+
- #ifdef _undefined_
-     png_set_text(png_ptr, info_ptr, comments,
-                sizeof(comments) / sizeof(png_text));
- #endif
- 
--    png_write_info(png_ptr, info_ptr);
-+    png_set_gAMA(png_ptr, info_ptr, 0.5 /* 1.0 */);
-+    png_set_pHYs(png_ptr, info_ptr, (png_uint_32) (100 / image->pixelwidth),
-+               (png_uint_32) (100 / image->pixelheight),
-+               PNG_RESOLUTION_UNKNOWN);
-+
-     /*png_set_filler(png_ptr,0,PNG_FILLER_AFTER); */
-     png_set_packing(png_ptr);
-     if (image->palette->type & (TRUECOLOR | TRUECOLOR24 | TRUECOLOR16))
--      png_set_shift(png_ptr, &(info_ptr->sig_bit));
-+      png_set_shift (png_ptr, &sig_bit);
-     if (*b == 255)
-       png_set_swap(png_ptr);
-     png_set_bgr(png_ptr);

Deleted: extra-i686/xaos.install
===================================================================
--- extra-i686/xaos.install     2013-11-17 22:02:01 UTC (rev 199874)
+++ extra-i686/xaos.install     2013-11-17 22:02:34 UTC (rev 199875)
@@ -1,20 +0,0 @@
-infodir=usr/share/info
-filelist=(xaos.info.gz)
-
-post_install() {
-  [ -x usr/bin/install-info ] || return 0
-  for file in ${filelist[@]}; do
-    install-info $infodir/$file $infodir/dir 2> /dev/null
-  done
-}
-
-post_upgrade() {
-  post_install $1
-}
-
-pre_remove() {
-  [ -x usr/bin/install-info ] || return 0
-  for file in ${filelist[@]}; do
-    install-info --delete $infodir/$file $infodir/dir 2> /dev/null
-  done
-}

Copied: xaos/repos/extra-i686/xaos.install (from rev 199874, 
xaos/trunk/xaos.install)
===================================================================
--- extra-i686/xaos.install                             (rev 0)
+++ extra-i686/xaos.install     2013-11-17 22:02:34 UTC (rev 199875)
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(xaos.info.gz)
+
+post_install() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+  done
+}

Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD       2013-11-17 22:02:01 UTC (rev 199874)
+++ extra-x86_64/PKGBUILD       2013-11-17 22:02:34 UTC (rev 199875)
@@ -1,37 +0,0 @@
-# $Id$
-# Maintainer: Eric Bélanger <e...@archlinux.org>
-
-pkgname=xaos
-pkgver=3.5
-pkgrel=6
-pkgdesc="A fast portable real-time interactive fractal zoomer"
-arch=('i686' 'x86_64')
-url="http://sourceforge.net/projects/xaos/";
-license=('GPL')
-depends=('gsl' 'libpng' 'aalib')
-options=('!makeflags')
-install=xaos.install
-source=(http://downloads.sourceforge.net/sourceforge/xaos/${pkgname}-${pkgver}.tar.gz
 \
-        xaos-3.5-libpng15.patch xaos-3.5-build-fix-i686.patch)
-sha1sums=('6d16a58187fba7276e6bd0547cc2fd6bb073b801'
-          '6c51cb2ee1c5f28973680ffc3a040c2cea65fd33'
-          'd2ea8f0460c79c47fb289a4c2f87fe5c44057f9d')
-
-prepare() {
-  cd ${pkgname}-${pkgver}
-  patch -p0 -i ../xaos-3.5-libpng15.patch
-  if [[ $CARCH == "i686" ]]; then
-    patch -p1 -i ../xaos-3.5-build-fix-i686.patch
-  fi
-}
-
-build() {
-  cd ${pkgname}-${pkgver}
-  ./configure --prefix=/usr --with-gsl --with-aa-driver
-  make
-}
-
-package() {
-  cd ${pkgname}-${pkgver}
-  make DESTDIR="${pkgdir}" install
-}

Copied: xaos/repos/extra-x86_64/PKGBUILD (from rev 199874, xaos/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD                               (rev 0)
+++ extra-x86_64/PKGBUILD       2013-11-17 22:02:34 UTC (rev 199875)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Eric Bélanger <e...@archlinux.org>
+
+pkgname=xaos
+pkgver=3.6
+pkgrel=1
+pkgdesc="A fast portable real-time interactive fractal zoomer"
+arch=('i686' 'x86_64')
+url="http://matek.hu/xaos/";
+license=('GPL')
+depends=('gsl' 'libpng' 'aalib')
+options=('!makeflags')
+install=xaos.install
+source=(http://downloads.sourceforge.net/sourceforge/xaos/${pkgname}-${pkgver}.tar.gz
+        xaos-3.5-build-fix-i686.patch)
+sha1sums=('0c68d25c4f9c8eaf557e37d9e4586a04ab56d7a0'
+          'd2ea8f0460c79c47fb289a4c2f87fe5c44057f9d')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  if [[ $CARCH == "i686" ]]; then
+    patch -p1 -i ../xaos-3.5-build-fix-i686.patch
+  fi
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr --with-gsl --with-aa-driver
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+}

Deleted: extra-x86_64/xaos-3.5-build-fix-i686.patch
===================================================================
--- extra-x86_64/xaos-3.5-build-fix-i686.patch  2013-11-17 22:02:01 UTC (rev 
199874)
+++ extra-x86_64/xaos-3.5-build-fix-i686.patch  2013-11-17 22:02:34 UTC (rev 
199875)
@@ -1,20 +0,0 @@
---- xaos-3.5/src/engine/zoomd.c.orig   2009-07-18 00:50:31.000000000 +0100
-+++ xaos-3.5/src/engine/zoomd.c        2012-05-20 19:04:55.891065437 +0100
-@@ -280,6 +280,7 @@ dosymetry2(void /*@unused@ */ *data, str
- #endif
- #undef bpp1
- 
-+REGISTERS(0)
- static INLINE void fillline(int line)
- {
-     register unsigned char *RESTRICT vbuff = cimage.currlines[line];
---- xaos-3.5/src/engine/zoom.c.fix-build       2009-07-18 00:50:31.000000000 
+0100
-+++ xaos-3.5/src/engine/zoom.c 2012-05-20 19:11:53.625083113 +0100
-@@ -933,6 +933,7 @@ static /*INLINE */ void preparemoveoldpo
- }
- 
- #ifndef USE_i386ASM
-+REGISTERS(0)
- static /*INLINE */ void
- moveoldpoints(void /*@unused@ */ *data1,
-             struct taskinfo /*@unused@ */ *task,

Copied: xaos/repos/extra-x86_64/xaos-3.5-build-fix-i686.patch (from rev 199874, 
xaos/trunk/xaos-3.5-build-fix-i686.patch)
===================================================================
--- extra-x86_64/xaos-3.5-build-fix-i686.patch                          (rev 0)
+++ extra-x86_64/xaos-3.5-build-fix-i686.patch  2013-11-17 22:02:34 UTC (rev 
199875)
@@ -0,0 +1,20 @@
+--- xaos-3.5/src/engine/zoomd.c.orig   2009-07-18 00:50:31.000000000 +0100
++++ xaos-3.5/src/engine/zoomd.c        2012-05-20 19:04:55.891065437 +0100
+@@ -280,6 +280,7 @@ dosymetry2(void /*@unused@ */ *data, str
+ #endif
+ #undef bpp1
+ 
++REGISTERS(0)
+ static INLINE void fillline(int line)
+ {
+     register unsigned char *RESTRICT vbuff = cimage.currlines[line];
+--- xaos-3.5/src/engine/zoom.c.fix-build       2009-07-18 00:50:31.000000000 
+0100
++++ xaos-3.5/src/engine/zoom.c 2012-05-20 19:11:53.625083113 +0100
+@@ -933,6 +933,7 @@ static /*INLINE */ void preparemoveoldpo
+ }
+ 
+ #ifndef USE_i386ASM
++REGISTERS(0)
+ static /*INLINE */ void
+ moveoldpoints(void /*@unused@ */ *data1,
+             struct taskinfo /*@unused@ */ *task,

Deleted: extra-x86_64/xaos-3.5-libpng15.patch
===================================================================
--- extra-x86_64/xaos-3.5-libpng15.patch        2013-11-17 22:02:01 UTC (rev 
199874)
+++ extra-x86_64/xaos-3.5-libpng15.patch        2013-11-17 22:02:34 UTC (rev 
199875)
@@ -1,131 +0,0 @@
-http://code.google.com/p/gnuxaos/issues/detail?id=55
-
---- src/util/png.c
-+++ src/util/png.c
-@@ -3,6 +3,7 @@
- #include <aconfig.h>
- #ifdef USE_PNG
- #include <png.h>
-+#include <zlib.h>
- #endif
- #include <stdlib.h>
- #include <stdio.h>
-@@ -31,6 +32,9 @@
-     png_structp png_ptr;
-     png_infop info_ptr;
-     png_color palette[256];
-+    png_color_8 sig_bit;
-+    int color_type;
-+    int bit_depth;
-     volatile unsigned short a = 255;
-     volatile unsigned char *b = (volatile unsigned char *) &a;
- #ifdef _undefined_
-@@ -59,7 +63,7 @@
-       png_destroy_write_struct(&png_ptr, (png_infopp) NULL);
-       return "No memory to create png info structure";
-     }
--    if (setjmp(png_ptr->jmpbuf)) {
-+    if (setjmp(png_jmpbuf(png_ptr))) {
-       png_destroy_write_struct(&png_ptr, &info_ptr);
-       fclose(file);
-       return strerror(errno);
-@@ -78,57 +82,70 @@
-     png_set_compression_window_bits(png_ptr, 15);
-     png_set_compression_method(png_ptr, 8);
- 
--    info_ptr->width = image->width;
--    info_ptr->height = image->height;
--    /*info_ptr->gamma=1.0; */
--    info_ptr->gamma = 0.5;
--    info_ptr->valid |= PNG_INFO_gAMA | PNG_INFO_pHYs;
--    info_ptr->x_pixels_per_unit = (png_uint_32) (100 / image->pixelwidth);
--    info_ptr->y_pixels_per_unit = (png_uint_32) (100 / image->pixelheight);
-+    switch (image->palette->type)
-+    {
-+    case C256:
-+      color_type = PNG_COLOR_TYPE_PALETTE;
-+      bit_depth = image->bytesperpixel * 8;
-+      break;
-+    case SMALLITER:
-+    case LARGEITER:
-+    case GRAYSCALE:
-+      color_type = PNG_COLOR_TYPE_GRAY;
-+      bit_depth = image->bytesperpixel * 8;
-+      break;
-+    case TRUECOLOR:
-+    case TRUECOLOR24:
-+    case TRUECOLOR16:
-+      color_type = PNG_COLOR_TYPE_RGB;
-+      bit_depth = 8;
-+      break;
-+    }
- 
-+    png_set_IHDR (png_ptr, info_ptr, image->width, image->height, bit_depth,
-+                color_type, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_BASE,
-+                PNG_FILTER_TYPE_BASE);
- 
-     switch (image->palette->type) {
-     case C256:
-       {
-           int i;
--          info_ptr->color_type = PNG_COLOR_TYPE_PALETTE;
--          info_ptr->bit_depth = image->bytesperpixel * 8;
--          info_ptr->palette = palette;
--          info_ptr->valid |= PNG_INFO_PLTE;
-+          png_color png_palette[257];
-+          int png_num_palette;
-           for (i = 0; i < image->palette->end; i++)
--              info_ptr->palette[i].red = image->palette->rgb[i][0],
--                  info_ptr->palette[i].green = image->palette->rgb[i][1],
--                  info_ptr->palette[i].blue = image->palette->rgb[i][2],
--                  info_ptr->num_palette = image->palette->end;
-+              png_palette[i].red = image->palette->rgb[i][0],
-+                  png_palette[i].green = image->palette->rgb[i][1],
-+                  png_palette[i].blue = image->palette->rgb[i][2],
-+                  png_num_palette = image->palette->end;
-+          png_set_PLTE(png_ptr, info_ptr, png_palette, png_num_palette);
-       }
-       break;
--    case SMALLITER:
--    case LARGEITER:
--    case GRAYSCALE:
--      info_ptr->color_type = PNG_COLOR_TYPE_GRAY;
--      info_ptr->bit_depth = image->bytesperpixel * 8;
--      break;
-     case TRUECOLOR:
-     case TRUECOLOR24:
-     case TRUECOLOR16:
--      info_ptr->color_type = PNG_COLOR_TYPE_RGB;
--      info_ptr->bit_depth = 8;
--      info_ptr->sig_bit.red = 8 - image->palette->info.truec.rprec;
--      info_ptr->sig_bit.green = 8 - image->palette->info.truec.gprec;
--      info_ptr->sig_bit.blue = 8 - image->palette->info.truec.bprec;
-+      sig_bit.red = 8 - image->palette->info.truec.rprec;
-+      sig_bit.green = 8 - image->palette->info.truec.gprec;
-+      sig_bit.blue = 8 - image->palette->info.truec.bprec;
-+      png_set_sBIT(png_ptr, info_ptr, &sig_bit);
-       break;
-     }
--    info_ptr->interlace_type = 0;
-+
-+    png_write_info (png_ptr, info_ptr);
-+
- #ifdef _undefined_
-     png_set_text(png_ptr, info_ptr, comments,
-                sizeof(comments) / sizeof(png_text));
- #endif
- 
--    png_write_info(png_ptr, info_ptr);
-+    png_set_gAMA(png_ptr, info_ptr, 0.5 /* 1.0 */);
-+    png_set_pHYs(png_ptr, info_ptr, (png_uint_32) (100 / image->pixelwidth),
-+               (png_uint_32) (100 / image->pixelheight),
-+               PNG_RESOLUTION_UNKNOWN);
-+
-     /*png_set_filler(png_ptr,0,PNG_FILLER_AFTER); */
-     png_set_packing(png_ptr);
-     if (image->palette->type & (TRUECOLOR | TRUECOLOR24 | TRUECOLOR16))
--      png_set_shift(png_ptr, &(info_ptr->sig_bit));
-+      png_set_shift (png_ptr, &sig_bit);
-     if (*b == 255)
-       png_set_swap(png_ptr);
-     png_set_bgr(png_ptr);

Deleted: extra-x86_64/xaos.install
===================================================================
--- extra-x86_64/xaos.install   2013-11-17 22:02:01 UTC (rev 199874)
+++ extra-x86_64/xaos.install   2013-11-17 22:02:34 UTC (rev 199875)
@@ -1,20 +0,0 @@
-infodir=usr/share/info
-filelist=(xaos.info.gz)
-
-post_install() {
-  [ -x usr/bin/install-info ] || return 0
-  for file in ${filelist[@]}; do
-    install-info $infodir/$file $infodir/dir 2> /dev/null
-  done
-}
-
-post_upgrade() {
-  post_install $1
-}
-
-pre_remove() {
-  [ -x usr/bin/install-info ] || return 0
-  for file in ${filelist[@]}; do
-    install-info --delete $infodir/$file $infodir/dir 2> /dev/null
-  done
-}

Copied: xaos/repos/extra-x86_64/xaos.install (from rev 199874, 
xaos/trunk/xaos.install)
===================================================================
--- extra-x86_64/xaos.install                           (rev 0)
+++ extra-x86_64/xaos.install   2013-11-17 22:02:34 UTC (rev 199875)
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(xaos.info.gz)
+
+post_install() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+  done
+}

Reply via email to