update package libzip

This commit is contained in:
Niels Kristian Bech Jensen 2013-05-24 13:12:57 +10:00 committed by Tony Theodore
parent 0a1e2f4e29
commit bd033a1a29
3 changed files with 10 additions and 9 deletions

View File

@ -1679,7 +1679,7 @@ aptitude -t squeeze-backports install cmake yasm</pre>
</tr>
<tr>
<td id="libzip-package">libzip</td>
<td id="libzip-version">0.10.1</td>
<td id="libzip-version">0.11.1</td>
<td id="libzip-website"><a href="http://www.nih.at/libzip/">libzip</a></td>
</tr>
<tr>

View File

@ -6,16 +6,17 @@ This is a quick&dirty fix.
The bug is being discussed at
http://www.nih.at/listarchive/libzip-discuss/msg00304.html
--- a/lib/zip.h 2012-03-15 10:28:05.000000000 +0100
+++ b/lib/zip.h 2012-12-18 02:05:31.416621709 +0100
@@ -37,8 +37,8 @@
--- a/lib/zip.h 2013-03-19 11:09:51.000000000 +0100
+++ b/lib/zip.h 2013-05-23 16:50:53.881403133 +0200
@@ -37,9 +37,9 @@
#ifndef ZIP_EXTERN
-#ifdef _WIN32
-#define ZIP_EXTERN __declspec(dllimport)
+#ifdef _MSC_VER
+#define ZIP_EXTERN __declspec(dllexport)
#define ZIP_EXTERN __declspec(dllimport)
-#elif defined(__GNUC__) && __GNUC__ >= 4
+#elif (defined(__GNUC__) && __GNUC__ >= 4) && !defined(_WIN32)
#define ZIP_EXTERN __attribute__ ((visibility ("default")))
#else
#define ZIP_EXTERN
#endif

View File

@ -3,9 +3,9 @@
PKG := libzip
$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := 04be811a1919e1063a1f5210671181b7b5416d45
$(PKG)_CHECKSUM := 3c82cdc0de51f06d5e1c60f098d3d9cc0d48f8a7
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := http://www.nih.at/libzip/$($(PKG)_FILE)
$(PKG)_DEPS := gcc zlib