summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache>2011-03-15 11:46:09 +0000
committerobache <obache>2011-03-15 11:46:09 +0000
commite1cc9f5ddbaaf85ec233d12eab7625bdd418cd59 (patch)
tree2d00cb40a8cc0828f995e8807a16eeaad96d5f62
parentc5b06a63464dddabec8279bf78b15519c352f447 (diff)
downloadpkgsrc-e1cc9f5ddbaaf85ec233d12eab7625bdd418cd59.tar.gz
* fixes build with png-1.5.
* LICENSE=gnu-gpl-v2 * marked as user-destdir installation ready.
-rw-r--r--emulators/zsnes/Makefile5
-rw-r--r--emulators/zsnes/distinfo3
-rw-r--r--emulators/zsnes/patches/patch-zip_zpng.c14
3 files changed, 20 insertions, 2 deletions
diff --git a/emulators/zsnes/Makefile b/emulators/zsnes/Makefile
index c430d2c5dd4..54a7005fa67 100644
--- a/emulators/zsnes/Makefile
+++ b/emulators/zsnes/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2011/01/13 13:37:37 wiz Exp $
+# $NetBSD: Makefile,v 1.41 2011/03/15 11:46:09 obache Exp $
DISTNAME= zsnes151src
PKGNAME= zsnes-1.51
@@ -10,11 +10,14 @@ EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.zsnes.com/
COMMENT= Super NES emulator
+LICENSE= gnu-gpl-v2
BUILD_DEPENDS+= nasm-[0-9]*:../../devel/nasm
ONLY_FOR_PLATFORM= *-*-i386
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/zsnes_1_51/src
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
diff --git a/emulators/zsnes/distinfo b/emulators/zsnes/distinfo
index b6dbba65b31..d7e9b125fc8 100644
--- a/emulators/zsnes/distinfo
+++ b/emulators/zsnes/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2007/06/06 22:05:45 rillig Exp $
+$NetBSD: distinfo,v 1.15 2011/03/15 11:46:09 obache Exp $
SHA1 (zsnes151src.tar.bz2) = 03df35490870c9950d7010747d0546c8525c0362
RMD160 (zsnes151src.tar.bz2) = 337407bf7e5516bcd7bf310c7b17d6d12a948750
@@ -10,3 +10,4 @@ SHA1 (patch-ad) = 6244778c7f5c3c5d8c4f040760f8243161ae886d
SHA1 (patch-ae) = 81236ed52fe7095f6317f655374234ce17cf30dd
SHA1 (patch-af) = f223476d4ef39a9fe9d60b827fc7c7e2d77f26ee
SHA1 (patch-makefilein) = d75b9b99888106bfbc7c5d12b311527103ceaccd
+SHA1 (patch-zip_zpng.c) = bee7b0635afa9f22a05910b86c4f742296e1f78f
diff --git a/emulators/zsnes/patches/patch-zip_zpng.c b/emulators/zsnes/patches/patch-zip_zpng.c
new file mode 100644
index 00000000000..7d4db385985
--- /dev/null
+++ b/emulators/zsnes/patches/patch-zip_zpng.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-zip_zpng.c,v 1.1 2011/03/15 11:46:09 obache Exp $
+
+* direct access is not allowed with png-1.5, but already set color_type.
+
+--- zip/zpng.c.orig 2007-01-15 23:06:29.000000000 +0000
++++ zip/zpng.c
+@@ -129,7 +129,6 @@ int Png_Dump(const char *filename, unsig
+ png_set_IHDR(png_ptr, info_ptr, width, height, 8,
+ PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE,
+ PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
+- info_ptr->color_type = PNG_COLOR_TYPE_RGB;
+
+ //Allocate an array of scanline pointers
+ row_pointers = (png_bytep*)malloc(height*sizeof(png_bytep));