freebsd-ports/textproc/sigil/files/patch-ZipArchive
Wen Heping 99c24a832b Sigil is a multi-platform WYSIWYG ebook editor. It is designed to edit books
in ePub format.
* Free and open source software under GPLv3
* Multi-platform: runs on Windows, FreeBSD, Linux and Mac
* Full Unicode support: everything you see in Sigil is in UTF-16
* Full EPUB spec support
* WYSIWYG editing
* Multiple Views: Book View, Code View and Split View
* Metadata editor with full support for all possible metadata entries
(more than 200) with full descriptions for each
* Table Of Contents editor
* Multi-level TOC support
* Book View fully supports the display of any XHTML document possible
under the OPS spec
* SVG support
* Basic XPGT support
* Advanced automatic conversion of all imported documents to Unicode
* Currently imports TXT, HTML and EPUB files; more will be added with time
* Embedded HTML Tidy; all imported documents are thoroughly cleaned;
  changing views cleans the document so no matter how much you screw
  up your code, it will fix it (usually)
* An actually usable user interface

WWW: http://code.google.com/p/sigil/

PR:		ports/150348
Submitted by:	Jonathan Chen <jonc@chen.org.nz>
2010-09-10 06:31:09 +00:00

44 lines
2.1 KiB
Text

diff -ruN /tmp/Sigil-0.2.4-Code/src/ZipArchive/DirEnumerator.cpp ./src/ZipArchive/DirEnumerator.cpp
--- /tmp/Sigil-0.2.4-Code/src/ZipArchive/DirEnumerator.cpp 2010-08-12 17:50:52.000000000 +1200
+++ ./src/ZipArchive/DirEnumerator.cpp 2010-09-07 22:01:02.000000000 +1200
@@ -73,7 +73,7 @@
if (!entry)
break;
CZipString path(m_szCurrentDirectory + entry->d_name);
- #if !defined __APPLE__ && !defined __CYGWIN__ && !defined __NetBSD__
+ #if !defined __APPLE__ && !defined __CYGWIN__ && !defined __NetBSD__ && !defined __FreeBSD__
struct stat64 sStats;
if (stat64(path, &sStats) == -1)
#else
diff -ruN /tmp/Sigil-0.2.4-Code/src/ZipArchive/ZipFile_stl.cpp ./src/ZipArchive/ZipFile_stl.cpp
--- /tmp/Sigil-0.2.4-Code/src/ZipArchive/ZipFile_stl.cpp 2010-08-12 17:50:52.000000000 +1200
+++ ./src/ZipArchive/ZipFile_stl.cpp 2010-09-07 22:01:02.000000000 +1200
@@ -16,7 +16,7 @@
#if (defined _ZIP_IMPL_STL && (!defined _ZIP_FILE_IMPLEMENTATION || _ZIP_FILE_IMPLEMENTATION == ZIP_ZFI_DEFAULT)) || _ZIP_FILE_IMPLEMENTATION == ZIP_ZFI_STL
-#if defined __APPLE__ || defined __CYGWIN__ || defined __NetBSD__
+#if defined __APPLE__ || defined __CYGWIN__ || defined __NetBSD__ || defined __FreeBSD__
#define FILE_FUNCTIONS_64B_BY_DEFAULT
#else
#undef FILE_FUNCTIONS_64B_BY_DEFAULT
diff -ruN /tmp/Sigil-0.2.4-Code/src/ZipArchive/ZipPlatform_lnx.cpp ./src/ZipArchive/ZipPlatform_lnx.cpp
--- /tmp/Sigil-0.2.4-Code/src/ZipArchive/ZipPlatform_lnx.cpp 2010-08-12 17:50:52.000000000 +1200
+++ ./src/ZipArchive/ZipPlatform_lnx.cpp 2010-09-07 22:01:02.000000000 +1200
@@ -16,7 +16,7 @@
#ifdef _ZIP_SYSTEM_LINUX
-#if defined __APPLE__ || defined __CYGWIN__ || defined __NetBSD__
+#if defined __APPLE__ || defined __CYGWIN__ || defined __NetBSD__ || defined __FreeBSD__
#define FILE_FUNCTIONS_64B_BY_DEFAULT
#else
#undef FILE_FUNCTIONS_64B_BY_DEFAULT
@@ -34,7 +34,7 @@
#include <sys/types.h>
-#if defined (__FreeBSD__) || defined (__APPLE__) || defined (__NetBSD__)
+#if defined (__FreeBSD__) || defined (__APPLE__) || defined (__NetBSD__) || defined (__FreeBSD__)
#include <sys/param.h>
#include <sys/mount.h>