pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/fbreader fbreader: Adapt for NetBSD POSIX iconv(3)



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4de87ffab211
branches:  trunk
changeset: 403590:4de87ffab211
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Tue Oct 29 14:09:09 2019 +0000

description:
fbreader: Adapt for NetBSD POSIX iconv(3)

diffstat:

 misc/fbreader/Makefile                                                              |   4 +-
 misc/fbreader/distinfo                                                              |   3 +-
 misc/fbreader/patches/patch-zlibrary_core_src_unix_iconv_IConvEncodingConverter.cpp |  20 ++++++++++
 3 files changed, 24 insertions(+), 3 deletions(-)

diffs (59 lines):

diff -r f0cadd0080fa -r 4de87ffab211 misc/fbreader/Makefile
--- a/misc/fbreader/Makefile    Tue Oct 29 12:39:24 2019 +0000
+++ b/misc/fbreader/Makefile    Tue Oct 29 14:09:09 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.72 2019/08/22 12:23:30 ryoon Exp $
+# $NetBSD: Makefile,v 1.73 2019/10/29 14:09:09 kamil Exp $
 
 DISTNAME=      fbreader-sources-0.99.4
 PKGNAME=       ${DISTNAME:S/-sources//}
@@ -23,7 +23,7 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-.if ${OPSYS} == "SunOS" || ${OPSYS} == "NetBSD"
+.if ${OPSYS} == "SunOS"
 CPPFLAGS+=     -DDO_ICONV_CAST
 .endif
 
diff -r f0cadd0080fa -r 4de87ffab211 misc/fbreader/distinfo
--- a/misc/fbreader/distinfo    Tue Oct 29 12:39:24 2019 +0000
+++ b/misc/fbreader/distinfo    Tue Oct 29 14:09:09 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2019/09/10 16:38:31 maya Exp $
+$NetBSD: distinfo,v 1.15 2019/10/29 14:09:09 kamil Exp $
 
 SHA1 (fbreader-sources-0.99.4.tgz) = 7e6f0acbac5d8111fcda14a576ae4fdc93eef292
 RMD160 (fbreader-sources-0.99.4.tgz) = 90825fcb6b026785dd3a7329899b54a02b08e4ed
@@ -15,6 +15,7 @@
 SHA1 (patch-makefiles_qsubdir.mk) = a139410def61e793b193cb54716b9ffb339b5692
 SHA1 (patch-makefiles_subdir.mk) = b9c7d0339e86b9cd6010d4156f35233320a14436
 SHA1 (patch-zlibrary_core_Makefile) = 141543c94a63f9c56858c43f07892e05b060bf01
+SHA1 (patch-zlibrary_core_src_unix_iconv_IConvEncodingConverter.cpp) = 386911122a0a7ec00ee74b4edb04da302433671b
 SHA1 (patch-zlibrary_text_Makefile) = aa7d8a7e3d170e903af704edafe49297e158fd51
 SHA1 (patch-zlibrary_text_src_area_ZLTextAreaStyle.cpp) = ec87bd8072c2385df6e224c7cb1a914bef595f78
 SHA1 (patch-zlibrary_ui_Makefile) = 9586070b53f415ec757fb6648c66c36684e801ea
diff -r f0cadd0080fa -r 4de87ffab211 misc/fbreader/patches/patch-zlibrary_core_src_unix_iconv_IConvEncodingConverter.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/fbreader/patches/patch-zlibrary_core_src_unix_iconv_IConvEncodingConverter.cpp       Tue Oct 29 14:09:09 2019 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-zlibrary_core_src_unix_iconv_IConvEncodingConverter.cpp,v 1.1 2019/10/29 14:09:09 kamil Exp $
+
+Handle NetBSD POSIX iconv(3) switch.
+
+--- zlibrary/core/src/unix/iconv/IConvEncodingConverter.cpp.orig       2012-11-30 12:41:25.000000000 +0000
++++ zlibrary/core/src/unix/iconv/IConvEncodingConverter.cpp
+@@ -23,6 +23,13 @@
+ 
+ #include "IConvEncodingConverter.h"
+ 
++#if defined(__NetBSD__)
++#include <sys/param.h>
++#if !__NetBSD_Prereq__(9,99,17)
++#define DO_ICONV_CAST 1
++#endif
++#endif
++
+ class IConvEncodingConverter : public ZLEncodingConverter {
+ 
+ private:



Home | Main Index | Thread Index | Old Index