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

(-)games/xshisen/Makefile (-7 / +7 lines)
Lines 10-28 Link Here
10
MAINTAINER=	TsurutaniNaoki@gmail.com
10
MAINTAINER=	TsurutaniNaoki@gmail.com
11
COMMENT=	Shisen-sho puzzle game for X11
11
COMMENT=	Shisen-sho puzzle game for X11
12
12
13
BROKEN=		fails to start
13
LICENSE=	BSD3CLAUSE
14
DEPRECATED=	Broken for more than 6 months
14
LICENSE_FILE=	${WRKSRC}/LICENSE
15
EXPIRATION_DATE=	2016-07-04
16
15
17
USE_XORG=	xpm
16
USE_XORG=	xpm
18
GNU_CONFIGURE=	yes
17
GNU_CONFIGURE=	yes
19
CONFIGURE_ARGS=	--sharedstatedir="${DATADIR}"
18
CONFIGURE_ARGS=	--sharedstatedir="${DATADIR}"
20
INSTALL_TARGET=	install-prog
19
INSTALL_TARGET=	install-prog
21
20
22
.if !defined(WITHOUT_MOTIF)
21
OPTIONS_DEFINE=		MOTIF
23
USES=		motif
22
OPTIONS_DEFAULT=	MOTIF
24
CONFIGURE_ARGS+=	--with-motif
23
25
.endif
24
MOTIF_USES=		motif
25
MOTIF_CONFIGURE_WITH=	motif
26
26
27
post-patch:
27
post-patch:
28
	@${REINPLACE_CMD} -e \
28
	@${REINPLACE_CMD} -e \
(-)games/xshisen/files/patch-Makefile.in (-3 / +3 lines)
Lines 1-6 Link Here
1
--- Makefile.in.orig	2002-07-10 05:16:48.000000000 +0200
1
--- Makefile.in.orig	2002-07-10 03:16:48 UTC
2
+++ Makefile.in	2014-02-02 12:37:24.889535933 +0100
2
+++ Makefile.in
3
@@ -53,24 +53,25 @@
3
@@ -53,24 +53,25 @@ install: install-resource install-prog
4
 
4
 
5
 install-prog: $(PROGS)
5
 install-prog: $(PROGS)
6
 	@echo "XShisen executable directory is " $(bindir)
6
 	@echo "XShisen executable directory is " $(bindir)
(-)games/xshisen/files/patch-body.C (+11 lines)
Line 0 Link Here
1
--- body.C.orig	2002-07-07 07:22:35 UTC
2
+++ body.C
3
@@ -227,7 +227,7 @@ Body::refreshhint(void)
4
     p = new Point[max_c][2];
5
     t = new Point[xsize*ysize/PKIND];
6
 
7
-    if (hintNum == 0)
8
+    if (hintNum != 0)
9
         delete[] hintArray;
10
     for(int i=0; i<PKIND; i++) {
11
         piepos[i]->GetPosArray(t, num);
(-)games/xshisen/files/patch-components.h (-3 / +2 lines)
Lines 1-5 Link Here
1
--- components.h.orig	2002-07-07 16:34:23.000000000 +0900
1
--- components.h.orig	2002-07-07 07:34:23 UTC
2
+++ components.h	2011-12-07 11:31:45.000000000 +0900
2
+++ components.h
3
@@ -61,6 +61,8 @@
3
@@ -61,6 +61,8 @@
4
 #define HNUM  (PKIND*2)      // Number of pairs to pick up
4
 #define HNUM  (PKIND*2)      // Number of pairs to pick up
5
 #define SCORENUM  10         // Number of people to register in high-score
5
 #define SCORENUM  10         // Number of people to register in high-score
Lines 9-12 Link Here
9
 
9
 
10
 class Timer {
10
 class Timer {
11
 private:
11
 private:
12
(-)games/xshisen/files/patch-main.c (-4 / +3 lines)
Lines 1-6 Link Here
1
--- main.C.orig	2002-07-07 16:33:55.000000000 +0900
1
--- main.C.orig	2002-07-07 07:33:55 UTC
2
+++ main.C	2011-12-07 11:56:13.000000000 +0900
2
+++ main.C
3
@@ -210,7 +210,7 @@
3
@@ -210,7 +210,7 @@ kanjiconvert(const char *operation)
4
     char buffer[100], *p;
4
     char buffer[100], *p;
5
     char *(*codeconv)(const char*);
5
     char *(*codeconv)(const char*);
6
 
6
 
Lines 9-12 Link Here
9
     if (strchr(buffer, '-') == NULL) {
9
     if (strchr(buffer, '-') == NULL) {
10
         strcat(buffer, "-" KANJICODE);
10
         strcat(buffer, "-" KANJICODE);
11
     }
11
     }
12
(-)games/xshisen/files/patch-readxpm.C (-3 / +3 lines)
Lines 1-6 Link Here
1
--- readxpm.C.orig	Sun Jul  7 01:34:47 2002
1
--- readxpm.C.orig	2002-07-06 16:34:47 UTC
2
+++ readxpm.C	Thu Sep 15 13:56:38 2005
2
+++ readxpm.C
3
@@ -12,7 +12,7 @@
3
@@ -12,7 +12,7 @@ InitGlobalMahjong(Widget w, const char *
4
   char buffer[1024];
4
   char buffer[1024];
5
 
5
 
6
   for(int i=0; i<PKIND; i++) {
6
   for(int i=0; i<PKIND; i++) {
(-)games/xshisen/files/patch-score.c (-5 / +4 lines)
Lines 1-6 Link Here
1
--- score.C.orig	2002-06-16 00:20:30.000000000 +0900
1
--- score.C.orig	2002-06-15 15:20:30 UTC
2
+++ score.C	2011-12-14 16:34:35.000000000 +0900
2
+++ score.C
3
@@ -73,7 +73,7 @@
3
@@ -73,7 +73,7 @@ ScoreRecord::ReadField(FILE *fp, int kan
4
     date[8] = '\0';
4
     date[8] = '\0';
5
     strncpy(time, &buffer[53], 8);
5
     strncpy(time, &buffer[53], 8);
6
     time[8] = '\0';
6
     time[8] = '\0';
Lines 9-15 Link Here
9
         for(int i=1; i<8; i++) {
9
         for(int i=1; i<8; i++) {
10
             date[i-1] = date[i];
10
             date[i-1] = date[i];
11
         }
11
         }
12
@@ -372,12 +372,12 @@
12
@@ -372,12 +372,12 @@ Score::Register(void)
13
     time_t t;
13
     time_t t;
14
     struct tm *tp;
14
     struct tm *tp;
15
     struct passwd *pw;
15
     struct passwd *pw;
Lines 24-27 Link Here
24
     if ((po = strchr(gecos, ',')) != NULL)
24
     if ((po = strchr(gecos, ',')) != NULL)
25
         *po = 0;
25
         *po = 0;
26
     sprintf(namebuf, "%-8.8s (%s)", pw->pw_name, gecos);
26
     sprintf(namebuf, "%-8.8s (%s)", pw->pw_name, gecos);
27

Return to bug 210793