summaryrefslogtreecommitdiffstats
path: root/japanese/canna-lib
diff options
context:
space:
mode:
authormax <max@FreeBSD.org>2002-11-20 05:35:14 +0000
committermax <max@FreeBSD.org>2002-11-20 05:35:14 +0000
commitfaf026bc87acff59f7ca2817717057d46465af13 (patch)
tree58051707ea664cadf620eb191be023af29c1111f /japanese/canna-lib
parent6f1e2d85c326332c7bbbd7bc9a15cf475b7bd19f (diff)
downloadFreeBSD-ports-faf026bc87acff59f7ca2817717057d46465af13.zip
FreeBSD-ports-faf026bc87acff59f7ca2817717057d46465af13.tar.gz
Correctly handle wchar.
Submitted by: AIDA Shinra <aida-s@jcom.home.ne.jp>
Diffstat (limited to 'japanese/canna-lib')
-rw-r--r--japanese/canna-lib/Makefile1
-rw-r--r--japanese/canna-lib/files/patch-al34
2 files changed, 24 insertions, 11 deletions
diff --git a/japanese/canna-lib/Makefile b/japanese/canna-lib/Makefile
index ceb61b8..53097d2 100644
--- a/japanese/canna-lib/Makefile
+++ b/japanese/canna-lib/Makefile
@@ -8,6 +8,7 @@
PORTNAME= Canna
PORTVERSION= 3.6
+PORTREVISION= 1
CATEGORIES= japanese
MASTER_SITES= http://downloads.sourceforge.jp/canna/1425/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
diff --git a/japanese/canna-lib/files/patch-al b/japanese/canna-lib/files/patch-al
index 84d0c41..27876dd 100644
--- a/japanese/canna-lib/files/patch-al
+++ b/japanese/canna-lib/files/patch-al
@@ -1,26 +1,38 @@
---- canna/widedef.h.OLD Sat Oct 26 11:59:11 2002
-+++ canna/widedef.h Sat Oct 26 12:04:56 2002
-@@ -35,7 +35,7 @@
+--- canna/widedef.h.orig Sat Oct 19 17:27:28 2002
++++ canna/widedef.h Tue Nov 19 08:20:30 2002
+@@ -35,7 +35,11 @@
#define WCHAR16
#endif
-#if defined(__FreeBSD__) || defined(__NetBSD__)
-+#if defined(__NetBSD__)
++#ifdef __FreeBSD__
++# include <osreldate.h>
++#endif
++
++#if (defined(__FreeBSD__) && __FreeBSD_version < 500000) || defined(__NetBSD__)
# include <machine/ansi.h>
#endif
-@@ -61,7 +61,13 @@
+@@ -61,7 +65,7 @@
#endif /* !nec_ews_svr2 */
#endif /* HAVE_WCHAR_OPERATION */
-#if defined(__FreeBSD__) || defined(__NetBSD__)
-+#if defined(__FreeBSD__)
++#if (defined(__FreeBSD__) && __FreeBSD_version < 500000) || defined(__NetBSD__)
+ # ifdef _BSD_WCHAR_T_
+ # undef _BSD_WCHAR_T_
+ # ifdef WCHAR16
+@@ -72,6 +76,13 @@
+ # include <stddef.h>
+ # define _WCHAR_T
+ # endif
++#elif defined(__FreeBSD__) && __FreeBSD_version >= 500000
+# ifdef WCHAR16
-+# warning FreeBSD does not use 16-bit wide character types
++typedef unsigned short wchar_t;
++# define _WCHAR_T_DECLARED
+# endif
+# include <stddef.h>
+# define _WCHAR_T
-+#elif defined(__NetBSD__)
- # ifdef _BSD_WCHAR_T_
- # undef _BSD_WCHAR_T_
- # ifdef WCHAR16
+ #else
+ #if !defined(WCHAR_T) && !defined(_WCHAR_T) && !defined(_WCHAR_T_) \
+ && !defined(__WCHAR_T) && !defined(_GCC_WCHAR_T) && !defined(_WCHAR_T_DEFINED)
OpenPOWER on IntegriCloud