Date: Thu, 6 Aug 2009 09:53:04 GMT From: Stas Timokhin <stast@bsdportal.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/137479: New port: games/blockout Message-ID: <200908060953.n769r4e8010006@www.freebsd.org> Resent-Message-ID: <200908061000.n76A0Cd0034942@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 137479 >Category: ports >Synopsis: New port: games/blockout >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Aug 06 10:00:12 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Stas Timokhin >Release: 8.0-CURRENT >Organization: None >Environment: FreeBSD home.stasyan.com 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Fri Jun 12 14:30:16 NOVST 2009 root@home.stasyan.com:/usr/src/sys/i386/compile/EASTERN200906 i386 >Description: Remake of old DOS-game >How-To-Repeat: >Fix: Patch attached with submission follows: # 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: # # blockout # blockout/files # blockout/files/patch-GLFont.cpp # blockout/files/patch-GLSprite.cpp # blockout/files/patch-Makefile # blockout/files/patch-Http.cpp # blockout/files/patch-gif.c # blockout/files/patch-hpng.c # blockout/Makefile # blockout/distinfo # blockout/pkg-descr # blockout/pkg-plist # blockout/pkg-message # echo c - blockout mkdir -p blockout > /dev/null 2>&1 echo c - blockout/files mkdir -p blockout/files > /dev/null 2>&1 echo x - blockout/files/patch-GLFont.cpp sed 's/^X//' >blockout/files/patch-GLFont.cpp << 'd7894426950b3543c6bbebbdf817e1de' X--- BlockOut/GLApp/GLFont.cpp.orig 2009-08-06 15:16:50.000000000 +0700 X+++ BlockOut/GLApp/GLFont.cpp 2009-08-06 15:16:58.000000000 +0700 X@@ -3,7 +3,7 @@ X // ----------------------------------------------- X #include "GLFont.h" X #include <CImage.h> X-#include <malloc.h> X+#include <stdlib.h> X #include <stdio.h> X #include <string.h> X d7894426950b3543c6bbebbdf817e1de echo x - blockout/files/patch-GLSprite.cpp sed 's/^X//' >blockout/files/patch-GLSprite.cpp << '95aac279783ac5f9b3e72768b2fe90a2' X--- BlockOut/GLApp/GLSprite.cpp.orig 2009-08-06 15:17:24.000000000 +0700 X+++ BlockOut/GLApp/GLSprite.cpp 2009-08-06 15:17:46.000000000 +0700 X@@ -3,7 +3,7 @@ X // ----------------------------------------------- X #include "GLSprite.h" X #include <CImage.h> X-#include <malloc.h> X+#include <stdlib.h> X #include <stdio.h> X #include <string.h> X 95aac279783ac5f9b3e72768b2fe90a2 echo x - blockout/files/patch-Makefile sed 's/^X//' >blockout/files/patch-Makefile << '31b52b54565352e87b136ba0c67a6d79' X--- BlockOut/Makefile.orig 2009-08-06 14:55:56.000000000 +0700 X+++ BlockOut/Makefile 2009-08-06 15:39:07.000000000 +0700 X@@ -34,17 +34,17 @@ X X #--------------------------------------------------------------------- X X-SDL_ROOT = /users/pons/test/opengl/SDL X-IMGLIB_ROOT = ../ImageLib X+SDL_ROOT = /usr/local X+IMGLIB_ROOT = ../ImageLib/src X X CXX = g++ X X CXXFLAGS = -g -D_DEBUG -Dlinux -c \ X- -I$(SDL_ROOT)/include/SDL -I$(IMGLIB_ROOT) -I. X+ -I/usr/include -I$(SDL_ROOT)/include/SDL -I$(SDL_ROOT)/include -I$(IMGLIB_ROOT) -I. X X LIBS = -L$(SDL_ROOT)/lib -L$(IMGLIB_ROOT) X X-LFLAGS = $(LIBS) -limagelib -lGL -lGLU -lSDL_mixer -lSDL -lpthread -lm -ldl X+LFLAGS = $(LIBS) -limagelib -lGL -lGLU -lSDL_mixer -lSDL -lpthread -lm X X #-------------------------------------------------------------------- X 31b52b54565352e87b136ba0c67a6d79 echo x - blockout/files/patch-Http.cpp sed 's/^X//' >blockout/files/patch-Http.cpp << 'b94cb3d81ace7c5064e52b079627280e' X--- BlockOut/Http.cpp.orig 2009-08-06 15:04:34.000000000 +0700 X+++ BlockOut/Http.cpp 2009-08-06 15:14:02.000000000 +0700 X@@ -24,11 +24,16 @@ X #include <sys/types.h> X #include <sys/socket.h> X #include <netdb.h> X+#include <netinet/in.h> X X X #define WAIT_FOR_READ 1 X #define WAIT_FOR_WRITE 2 X X+#ifndef ENOSR X+#define ENOSR 9922 X+#endif X+ X // ------------------------------------------------------- X X Http::Http() { b94cb3d81ace7c5064e52b079627280e echo x - blockout/files/patch-gif.c sed 's/^X//' >blockout/files/patch-gif.c << 'd05cc11ef9f39c8a05d6a09c8a160574' X--- ImageLib/src/gif/gif.c.orig 2009-08-06 15:34:25.000000000 +0700 X+++ ImageLib/src/gif/gif.c 2009-08-06 15:34:33.000000000 +0700 X@@ -4,7 +4,7 @@ X /* Use an ultra fast compression method */ X /***************************************************/ X #include <stdio.h> X-#include <malloc.h> X+#include <stdlib.h> X #include <memory.h> X #include "gif.h" X d05cc11ef9f39c8a05d6a09c8a160574 echo x - blockout/files/patch-hpng.c sed 's/^X//' >blockout/files/patch-hpng.c << '241e4fa1a5fad7021d9e5a0dc77e544d' X--- ImageLib/src/png/hpng.c.orig 2009-08-06 15:35:01.000000000 +0700 X+++ ImageLib/src/png/hpng.c 2009-08-06 15:35:10.000000000 +0700 X@@ -1,4 +1,4 @@ X-#include <malloc.h> X+#include <stdlib.h> X #include <math.h> X #include "png/png.h" X #include "hpng.h" 241e4fa1a5fad7021d9e5a0dc77e544d echo x - blockout/Makefile sed 's/^X//' >blockout/Makefile << 'e2d1cf291a205b35beac6d37ba44a377' X# New ports collection makefile for: games/blockout X# Date created: 06 Aug 2009 X# Whom: Stas Timokhin <stast@bsdportal.ru> X# X# $FreeBSD$ X# X XPORTNAME= blockout XPORTVERSION= 2.4 XCATEGORIES= games XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= blockout XDISTNAME= bl24-src-linux-i586 X XMAINTAINER= stast@bsdportal.ru XCOMMENT= BlockOut II is an adaptation of the original Blockout DOS game X XUSE_SDL= mixer sdl XUSE_GMAKE= yes XUSE_GL= gl glu X XWRKSRC= ${WRKDIR}/bl24_lin_src XBUILD_WRKSRC= ${WRKSRC}/BlockOut X Xpre-build: X cd ${WRKSRC}/ImageLib/src && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/BlockOut/blockout ${PREFIX}/bin X ${INSTALL_DATA} ${WRKSRC}/ImageLib/src/libimagelib.a ${PREFIX}/lib X ${MKDIR} ${PREFIX}/share/blockout X ${MKDIR} ${PREFIX}/share/blockout/sounds X ${MKDIR} ${PREFIX}/share/blockout/images X. for i in allPieces background background2 background3 font gameover gameovera marble \ Xmarbleg menuback menucredits menufont menufont2 menupit online onlinea spark sparka sprites spritesa star_crystal_grid X ${INSTALL_DATA} ${WRKSRC}/BlockOut/images/${i}.png ${PREFIX}/share/blockout/images X. endfor X. for s in blub empty empty2 hit level level2 line line2 tchh welldone welldone2 wozz X ${INSTALL_DATA} ${WRKSRC}/BlockOut/sounds/${s}.wav ${PREFIX}/share/blockout/sounds X. endfor X ${INSTALL_DATA} ${WRKSRC}/BlockOut/sounds/music.mp3 ${PREFIX}/share/blockout/sounds Xpost-install: X ${SED} -e "/%%PREFIX%%/s//${PREFIX:S/\//\\\//g}/g" ${PKGMESSAGE}; X X.include <bsd.port.mk> e2d1cf291a205b35beac6d37ba44a377 echo x - blockout/distinfo sed 's/^X//' >blockout/distinfo << 'd0c8299d7c1a4b39b5c78c4ec3428dbe' XMD5 (bl24-src-linux-i586.tar.gz) = 40f899491c38edfbbd984ba732417d7d XSHA256 (bl24-src-linux-i586.tar.gz) = c95766b8d6fce9820e14a23cd1bdea28591c01d8fdf5ece06cca1071f082c088 XSIZE (bl24-src-linux-i586.tar.gz) = 5017393 d0c8299d7c1a4b39b5c78c4ec3428dbe echo x - blockout/pkg-descr sed 's/^X//' >blockout/pkg-descr << '39f3e5a5f24731fbba4ef46dbb8ef218' XBlockOut II is an adaptation of the original Blockout DOS game Xedited by California Dreams(1989). It uses Direct3D on Win32 and XOpenGL on Linux/Unix. BL II has the same features than the original game. XScore calculation is also nearly similar to the original. X XWWW: http://sourceforge.net/projects/blockout/ 39f3e5a5f24731fbba4ef46dbb8ef218 echo x - blockout/pkg-plist sed 's/^X//' >blockout/pkg-plist << '8ad5ab933ffc4cdd480ae968fb83a72c' Xbin/blockout Xlib/libimagelib.a Xshare/blockout/images/allPieces.png Xshare/blockout/images/background.png Xshare/blockout/images/background2.png Xshare/blockout/images/background3.png Xshare/blockout/images/font.png Xshare/blockout/images/gameover.png Xshare/blockout/images/gameovera.png Xshare/blockout/images/marble.png Xshare/blockout/images/marbleg.png Xshare/blockout/images/menuback.png Xshare/blockout/images/menucredits.png Xshare/blockout/images/menufont.png Xshare/blockout/images/menufont2.png Xshare/blockout/images/menupit.png Xshare/blockout/images/online.png Xshare/blockout/images/onlinea.png Xshare/blockout/images/spark.png Xshare/blockout/images/sparka.png Xshare/blockout/images/sprites.png Xshare/blockout/images/spritesa.png Xshare/blockout/images/star_crystal_grid.png Xshare/blockout/sounds/blub.wav Xshare/blockout/sounds/empty.wav Xshare/blockout/sounds/empty2.wav Xshare/blockout/sounds/hit.wav Xshare/blockout/sounds/level.wav Xshare/blockout/sounds/level2.wav Xshare/blockout/sounds/line.wav Xshare/blockout/sounds/line2.wav Xshare/blockout/sounds/music.mp3 Xshare/blockout/sounds/tchh.wav Xshare/blockout/sounds/welldone.wav Xshare/blockout/sounds/welldone2.wav Xshare/blockout/sounds/wozz.wav X@dirrm share/blockout/sounds X@dirrm share/blockout/images X@dirrm share/blockout 8ad5ab933ffc4cdd480ae968fb83a72c echo x - blockout/pkg-message sed 's/^X//' >blockout/pkg-message << '89e7fd1703a19d3da32b5ef2b990450b' X X************************************************************************* X X Set the environment variable: X X BL2_HOME=%%PREFIX%%/share/blockout X X************************************************************************* 89e7fd1703a19d3da32b5ef2b990450b exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908060953.n769r4e8010006>