Date: Wed, 14 Jul 2004 01:30:31 +0900 From: KATO Tsuguru <tkato432@yahoo.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/69001: Update port: games/3dpong to 0.5 Message-ID: <20040714013031.43ad8593.tkato432@yahoo.com> Resent-Message-ID: <200407131640.i6DGeJv4018440@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 69001 >Category: ports >Synopsis: Update port: games/3dpong to 0.5 >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: Tue Jul 13 16:40:18 GMT 2004 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 4.10-RELEASE-p2 i386 >Organization: >Environment: >Description: - Update to version 0.5 Remove file: files/patch-aa files/patch-ab >How-To-Repeat: >Fix: diff -urN /usr/ports/games/3dpong/Makefile games/3dpong/Makefile --- /usr/ports/games/3dpong/Makefile Wed Aug 27 02:43:47 2003 +++ games/3dpong/Makefile Mon Jul 12 01:02:31 2004 @@ -6,7 +6,7 @@ # PORTNAME= 3dpong -PORTVERSION= 0.4 +PORTVERSION= 0.5 CATEGORIES= games MASTER_SITES= ftp://ftp.sonic.net/pub/users/nbs/unix/x/3dpong/src/ @@ -15,11 +15,13 @@ USE_X_PREFIX= yes USE_REINPLACE= yes -MAKEFILE= makefile +USE_GMAKE= yes +MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -I${X11BASE}/include" \ + XLIB="-L${X11BASE}/lib -lX11" post-patch: - @${REINPLACE_CMD} -e 's. chmod . ${CHMOD} .g' \ - ${WRKSRC}/makefile + @${REINPLACE_CMD} -e \ + 's|cat sounds/|cat ${DATADIR}/|g' ${WRKSRC}/src/3dpong.c do-install: ${INSTALL_PROGRAM} ${WRKSRC}/3dpong ${PREFIX}/bin @@ -27,7 +29,9 @@ ${INSTALL_DATA} ${WRKSRC}/sounds/*.au ${DATADIR} .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR} +.for file in AUTHORS.txt CHANGES.txt INSTALL.txt README.txt TODO.txt + ${INSTALL_DATA} ${WRKSRC}/docs/${file} ${DOCSDIR} +.endfor .endif .include <bsd.port.mk> diff -urN /usr/ports/games/3dpong/distinfo games/3dpong/distinfo --- /usr/ports/games/3dpong/distinfo Thu Jan 29 20:25:02 2004 +++ games/3dpong/distinfo Mon Jul 12 00:22:27 2004 @@ -1,2 +1,2 @@ -MD5 (3dpong-0.4.tar.gz) = 9f90508b260b43f6cb6514b18fb17acb -SIZE (3dpong-0.4.tar.gz) = 33910 +MD5 (3dpong-0.5.tar.gz) = 91594c0fd5def93053d911e037f5a383 +SIZE (3dpong-0.5.tar.gz) = 37004 diff -urN /usr/ports/games/3dpong/files/patch-aa games/3dpong/files/patch-aa --- /usr/ports/games/3dpong/files/patch-aa Mon Jun 11 08:34:38 2001 +++ games/3dpong/files/patch-aa Thu Jan 1 09:00:00 1970 @@ -1,93 +0,0 @@ ---- makefile.orig Sat Mar 14 20:43:34 1998 -+++ makefile Sun Jun 10 17:32:36 2001 -@@ -11,11 +11,28 @@ - - # Makefile user-definable variables - --CC=gcc -I/usr/X11R6/include -+# C compiler -+CC?=cc -+ -+# C compiler options -+CFLAGS?=-Wall -+ -+# X Window base directory -+X11BASE?=/usr/X11R6 -+ -+# Include directory -+INCLUDE=-I$(X11BASE)/include -+ -+# Installation directory -+PREFIX?=$(X11BASE) -+ -+# Defines -+DEFINE=-DPREFIX=\"$(PREFIX)\" -+ - MATHLIB=-lm - --# adjust according to target --XLIB=-L/usr/X11R6/lib -lX11 -+# X library -+XLIB=-L$(X11BASE)/lib -lX11 - - # uncomment for sunos/solaris - #XLIB=-L/usr/openwin/lib -lX11 -@@ -33,7 +50,7 @@ - # Makefile commands: - - all: 3dpong -- chmod 755 go handball sounds -+ chmod 755 sounds - chmod 644 *.c *.h makefile sounds/*.au *.txt - - clean: -@@ -43,7 +60,7 @@ - # Application: - - 3dpong: $(OBJECTS) -- $(CC) $(OBJECTS) $(XLIB) $(MATHLIB) -o 3dpong -+ $(CC) $(CFLAGS) $(OBJECTS) $(XLIB) $(MATHLIB) -o 3dpong - chmod 755 3dpong - strip 3dpong - -@@ -52,31 +69,31 @@ - - 3dpong.o: 3dpong.c window.h connect.h hints.h visual.h gc.h color.h \ - randnum.h text.h -- $(CC) 3dpong.c -c -+ $(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) 3dpong.c -c - - - # Library objects: - - window.o: window.c window.h -- $(CC) window.c -c -+ $(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) window.c -c - - connect.o: connect.c connect.h -- $(CC) connect.c -c -+ $(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) connect.c -c - - hints.o: hints.c hints.h -- $(CC) hints.c -c -+ $(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) hints.c -c - - visual.o: visual.c visual.h -- $(CC) visual.c -c -+ $(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) visual.c -c - - gc.o: gc.c gc.h -- $(CC) gc.c -c -+ $(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) gc.c -c - - color.o: color.c color.h -- $(CC) color.c -c -+ $(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) color.c -c - - randnum.o: randnum.c randnum.h -- $(CC) randnum.c -c -+ $(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) randnum.c -c - - text.o: text.c text.h -- $(CC) text.c -c -+ $(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) text.c -c diff -urN /usr/ports/games/3dpong/files/patch-ab games/3dpong/files/patch-ab --- /usr/ports/games/3dpong/files/patch-ab Mon Apr 27 12:51:05 1998 +++ games/3dpong/files/patch-ab Thu Jan 1 09:00:00 1970 @@ -1,11 +0,0 @@ ---- 3dpong.c Mon Jan 26 20:33:47 1998 -+++ /home/andy/tmp/wrk/3dpong.c Tue Mar 10 20:58:20 1998 -@@ -1651,7 +1651,7 @@ - - if (use_sound == 1) - { -- sprintf(cmd, "/bin/cat sounds/%s.au > /dev/audio &", aufile); -+ sprintf(cmd, "/bin/cat " PREFIX "/share/3dpong/%s.au > /dev/audio &", aufile); - - system(cmd); - } diff -urN /usr/ports/games/3dpong/pkg-descr games/3dpong/pkg-descr --- /usr/ports/games/3dpong/pkg-descr Mon Jul 12 02:04:13 1999 +++ games/3dpong/pkg-descr Mon Jul 12 00:22:14 2004 @@ -1,7 +1,7 @@ - 3D Pong is an X Window game for 1 or 2 players. It's a 3D game based -on the first arcade game, "Pong." Like "Pong," it's a game played with -a ball and paddles. The object is to hit the ball and get it in the -other player's goal. Use your paddle to deflect the ball and keep it +3D Pong is an X Window game for 1 or 2 players. It's a 3D game based +on the first arcade game, "Pong." Like "Pong," it's a game played with +a ball and paddles. The object is to hit the ball and get it in the +other player's goal. Use your paddle to deflect the ball and keep it from getting in your goal. WWW: http://www.newbreedsoftware.com/3dpong/ diff -urN /usr/ports/games/3dpong/pkg-plist games/3dpong/pkg-plist --- /usr/ports/games/3dpong/pkg-plist Wed Aug 27 02:43:48 2003 +++ games/3dpong/pkg-plist Mon Jul 12 01:07:48 2004 @@ -2,6 +2,10 @@ %%DATADIR%%/hit.au %%DATADIR%%/score.au %%DATADIR%%/wall.au +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS.txt +%%PORTDOCS%%%%DOCSDIR%%/CHANGES.txt +%%PORTDOCS%%%%DOCSDIR%%/INSTALL.txt %%PORTDOCS%%%%DOCSDIR%%/README.txt +%%PORTDOCS%%%%DOCSDIR%%/TODO.txt %%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm %%DATADIR%% >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040714013031.43ad8593.tkato432>