summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-05-05 14:54:33 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-05-05 14:57:41 +0000
commitfd595fa6fb507fc70865eee020a307a02d182cef (patch)
tree1f5ae17b1d60b8b594e2b34ed1efa2ef905f4fed
parente5ab44d7e4883c6866238ff45489c3477bd9bc76 (diff)
downloadaports-fd595fa6fb507fc70865eee020a307a02d182cef.tar.bz2
aports-fd595fa6fb507fc70865eee020a307a02d182cef.tar.xz
testing/wine: upgrade to 1.1.43
-rw-r--r--testing/wine/APKBUILD13
-rw-r--r--testing/wine/libpng14.patch76
2 files changed, 5 insertions, 84 deletions
diff --git a/testing/wine/APKBUILD b/testing/wine/APKBUILD
index 0f1a2bda5..11945826c 100644
--- a/testing/wine/APKBUILD
+++ b/testing/wine/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=wine
-pkgver=1.1.38
-pkgrel=1
+pkgver=1.1.43
+pkgrel=0
pkgdesc="A compatibility layer for running Windows programs"
url="http://www.winehq.com"
license="LGPL"
@@ -11,13 +11,11 @@ makedepends="fontconfig-dev openldap-dev libxslt-dev libxxf86dga-dev
libpng-dev jpeg-dev freetype-dev"
# lcms
source="http://ibiblio.org/pub/linux/system/emulators/$pkgname/$pkgname-$pkgver.tar.bz2
- dn_skipname.patch
- libpng14.patch"
+ dn_skipname.patch"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
- patch -p1 -i "$srcdir"/libpng14.patch || return 1
patch -p1 -i "$srcdir"/dn_skipname.patch || return 1
}
@@ -34,6 +32,5 @@ package() {
make prefix="$pkgdir"/usr install || return 1
mkdir -p "$pkgdir"/etc/wine
}
-md5sums="ef5947bcb9667b75b8de4a2ce16d0ec2 wine-1.1.38.tar.bz2
-6ebeaa64eddf97be3267db236ce84b71 dn_skipname.patch
-51f78b18168d5abd78411e9e66458d55 libpng14.patch"
+md5sums="78e3c8d8d39625d7959ffe070a59028d wine-1.1.43.tar.bz2
+6ebeaa64eddf97be3267db236ce84b71 dn_skipname.patch"
diff --git a/testing/wine/libpng14.patch b/testing/wine/libpng14.patch
deleted file mode 100644
index 14f6ddc07..000000000
--- a/testing/wine/libpng14.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-diff --git a/programs/winemenubuilder/winemenubuilder.c b/programs/winemenubuilder/winemenubuilder.c
-index e14fe81..62165f6 100644
---- a/programs/winemenubuilder/winemenubuilder.c
-+++ b/programs/winemenubuilder/winemenubuilder.c
-@@ -188,8 +188,10 @@ static void *libpng_handle;
- MAKE_FUNCPTR(png_create_info_struct);
- MAKE_FUNCPTR(png_create_write_struct);
- MAKE_FUNCPTR(png_destroy_write_struct);
-+MAKE_FUNCPTR(png_get_error_ptr);
- MAKE_FUNCPTR(png_init_io);
- MAKE_FUNCPTR(png_set_bgr);
-+MAKE_FUNCPTR(png_set_error_fn);
- MAKE_FUNCPTR(png_set_text);
- MAKE_FUNCPTR(png_set_IHDR);
- MAKE_FUNCPTR(png_write_end);
-@@ -209,8 +211,10 @@ static void *load_libpng(void)
- LOAD_FUNCPTR(png_create_info_struct);
- LOAD_FUNCPTR(png_create_write_struct);
- LOAD_FUNCPTR(png_destroy_write_struct);
-+ LOAD_FUNCPTR(png_get_error_ptr);
- LOAD_FUNCPTR(png_init_io);
- LOAD_FUNCPTR(png_set_bgr);
-+ LOAD_FUNCPTR(png_set_error_fn);
- LOAD_FUNCPTR(png_set_IHDR);
- LOAD_FUNCPTR(png_set_text);
- LOAD_FUNCPTR(png_write_end);
-@@ -221,6 +225,23 @@ static void *load_libpng(void)
- return libpng_handle;
- }
-
-+static void user_error_fn(png_structp png_ptr, png_const_charp error_message)
-+{
-+ jmp_buf *pjmpbuf;
-+
-+ /* This uses setjmp/longjmp just like the default. We can't use the
-+ * default because there's no way to access the jmp buffer in the png_struct
-+ * that works in 1.2 and 1.4 and allows us to dynamically load libpng. */
-+ WINE_ERR("PNG error: %s\n", wine_dbgstr_an(error_message, -1));
-+ pjmpbuf = ppng_get_error_ptr(png_ptr);
-+ longjmp(*pjmpbuf, 1);
-+}
-+
-+static void user_warning_fn(png_structp png_ptr, png_const_charp warning_message)
-+{
-+ WINE_WARN("PNG warning: %s\n", wine_dbgstr_an(warning_message, -1));
-+}
-+
- static BOOL SaveIconResAsPNG(const BITMAPINFO *pIcon, const char *png_filename, LPCWSTR commentW)
- {
- static const char comment_key[] = "Created from";
-@@ -234,6 +255,7 @@ static BOOL SaveIconResAsPNG(const BITMAPINFO *pIcon, const char *png_filename,
- int nWidth = pIcon->bmiHeader.biWidth;
- int nHeight = pIcon->bmiHeader.biHeight;
- int nBpp = pIcon->bmiHeader.biBitCount;
-+ jmp_buf jmpbuf;
-
- switch (nBpp)
- {
-@@ -306,12 +328,12 @@ static BOOL SaveIconResAsPNG(const BITMAPINFO *pIcon, const char *png_filename,
- !(info_ptr = ppng_create_info_struct(png_ptr)))
- goto error;
-
-- if (setjmp(png_jmpbuf(png_ptr)))
-+ if (setjmp(jmpbuf))
- {
- /* All future errors jump here */
-- WINE_ERR("png error\n");
- goto error;
- }
-+ ppng_set_error_fn(png_ptr, &jmpbuf, user_error_fn, user_warning_fn);
-
- ppng_init_io(png_ptr, fp);
- ppng_set_IHDR(png_ptr, info_ptr, nWidth, nHeight, 8,
---
-1.6.3.3
-