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

(-)Makefile (-14 / +9 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	xtet42
4
PORTNAME=	xtet42
5
PORTVERSION=	2.21
5
PORTVERSION=	2.21
6
PORTREVISION=	4
6
PORTREVISION=	5
7
CATEGORIES=	games
7
CATEGORIES=	games
8
MASTER_SITES=	http://utenti.gufi.org/~gmarco/files/distfiles/
8
MASTER_SITES=	http://utenti.gufi.org/~gmarco/files/distfiles/
9
9
Lines 11-35 Link Here
11
COMMENT=	One or two player T*tris game
11
COMMENT=	One or two player T*tris game
12
12
13
GNU_CONFIGURE=	yes
13
GNU_CONFIGURE=	yes
14
CONFIGURE_ARGS=	--enable-setgid=games
14
CONFIGURE_ARGS=	--localstatedir=/var/games
15
USE_XORG=	x11
15
USE_XORG=	x11
16
ALL_TARGET=	${PORTNAME}
16
17
17
post-extract:
18
post-extract:
18
	@${CHMOD} -R u+w ${WRKSRC}
19
	@${CHMOD} -R u+w ${WRKSRC}
19
20
20
post-patch:
21
	@${REINPLACE_CMD} -e 's,^hiscoredir.*,hiscoredir=${DATADIR},' \
22
		${WRKSRC}/Makefile.in
23
24
do-install:
21
do-install:
25
	${MKDIR} ${STAGEDIR}${DATADIR}
22
	${INSTALL_PROGRAM} ${WRKSRC}/xtet42 ${STAGEDIR}${PREFIX}/bin
26
	@${CHMOD} 775 ${STAGEDIR}${DATADIR}
27
	@${STRIP_CMD} ${WRKSRC}/xtet42
28
	${INSTALL} -c -m 755 ${WRKSRC}/xtet42 ${STAGEDIR}${PREFIX}/bin
29
	${INSTALL} -c -m 664 ${WRKSRC}/xtet42.hiscore ${STAGEDIR}${DATADIR}/.xtet42.hiscore
30
	${INSTALL} -c -m 664 ${WRKSRC}/xtet42.hiscore.single ${STAGEDIR}${DATADIR}/.xtet42.hiscore.single
31
	${INSTALL} -c -m 664 /dev/null ${STAGEDIR}${DATADIR}/.xtet42.unlock
32
	${INSTALL} -c -m 664 /dev/null ${STAGEDIR}${DATADIR}/.xtet42.log
33
	${INSTALL_MAN} ${WRKSRC}/xtet42.6 ${STAGEDIR}${MANPREFIX}/man/man6
23
	${INSTALL_MAN} ${WRKSRC}/xtet42.6 ${STAGEDIR}${MANPREFIX}/man/man6
24
	@${MKDIR} ${STAGEDIR}/var/games/xtet42
25
	${INSTALL_DATA} ${WRKSRC}/xtet42.hiscore ${STAGEDIR}/var/games/xtet42/.xtet42.hiscore.sample
26
	${INSTALL_DATA} ${WRKSRC}/xtet42.hiscore.single ${STAGEDIR}/var/games/xtet42/.xtet42.hiscore.single.sample
27
	${INSTALL_DATA} /dev/null ${STAGEDIR}/var/games/xtet42/.xtet42.unlock.sample
28
	${INSTALL_DATA} /dev/null ${STAGEDIR}/var/games/xtet42/.xtet42.log.sample
34
29
35
.include <bsd.port.mk>
30
.include <bsd.port.mk>
(-)files/patch-Makefile.in (-20 lines)
Lines 1-20 Link Here
1
--- Makefile.in.orig	Mon Feb 15 00:36:53 1999
2
+++ Makefile.in	Mon Feb 15 00:41:28 1999
3
@@ -24,7 +24,7 @@
4
 libdir = @libdir@
5
 localstatedir = @localstatedir@
6
 mandir = @mandir@
7
-hiscoredir = $(localstatedir)/$(PACKAGE)
8
+hiscoredir =  $(PREFIX)/lib/X11/$(PACKAGE)
9
 
10
 _Ver		= $(VERSION)
11
 _Lock		= $(hiscoredir)/.xtet42.lock
12
@@ -37,6 +37,8 @@
13
 	-D_Hiscore=\"$(_Hiscore)\" 	-D_Hione=\"$(_Hione)\" \
14
 	-D_Log=\"$(_Log)\" -D_Ver=\"$(_Ver)\"
15
 
16
+
17
+all: xtet42
18
 
19
 xtet42: $(OBJS)
20
 	$(CC) $(LDFLAGS) -o xtet42 $(OBJS)
(-)files/patch-xtete42.c (-31 lines)
Lines 1-31 Link Here
1
--- xtet42.c.orig	Mon Feb 15 00:37:09 1999
2
+++ xtet42.c	Mon Feb 15 00:39:51 1999
3
@@ -67,23 +67,23 @@
4
 #endif
5
 
6
 #ifndef _Lock 
7
-#define _Lock "/local/games/lib/xtet42/.xtet42.lock"
8
+#define _Lock "/usr/X11R6/lib/X11/xtet42/.xtet42.lock"
9
 #endif
10
 
11
 #ifndef _Unlock
12
-#define _Unlock "/local/games/lib/xtet42/.xtet42.unlock"
13
+#define _Unlock "/usr/X11R6/lib/X11/xtet42/.xtet42.unlock"
14
 #endif
15
 
16
 #ifndef _Log
17
-#define _Log "/local/games/lib/xtet42/.xtet42.log"
18
+#define _Log "/usr/X11R6/lib/X11/xtet42/.xtet42.log"
19
 #endif
20
 
21
 #ifndef _Hiscore
22
-#define _Hiscore "/local/games/lib/xtet42/.xtet42.hiscore"
23
+#define _Hiscore "/usr/X11R6/lib/X11/xtet42/.xtet42.hiscore"
24
 #endif
25
 
26
 #ifndef _Hione
27
-#define _Hione "/local/games/lib/xtet42/.xtet42.hiscore.single"
28
+#define _Hione "/usr/X11R6/lib/X11/xtet42/.xtet42.hiscore.single"
29
 #endif
30
 
31
 static int bricks[7][4][4][4]=
(-)pkg-plist (-11 / +6 lines)
Lines 1-12 Link Here
1
@(,games,2755) bin/xtet42
1
man/man6/xtet42.6.gz
2
man/man6/xtet42.6.gz
2
@group games
3
@sample(,games,664) /var/games/xtet42/.xtet42.hiscore.sample
3
@mode 2755
4
@sample(,games,664) /var/games/xtet42/.xtet42.hiscore.single.sample
4
bin/xtet42
5
@sample(,games,664) /var/games/xtet42/.xtet42.log.sample
5
@mode 664
6
@sample(,games,664) /var/games/xtet42/.xtet42.unlock.sample
6
%%DATADIR%%/.xtet42.hiscore.single
7
@dir(,games,775) /var/games/xtet42
7
%%DATADIR%%/.xtet42.hiscore
8
%%DATADIR%%/.xtet42.unlock
9
%%DATADIR%%/.xtet42.log
10
@mode 775
11
@exec install -d -o root -g games -m 755 %D/%%DATADIR%%
12
@dirrm %%DATADIR%%

Return to bug 205631