Index: head/japanese/today/Makefile =================================================================== --- head/japanese/today/Makefile (revision 402697) +++ head/japanese/today/Makefile (revision 402698) @@ -1,47 +1,46 @@ # Created by: ABURAYER Rewsirow # $FreeBSD$ PORTNAME= today PORTVERSION= 2.12 +PORTREVISION= 1 CATEGORIES= japanese games -MASTER_SITES= http://ftp.vector.co.jp/pack/dos/personal/calendar/today/ +MASTER_SITES= http://ftp.vector.co.jp/29/42/476/ DISTNAME= ja-${PORTNAME}-${PORTVERSION} DISTFILES= td${PORTVERSION:S/.//}s.lzh \ td${PORTVERSION:S/.//}m.lzh -MAINTAINER= ports@FreeBSD.org +MAINTAINER= CQG00620@nifty.ne.jp COMMENT= Tells you what day today is - -BROKEN= unfetchable EXTRACT_DEPENDS=nkf:${PORTSDIR}/japanese/nkf NO_WRKSUBDIR= yes USES= lha MAKEFILE= ${FILESDIR}/Makefile OPTIONS_DEFINE= DOCS post-extract: @(cd ${WRKSRC}; lha xiqf utility.lzh src/dayinfo.c ) @${ECHO_MSG} "===> Extracting tbl file for ${DISTNAME}" @(cd ${WRKSRC}; lha xqf tbl.lzh ) @${ECHO_MSG} "===> Converting Kanji code for ${DISTNAME}" @(cd ${WRKSRC}; \ for i in *.c *.h *.doc *.cnf birthday.tbl event*.tbl flower.tbl \ gengo.tbl hist??.tbl history.tbl holiday.tbl magazine.tbl \ monthly.tbl schedule.tbl suffix.tbl week.tbl; \ do \ ${SED} 's/.$$//' $$i | nkf -Se > $$i.tmp ;\ ${MV} -f $$i.tmp $$i ; \ done) post-patch: @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/*.cnf post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/today.doc ${STAGEDIR}${DOCSDIR} .include Index: head/japanese/today/files/patch-cunix.h =================================================================== --- head/japanese/today/files/patch-cunix.h (revision 402697) +++ head/japanese/today/files/patch-cunix.h (revision 402698) @@ -1,21 +1,52 @@ ---- cunix.h.orig 2011-04-16 21:25:44.000000000 +0900 -+++ cunix.h 2011-04-16 21:27:40.000000000 +0900 -@@ -40,7 +40,9 @@ +--- cunix.h.orig 2015-11-23 17:47:06.000000000 +0900 ++++ cunix.h 2015-11-23 17:49:27.000000000 +0900 +@@ -29,6 +29,10 @@ + #include + #endif + ++#if defined(__FreeBSD__) ++#include ++#endif ++ + #define _T_EUC /* EUC 漢字コード */ + + #define _T_MAXROWS 24 /* 画面行数 */ +@@ -40,7 +44,9 @@ #define _T_TMPENV "TEMP" /* temporary 環境変数名 */ #define _T_TMPENV2 "TMPDIR" /* temporary 環境変数名 */ #define _T_TMPDIR "/tmp" /* temporary directory */ +#if 0 #define _T_SEARCH_DEFPATHS "/usr/local/lib/today:/opt/local/lib/today:/usr/local/share/today:/opt/local/share/today:/usr/lib/today:/opt/lib/today:/usr/share/today:/opt/share/today:/usr/local/lib:/opt/local/lib:/usr/lib:/opt/lib" +#endif /* default search path list */ #define _T_HOMEENV "HOME" /* home 環境変数 */ #define _T_PATHENV "PATH" /* path 環境変数名 */ -@@ -60,7 +62,7 @@ +@@ -50,6 +56,15 @@ + /* path name of executed command */ + #define _T_EXECCMDPATH "ExecCmdPath" /* $ExecCmdPath => search_cmdpath */ + #define _T_OPENFLAG (O_RDONLY) ++#if defined(__FreeBSD__) ++#if _BYTE_ORDER == _LITTLE_ENDIAN ++#define _T_LITTLE_ENDIAN ++#define _T_LITTLE_ENDIAN_BITFIELD ++#else ++#define _T_BIG_ENDIAN ++#define _T_BIG_ENDIAN_BITFIELD ++#endif ++#else + #if defined(i386) + #define _T_LITTLE_ENDIAN + #define _T_LITTLE_ENDIAN_BITFIELD +@@ -57,10 +72,11 @@ + #define _T_BIG_ENDIAN + #define _T_BIG_ENDIAN_BITFIELD + #endif ++#endif #define _T_OUTFILE_DEFAULT "%c%y%m%d.today" #define _T_OUTFILE_TMPNAME "%p.today" -#if defined(linux) +#if defined(linux) || defined(__FreeBSD__) #define _T_ACCESS_ROK R_OK #define _T_HAVE_STRTOK_R #define stricmp(a,b) strcasecmp(a,b)