Index: head/games/untahris/Makefile =================================================================== --- head/games/untahris/Makefile (revision 197504) +++ head/games/untahris/Makefile (revision 197505) @@ -1,49 +1,44 @@ # New ports collection makefile for: untahris # Date created: 08 Sep 2006 # Whom: Dmitry Marakasov # # $FreeBSD$ # PORTNAME= untahris -DISTVERSION= 1.0beta -PORTREVISION= 1 +PORTVERSION= 2.0 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} -DISTNAME= ${PORTNAME}-${DISTVERSION}-src +MASTER_SITES= SF +DISTNAME= ${PORTNAME}-${PORTVERSION}-src EXTRACT_SUFX= .tgz MAINTAINER= amdmi3@amdmi3.ru COMMENT= Play several classic fun, simple arcade games in multiplayer mode -USE_SDL= sdl net ttf -USE_GCC= 3.4+ +USE_SDL= sdl net ttf mixer WRKSRC= ${WRKDIR}/${PORTNAME} -PLIST_FILES= bin/untahris %%DATADIR%%/VeraBd.ttf %%DATADIR%%/graph16.unt -PLIST_DIRS= %%DATADIR%% - .include -.if ${OSVERSION} < 500000 -BROKEN= does not compile on 4.x -.endif - post-patch: - @${REINPLACE_CMD} -e 's|verabd.ttf|${DATADIR}/VeraBd.ttf|; \ - s|graph%d|${DATADIR}/graph%d|' ${WRKSRC}/intface.cpp + @${REINPLACE_CMD} -e 's|VeraBd.ttf|${DATADIR}/VeraBd.ttf|; \ + s|graph%d|${DATADIR}/&|; s|[a-z]*\.wav|${DATADIR}/&|' \ + ${WRKSRC}/intface.cpp @${REINPLACE_CMD} -e 's|TPlayground::||' ${WRKSRC}/untahris.h do-build: cd ${WRKSRC} && ${CXX} ${CXXFLAGS} `${SDL_CONFIG} --libs --cflags` \ - -lSDL_net -lSDL_ttf untahris.cpp -o untahris + -lSDL_net -lSDL_ttf -lSDL_mixer untahris.cpp -o untahris do-install: ${INSTALL_PROGRAM} ${WRKSRC}/untahris ${PREFIX}/bin ${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/VeraBd.ttf ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/graph16.unt ${DATADIR} +.for f in VeraBd.ttf graph16.unt *.wav + ${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR} +.endfor + @${ECHO_MSG} + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} .include Property changes on: head/games/untahris/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.4 \ No newline at end of property +1.5 \ No newline at end of property Index: head/games/untahris/distinfo =================================================================== --- head/games/untahris/distinfo (revision 197504) +++ head/games/untahris/distinfo (revision 197505) @@ -1,3 +1,3 @@ -MD5 (untahris-1.0beta-src.tgz) = 567f6b203dc8b7efb26ec7f9eae08fe0 -SHA256 (untahris-1.0beta-src.tgz) = 9c1067c9edb64fce5e23c11de34fe20ed6591e3048388fec89e921f9e350d0a5 -SIZE (untahris-1.0beta-src.tgz) = 70050 +MD5 (untahris-2.0-src.tgz) = 85af8afdbff12f347ec60f2d50fb899c +SHA256 (untahris-2.0-src.tgz) = a1fbe980d2a4842c492bb23878ccaf2e6aa4fa9e46fde209306990942d89b17f +SIZE (untahris-2.0-src.tgz) = 1102921 Property changes on: head/games/untahris/distinfo ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/games/untahris/files/patch-intface.cpp =================================================================== --- head/games/untahris/files/patch-intface.cpp (revision 197504) +++ head/games/untahris/files/patch-intface.cpp (revision 197505) @@ -1,11 +1,20 @@ ---- intface.cpp.orig Mon Sep 4 19:16:15 2006 -+++ intface.cpp Fri Sep 8 06:57:45 2006 -@@ -517,7 +517,7 @@ - thruster.pixel[y][x] = 'P'; +--- intface.cpp.orig Wed May 2 02:41:32 2007 ++++ intface.cpp Thu Aug 9 03:04:09 2007 +@@ -45,7 +45,7 @@ + SDL_Quit(); } - + +- if (Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 8000) != 0) ++ if (Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 8192) != 0) + printf("Failed to initialize audio.\n"); + else { + Mix_AllocateChannels(16); +@@ -653,7 +653,7 @@ + Ic(icBazooka).fillWith("0", d.Res); + Ic(icBazooka).gradFill(d.Res*4/8-1, 0, d.Res*4/8, d.Res*3/4, 0x80FFFFFF, 0xFFFFFFFF); + - char buf[64]; + char buf[1024]; sprintf(buf, "graph%d.unt", d.Res); FILE *f = fopen(buf, "rt"); if(f) { Property changes on: head/games/untahris/files/patch-intface.cpp ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/games/untahris/pkg-message =================================================================== --- head/games/untahris/pkg-message (nonexistent) +++ head/games/untahris/pkg-message (revision 197505) @@ -0,0 +1,5 @@ +ATTENTION! + +If, after being updated to version > 1.0, the game hangs after +pressing in the main menu, please delete ~/.untahris.config +file and restart the game. Property changes on: head/games/untahris/pkg-message ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/games/untahris/pkg-plist =================================================================== --- head/games/untahris/pkg-plist (nonexistent) +++ head/games/untahris/pkg-plist (revision 197505) @@ -0,0 +1,12 @@ +bin/untahris +%%DATADIR%%/VeraBd.ttf +%%DATADIR%%/birth.wav +%%DATADIR%%/blue.wav +%%DATADIR%%/death.wav +%%DATADIR%%/graph16.unt +%%DATADIR%%/green.wav +%%DATADIR%%/hit.wav +%%DATADIR%%/place.wav +%%DATADIR%%/red.wav +%%DATADIR%%/shoot.wav +@dirrm %%DATADIR%% Property changes on: head/games/untahris/pkg-plist ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property