ports/59007: Update port: games/yahtzee
KATO Tsuguru
tkato at prontomail.com
Thu Nov 6 15:10:30 UTC 2003
>Number: 59007
>Category: ports
>Synopsis: Update port: games/yahtzee
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Nov 06 07:10:15 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 4.9-RELEASE i386
>Organization:
>Environment:
>Description:
- Fix build on -current
- Utilize DATADIR
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/games/yahtzee/Makefile games/yahtzee/Makefile
--- /usr/ports/games/yahtzee/Makefile Thu Oct 16 19:37:35 2003
+++ games/yahtzee/Makefile Thu Nov 6 18:55:00 2003
@@ -19,17 +19,11 @@
WRKSRC= ${WRKDIR}/${PORTNAME}
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 501000
-BROKEN= "Does not compile"
-.endif
-
# Distribution does not include an install target. So here it is.
#
do-install:
${INSTALL_PROGRAM} -m 2755 -o root -g games ${WRKSRC}/yahtzee ${PREFIX}/bin
- ${MKDIR} -m 0755 ${PREFIX}/share/yahtzee
- ${INSTALL_DATA} -m 0664 -o root -g games /dev/null ${PREFIX}/share/yahtzee/yahtzee.sco
+ ${MKDIR} -m 0755 ${DATADIR}
+ ${INSTALL_DATA} -m 0664 -o root -g games /dev/null ${DATADIR}/yahtzee.sco
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/games/yahtzee/files/patch-ac games/yahtzee/files/patch-ac
--- /usr/ports/games/yahtzee/files/patch-ac Fri Jul 4 18:36:40 1997
+++ games/yahtzee/files/patch-ac Thu Nov 6 18:13:25 2003
@@ -1,5 +1,5 @@
---- main.c.orig Sat Jan 25 19:41:13 1992
-+++ main.c Fri Jul 4 13:39:01 1997
+--- main.c.orig Sat Jan 25 17:41:13 1992
++++ main.c Thu Nov 6 18:12:58 2003
@@ -12,7 +12,7 @@
* (c)1992 by orest zborowski
*/
@@ -9,6 +9,33 @@
extern errno;
+@@ -138,7 +138,7 @@
+
+ initscr();
+ if (LINES < 23)
+- abort("Not enough lines on the terminal");
++ _abort("Not enough lines on the terminal");
+ numlines = LINES;
+ clear();
+ mvaddstr(0, 9, header);
+@@ -156,7 +156,7 @@
+ endwin();
+ }
+
+-abort(char *msg)
++_abort(char *msg)
+ {
+ yend();
+ putchar('\n');
+@@ -278,7 +278,7 @@
+ int j;
+
+ if (num < 1 || num > 5)
+- abort("Bad dice loc passed");
++ _abort("Bad dice loc passed");
+
+ for (j = 0; j < 1; ++j)
+ {
@@ -820,6 +820,7 @@
int i;
int topscore;
diff -urN /usr/ports/games/yahtzee/pkg-plist games/yahtzee/pkg-plist
--- /usr/ports/games/yahtzee/pkg-plist Sat Nov 11 15:38:17 2000
+++ games/yahtzee/pkg-plist Thu Nov 6 18:55:36 2003
@@ -1,3 +1,3 @@
bin/yahtzee
-share/yahtzee/yahtzee.sco
- at dirrm share/yahtzee
+%%DATADIR%%/yahtzee.sco
+ at dirrm %%DATADIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list