Bug 13392 - New port: columns-1.1
Summary: New port: columns-1.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-08-26 09:30 UTC by Andrey Zakhvatov
Modified: 1999-09-09 02:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Zakhvatov 1999-08-26 09:30:01 UTC
   This is a port of columns-1.1, a nice little implementation of
columns, the game we all used to play on our Game Gears...

WWW: http://www.phreax.net/24h/


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	columns-1.1
#	columns-1.1/Makefile
#	columns-1.1/files
#	columns-1.1/files/md5
#	columns-1.1/patches
#	columns-1.1/patches/patch-aa
#	columns-1.1/patches/patch-ab
#	columns-1.1/pkg
#	columns-1.1/pkg/PLIST
#	columns-1.1/pkg/COMMENT
#	columns-1.1/pkg/DESCR
#
echo c - columns-1.1
mkdir -p columns-1.1 > /dev/null 2>&1
echo x - columns-1.1/Makefile
sed 's/^X//' >columns-1.1/Makefile << 'END-of-columns-1.1/Makefile'
X# New ports collection makefile for:	columns
X# Version required:			1.1
X# Date created:				26 August 1999
X# Whom:					Andrey Zakhvatov
X#
X# $Id$
X#
X
XDISTNAME=	columns-1.1
XCATEGORIES=	games
XMASTER_SITES=	ftp://ftp.phreax.net/
X
XMAINTAINER=	andy@icc.surw.chel.su
X
XLIB_DEPENDS=	SDL.0:${PORTSDIR}/devel/sdl
X
XALL_TARGET=
X
XUSE_X_PREFIX=	yes
X
Xdo-install:
X	@ ${INSTALL_PROGRAM} ${WRKSRC}/columns ${PREFIX}/bin
X	@ ${MKDIR} ${PREFIX}/share/columns
X	@ ${INSTALL_DATA} ${WRKSRC}/*.bmp ${PREFIX}/share/columns
X	@ ${INSTALL_DATA} ${WRKSRC}/*.ofn ${PREFIX}/share/columns
X	@ ${INSTALL_DATA} ${WRKSRC}/*.wav ${PREFIX}/share/columns
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@ ${MKDIR} ${PREFIX}/share/doc/columns
X	@ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/columns
X.endif
X
X.include <bsd.port.mk>
END-of-columns-1.1/Makefile
echo c - columns-1.1/files
mkdir -p columns-1.1/files > /dev/null 2>&1
echo x - columns-1.1/files/md5
sed 's/^X//' >columns-1.1/files/md5 << 'END-of-columns-1.1/files/md5'
XMD5 (columns-1.1.tar.gz) = 0fda1a083e15def49e727e57c5e3ea20
END-of-columns-1.1/files/md5
echo c - columns-1.1/patches
mkdir -p columns-1.1/patches > /dev/null 2>&1
echo x - columns-1.1/patches/patch-aa
sed 's/^X//' >columns-1.1/patches/patch-aa << 'END-of-columns-1.1/patches/patch-aa'
X--- Makefile	Thu Aug  5 15:19:15 1999
X+++ /home/andy/tmp/wrk/Makefile	Thu Aug 26 11:51:51 1999
X@@ -10,7 +10,7 @@
X # run `make dist' to make two distribution tarballs.  Your probably won't need this.
X #
X columns: columns.cc
X-	g++ -g -Wall columns.cc -D_REENTRANT -lSDL -lpthread -ldl -o columns
X+	${CXX} -Wall columns.cc -DPREFIX=\"${PREFIX}\" -D_REENTRANT -I${LOCALBASE}/include -lSDL -pthread -o columns -L${LOCALBASE}/lib
X 
X static: columns.cc
X 	g++ -g columns.cc -D_REENTRANT -D_SDL_STATIC_LIB -lSDL -L/usr/X11R6/lib -lX11 -lXext -lXxf86dga -lXxf86vm -lpthread -o columns
END-of-columns-1.1/patches/patch-aa
echo x - columns-1.1/patches/patch-ab
sed 's/^X//' >columns-1.1/patches/patch-ab << 'END-of-columns-1.1/patches/patch-ab'
X--- columns.cc	Thu Aug  5 15:19:15 1999
X+++ /home/andy/tmp/wrk/columns.cc	Thu Aug 26 12:05:16 1999
X@@ -2,7 +2,9 @@
X 
X #include <stdio.h>
X #include <string.h>
X+#ifndef __FreeBSD__
X #include <malloc.h>
X+#endif
X #include <stdlib.h>
X #include <sys/time.h>
X #include <SDL/SDL.h>
X@@ -924,22 +926,22 @@
X void init_sound ()
X {
X   audio_init ();
X-  drop_wav = audio_load ("drop.wav");
X-  rotate_wav = audio_load ("rotate.wav");
X-  move_wav = audio_load ("move.wav");
X-  gameover_wav = audio_load ("gameover.wav");
X-  hello_wav = audio_load ("hello.wav");
X-  perfect_wav = audio_load ("perfect.wav");
X-  applause_wav = audio_load ("applause.wav");
X-  remove_wav = audio_load ("remove.wav");
X-  level_wav = audio_load ("level.wav");
X-  bye_wav = audio_load ("bye.wav");
X+  drop_wav = audio_load (PREFIX "/share/columns/drop.wav");
X+  rotate_wav = audio_load (PREFIX "/share/columns/rotate.wav");
X+  move_wav = audio_load (PREFIX "/share/columns/move.wav");
X+  gameover_wav = audio_load (PREFIX "/share/columns/gameover.wav");
X+  hello_wav = audio_load (PREFIX "/share/columns/hello.wav");
X+  perfect_wav = audio_load (PREFIX "/share/columns/perfect.wav");
X+  applause_wav = audio_load (PREFIX "/share/columns/applause.wav");
X+  remove_wav = audio_load (PREFIX "/share/columns/remove.wav");
X+  level_wav = audio_load (PREFIX "/share/columns/level.wav");
X+  bye_wav = audio_load (PREFIX "/share/columns/bye.wav");
X }
X 
X /* load bitmaps */
X void init_gfx ()
X {
X-  SDL_Surface *img = SDL_LoadBMP ("tiles.bmp");
X+  SDL_Surface *img = SDL_LoadBMP (PREFIX "/share/columns/tiles.bmp");
X   if (img == NULL) {
X     fprintf (stderr, "couldn't load 'tiles.bmp'\n");
X     exit (1);
X@@ -950,11 +952,11 @@
X   SDL_SetColorKey (tiles, SDL_SRCCOLORKEY, 0);
X 
X   {
X-    FILE *fp = fopen("bg.bmp", "rb");
X+    FILE *fp = fopen(PREFIX "/share/columns/bg.bmp", "rb");
X     background = NULL;
X     if (fp != NULL) {
X       fclose (fp);
X-      img = SDL_LoadBMP ("bg.bmp");
X+      img = SDL_LoadBMP (PREFIX "/share/columns/bg.bmp");
X       if (img == NULL) {
X 	fprintf (stderr, "couldn't load `bg.bmp': %s\n", SDL_GetError ());
X       } else {
X@@ -979,8 +981,8 @@
X void init_fonts ()
X {
X   /* Load font data.  */
X-  small_font = load_font ("small.ofn");
X-  big_font = load_font ("big.ofn");
X+  small_font = load_font (PREFIX "/share/columns/small.ofn");
X+  big_font = load_font (PREFIX "/share/columns/big.ofn");
X   if (small_font == NULL || big_font == NULL) {
X     fprintf (stderr, "couldn't load fonts\n");
X     exit (1);
END-of-columns-1.1/patches/patch-ab
echo c - columns-1.1/pkg
mkdir -p columns-1.1/pkg > /dev/null 2>&1
echo x - columns-1.1/pkg/PLIST
sed 's/^X//' >columns-1.1/pkg/PLIST << 'END-of-columns-1.1/pkg/PLIST'
Xbin/columns
Xshare/columns/applause.wav
Xshare/columns/bg.bmp
Xshare/columns/big.ofn
Xshare/columns/bye.wav
Xshare/columns/drop.wav
Xshare/columns/gameover.wav
Xshare/columns/hello.wav
Xshare/columns/laugh.wav
Xshare/columns/level.wav
Xshare/columns/move.wav
Xshare/columns/perfect.wav
Xshare/columns/remove.wav
Xshare/columns/rotate.wav
Xshare/columns/small.ofn
Xshare/columns/tiles.bmp
Xshare/doc/columns/README
X@dirrm share/columns
X@dirrm share/doc/columns
END-of-columns-1.1/pkg/PLIST
echo x - columns-1.1/pkg/COMMENT
sed 's/^X//' >columns-1.1/pkg/COMMENT << 'END-of-columns-1.1/pkg/COMMENT'
XNice little implementation of columns game for X Window System
END-of-columns-1.1/pkg/COMMENT
echo x - columns-1.1/pkg/DESCR
sed 's/^X//' >columns-1.1/pkg/DESCR << 'END-of-columns-1.1/pkg/DESCR'
XColumns is a nice little implementation of columns, the game we all
Xused to play on our Game Gears...  If you like it, play it.  If you
Xfind any bugs, go ahead and fix them.  If you have some nice ideas
Xconcerning the game, well, just implement them. The source is in
Xthe public domain, so you may do everything you like with it.  If
Xyou have any questions or suggestions, don't hesitate to drop me a
Xline.
X
XAuthor: Daniel (dheck@gmx.net, daniel@phreax.net)
X
XWWW: http://www.phreax.net/24h/
END-of-columns-1.1/pkg/DESCR
exit

Fix: 

Please, check and commit this port.
Comment 1 taoka freebsd_committer freebsd_triage 1999-09-09 02:42:27 UTC
State Changed
From-To: open->closed

Committed, thanks!