View | Details | Raw Unified | Return to bug 204801
Collapse All | Expand All

(-)today/Makefile (-4 / +3 lines)
Lines 3-19 Link Here
3
3
4
PORTNAME=	today
4
PORTNAME=	today
5
PORTVERSION=	2.12
5
PORTVERSION=	2.12
6
PORTREVISION=	1
6
CATEGORIES=	japanese games
7
CATEGORIES=	japanese games
7
MASTER_SITES=	http://ftp.vector.co.jp/pack/dos/personal/calendar/today/
8
MASTER_SITES=	http://ftp.vector.co.jp/29/42/476/
8
DISTNAME=	ja-${PORTNAME}-${PORTVERSION}
9
DISTNAME=	ja-${PORTNAME}-${PORTVERSION}
9
DISTFILES=	td${PORTVERSION:S/.//}s.lzh \
10
DISTFILES=	td${PORTVERSION:S/.//}s.lzh \
10
		td${PORTVERSION:S/.//}m.lzh
11
		td${PORTVERSION:S/.//}m.lzh
11
12
12
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	CQG00620@nifty.ne.jp
13
COMMENT=	Tells you what day today is
14
COMMENT=	Tells you what day today is
14
15
15
BROKEN=		unfetchable
16
17
EXTRACT_DEPENDS=nkf:${PORTSDIR}/japanese/nkf
16
EXTRACT_DEPENDS=nkf:${PORTSDIR}/japanese/nkf
18
17
19
NO_WRKSUBDIR=	yes
18
NO_WRKSUBDIR=	yes
(-)today/files/patch-cunix.h (-4 / +35 lines)
Lines 1-6 Link Here
1
--- cunix.h.orig	2011-04-16 21:25:44.000000000 +0900
1
--- cunix.h.orig	2015-11-23 17:47:06.000000000 +0900
2
+++ cunix.h	2011-04-16 21:27:40.000000000 +0900
2
+++ cunix.h	2015-11-23 17:49:27.000000000 +0900
3
@@ -40,7 +40,9 @@
3
@@ -29,6 +29,10 @@
4
 #include <termcap.h>
5
 #endif
6
 
7
+#if defined(__FreeBSD__)
8
+#include <sys/endian.h>
9
+#endif
10
+
11
 #define _T_EUC	/* EUC ´Á»ú¥³¡¼¥É */
12
 
13
 #define _T_MAXROWS			24				/* ²èÌ̹Կô */
14
@@ -40,7 +44,9 @@
4
 #define _T_TMPENV			"TEMP"			/* temporary ´Ä¶­ÊÑ¿ô̾ */
15
 #define _T_TMPENV			"TEMP"			/* temporary ´Ä¶­ÊÑ¿ô̾ */
5
 #define _T_TMPENV2			"TMPDIR"		/* temporary ´Ä¶­ÊÑ¿ô̾ */
16
 #define _T_TMPENV2			"TMPDIR"		/* temporary ´Ä¶­ÊÑ¿ô̾ */
6
 #define _T_TMPDIR			"/tmp"			/* temporary directory */
17
 #define _T_TMPDIR			"/tmp"			/* temporary directory */
Lines 10-16 Link Here
10
 											/* default search path list */
21
 											/* default search path list */
11
 #define _T_HOMEENV			"HOME"			/* home ´Ä¶­ÊÑ¿ô */
22
 #define _T_HOMEENV			"HOME"			/* home ´Ä¶­ÊÑ¿ô */
12
 #define _T_PATHENV			"PATH"			/* path ´Ä¶­ÊÑ¿ô̾ */
23
 #define _T_PATHENV			"PATH"			/* path ´Ä¶­ÊÑ¿ô̾ */
13
@@ -60,7 +62,7 @@
24
@@ -50,6 +56,15 @@
25
 											/* path name of executed command */
26
 #define _T_EXECCMDPATH		"ExecCmdPath"	/* $ExecCmdPath => search_cmdpath */
27
 #define _T_OPENFLAG			(O_RDONLY)
28
+#if defined(__FreeBSD__)
29
+#if _BYTE_ORDER == _LITTLE_ENDIAN
30
+#define _T_LITTLE_ENDIAN
31
+#define _T_LITTLE_ENDIAN_BITFIELD
32
+#else
33
+#define _T_BIG_ENDIAN
34
+#define _T_BIG_ENDIAN_BITFIELD
35
+#endif
36
+#else
37
 #if defined(i386)
38
 #define _T_LITTLE_ENDIAN
39
 #define _T_LITTLE_ENDIAN_BITFIELD
40
@@ -57,10 +72,11 @@
41
 #define _T_BIG_ENDIAN
42
 #define _T_BIG_ENDIAN_BITFIELD
43
 #endif
44
+#endif
14
 #define _T_OUTFILE_DEFAULT	"%c%y%m%d.today"
45
 #define _T_OUTFILE_DEFAULT	"%c%y%m%d.today"
15
 #define _T_OUTFILE_TMPNAME	"%p.today"
46
 #define _T_OUTFILE_TMPNAME	"%p.today"
16
 
47
 

Return to bug 204801