From owner-freebsd-ports Thu Aug 26 1:30:30 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 1867915C2B for <freebsd-ports@FreeBSD.org>; Thu, 26 Aug 1999 01:30:10 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id BAA75036; Thu, 26 Aug 1999 01:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from icc.surw.chel.su (surw.chel.su [195.54.2.162]) by hub.freebsd.org (Postfix) with ESMTP id 369C415C2B for <FreeBSD-gnats-submit@freebsd.org>; Thu, 26 Aug 1999 01:19:47 -0700 (PDT) (envelope-from andy@icc.surw.chel.su) Received: (from andy@localhost) by icc.surw.chel.su (8.9.2/8.8.8) id MAA84268; Thu, 26 Aug 1999 12:19:40 +0400 (MSD) (envelope-from andy) Message-Id: <199908260819.MAA84268@icc.surw.chel.su> Date: Thu, 26 Aug 1999 12:19:40 +0400 (MSD) From: Andrey Zakhvatov <andy@icc.surw.chel.su> Reply-To: andy@icc.surw.chel.su To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/13392: New port: columns-1.1 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 13392 >Category: ports >Synopsis: New port: columns-1.1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Aug 26 01:30:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Andrey Zakhvatov >Release: FreeBSD 3.1-RELEASE i386 >Organization: South Ural Railway ICC >Environment: >Description: 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 >How-To-Repeat: >Fix: Please, check and commit this port. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message