From 27dea90f4999b12113b5334752a61d647186697b Mon Sep 17 00:00:00 2001 From: phessler Date: Fri, 9 Oct 2009 22:09:22 +0000 Subject: [PATCH] You are Agent Kate, one of the agents of the secret BlinkenArea special forces, also called the "BlinkenSisters". You have just been assigned to the following mission... From the mission briefing: An accident in the secret high-energy BlinkenArea lab has transfered irreplaceable self-powered pixel hardware to various, random locations in another dimension. Your goal, Agent Kate, is to locate that hardware. We have fitted you with an automated scanner/transmitter that will automatically transfer the pixels back to the lab when you're close to it. Beware that in dimension B15, while beeing still on earth, the scale of things will differ from what you expect. Also, B15 is known to be home to strange creatures that may pose a threat to you. As soon as you have collected all pieces of hardware in one location, you can be transfered to the next location. Good luck, Agent Kate! --- looked at, and "its fun" from landry@ and jasper@ --- games/lostpixels/Makefile | 52 +++++++++++++++++++ games/lostpixels/distinfo | 5 ++ games/lostpixels/patches/patch-CMakeLists_txt | 19 +++++++ .../lostpixels/patches/patch-playersprite_cpp | 29 +++++++++++ games/lostpixels/pkg/DESCR | 22 ++++++++ games/lostpixels/pkg/PLIST | 32 ++++++++++++ 6 files changed, 159 insertions(+) create mode 100644 games/lostpixels/Makefile create mode 100644 games/lostpixels/distinfo create mode 100644 games/lostpixels/patches/patch-CMakeLists_txt create mode 100644 games/lostpixels/patches/patch-playersprite_cpp create mode 100644 games/lostpixels/pkg/DESCR create mode 100644 games/lostpixels/pkg/PLIST diff --git a/games/lostpixels/Makefile b/games/lostpixels/Makefile new file mode 100644 index 00000000000..108a6eb31a9 --- /dev/null +++ b/games/lostpixels/Makefile @@ -0,0 +1,52 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/10/09 22:09:22 phessler Exp $ + +COMMENT = blinkensisters - hunt for the lost pixels + +V = 0.5.3 +DISTNAME = LostPixels-${V}-source-with-addons +PKGNAME = lostpixels-${V} +HOMEPAGE = http://www.blinkensisters.org + +CATEGORIES = games + +# GPL v2 only +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =Yes +PERMIT_DISTFILES_FTP = Yes + +MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=blinkensisters/} + +RUN_DEPENDS = ::lang/lua +LIB_DEPENDS = SDL_net::devel/sdl-net \ + SDL_image::devel/sdl-image \ + SDL_mixer::devel/sdl-mixer \ + SDL_ttf::devel/sdl-ttf \ + ::audio/libogg \ + ::audio/libvorbis + +WANTLIB += SDL X11 Xau Xdmcp Xext Xrandr Xrender c freetype m +WANTLIB += pthread stdc++ + +USE_X11 = Yes +USE_GMAKE = Yes +MODULES += devel/cmake +CONFIGURE_STYLE = cmake +WRKDIST = ${WRKDIR}/blinkensisters/lostpixels/game/software/ + +NO_REGRESS = Yes + +pre-configure: + @perl -pi -e 's,make,${MAKE},g ; s,/usr/local,\$$\{PREFIX},g' \ + ${WRKDIST}/../addons/Makefile + @find ${WRKDIST}/../addons/ -name Makefile -exec \ + perl -pi -e 's,bmfcompress,${WRKDIST}/bmfcompress,g' {} \; + +post-build: + cd ${WRKDIST}/../addons && $(MAKE) all + +post-install: + mv ${PREFIX}/bin/LostPixels ${PREFIX}/bin/lostpixels + cd ${WRKDIST}/../addons && $(MAKE) install + +.include diff --git a/games/lostpixels/distinfo b/games/lostpixels/distinfo new file mode 100644 index 00000000000..fba3a186aa3 --- /dev/null +++ b/games/lostpixels/distinfo @@ -0,0 +1,5 @@ +MD5 (LostPixels-0.5.3-source-with-addons.tar.gz) = KP2uXBMtxj8nzeiQLdw5jA== +RMD160 (LostPixels-0.5.3-source-with-addons.tar.gz) = 2WZEc1PG4SSkb7UceyY30mIFRlQ= +SHA1 (LostPixels-0.5.3-source-with-addons.tar.gz) = s0KeCmYe2EXy88alsLZZkx9VJBA= +SHA256 (LostPixels-0.5.3-source-with-addons.tar.gz) = NlPeE3dR3P2ndz0gSZKY+M7MgjUgc3dO/TjrCAKKNrA= +SIZE (LostPixels-0.5.3-source-with-addons.tar.gz) = 224314099 diff --git a/games/lostpixels/patches/patch-CMakeLists_txt b/games/lostpixels/patches/patch-CMakeLists_txt new file mode 100644 index 00000000000..f4dd7f2f8be --- /dev/null +++ b/games/lostpixels/patches/patch-CMakeLists_txt @@ -0,0 +1,19 @@ +$OpenBSD: patch-CMakeLists_txt,v 1.1.1.1 2009/10/09 22:09:22 phessler Exp $ +--- CMakeLists.txt.orig Sat Dec 6 21:51:54 2008 ++++ CMakeLists.txt Sun Jul 5 21:09:53 2009 +@@ -20,6 +20,7 @@ INCLUDE_DIRECTORIES(. BlinkenBMF/ SDL_gfx/ BlinkenLUA/ + # Fixes a problem on FreeBSD - SDL_stdinc.h includes iconv.h, but that is in + # /usr/local/include/iconv.h, which is not searched for include files... + INCLUDE_DIRECTORIES(/usr/local/include) ++LINK_DIRECTORIES(/usr/X11R6/lib) + + SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake-modules/) + +@@ -136,6 +137,7 @@ ENDIF(USE_THEORA) + TARGET_LINK_LIBRARIES(LostPixels ${SDL_LIBRARY}) + TARGET_LINK_LIBRARIES(LostPixels ${SDLIMAGE_LIBRARY}) + TARGET_LINK_LIBRARIES(LostPixels ${SDLTTF_LIBRARY}) ++TARGET_LINK_LIBRARIES(LostPixels Xdmcp Xau X11 Xrender Xext Xrandr freetype) + + IF(SDLNET_FOUND) + TARGET_LINK_LIBRARIES(LostPixels ${SDLNET_LIBRARY}) diff --git a/games/lostpixels/patches/patch-playersprite_cpp b/games/lostpixels/patches/patch-playersprite_cpp new file mode 100644 index 00000000000..3d59561c826 --- /dev/null +++ b/games/lostpixels/patches/patch-playersprite_cpp @@ -0,0 +1,29 @@ +$OpenBSD: patch-playersprite_cpp,v 1.1.1.1 2009/10/09 22:09:22 phessler Exp $ + +These files are missing in the distribution, so do not use them. + +--- playersprite.cpp.orig Sat Dec 6 21:51:55 2008 ++++ playersprite.cpp Sun Jul 5 21:09:53 2009 +@@ -29,15 +29,15 @@ void initPlayerSprite() { + lastmove = PLAYERSPRITE_NOMOVE; + + // addFGObjGFX returns PSEUDO_FGOBJECTGFXNUM if loading fails +- playerspritegfx[PLAYERSPRITE_NOMOVE] = addFGObjGFX("sister_movenone.bmp", true); ++// playerspritegfx[PLAYERSPRITE_NOMOVE] = addFGObjGFX("sister_movenone.bmp", true); + playerspritegfx[PLAYERSPRITE_LEFT] = addFGObjGFX("sister_moveleft.bmp", true); +- playerspritegfx[PLAYERSPRITE_LEFTUP] = addFGObjGFX("sister_moveleftup.bmp", true); +- playerspritegfx[PLAYERSPRITE_LEFTDOWN] = addFGObjGFX("sister_moveleftdown.bmp", true); ++// playerspritegfx[PLAYERSPRITE_LEFTUP] = addFGObjGFX("sister_moveleftup.bmp", true); ++// playerspritegfx[PLAYERSPRITE_LEFTDOWN] = addFGObjGFX("sister_moveleftdown.bmp", true); + playerspritegfx[PLAYERSPRITE_RIGHT] = addFGObjGFX("sister_moveright.bmp", true); +- playerspritegfx[PLAYERSPRITE_RIGHTUP] = addFGObjGFX("sister_moverightup.bmp", true); +- playerspritegfx[PLAYERSPRITE_RIGHTDOWN] = addFGObjGFX("sister_moverightdown.bmp", true); +- playerspritegfx[PLAYERSPRITE_UP] = addFGObjGFX("sister_moveup.bmp", true); +- playerspritegfx[PLAYERSPRITE_DOWN] = addFGObjGFX("sister_movedown.bmp", true); ++// playerspritegfx[PLAYERSPRITE_RIGHTUP] = addFGObjGFX("sister_moverightup.bmp", true); ++// playerspritegfx[PLAYERSPRITE_RIGHTDOWN] = addFGObjGFX("sister_moverightdown.bmp", true); ++// playerspritegfx[PLAYERSPRITE_UP] = addFGObjGFX("sister_moveup.bmp", true); ++// playerspritegfx[PLAYERSPRITE_DOWN] = addFGObjGFX("sister_movedown.bmp", true); + + playersprite = 0; + if(playerspritegfx[PLAYERSPRITE_LEFT] != PSEUDO_FGOBJECTGFXNUM) { diff --git a/games/lostpixels/pkg/DESCR b/games/lostpixels/pkg/DESCR new file mode 100644 index 00000000000..cb259625a76 --- /dev/null +++ b/games/lostpixels/pkg/DESCR @@ -0,0 +1,22 @@ +You are Agent Kate, one of the agents of the secret BlinkenArea special +forces, also called the "BlinkenSisters". You have just been assigned to +the following mission... + +From the mission briefing: + +An accident in the secret high-energy BlinkenArea lab has transfered +irreplaceable self-powered pixel hardware to various, random locations +in another dimension. + +Your goal, Agent Kate, is to locate that hardware. We have fitted you +with an automated scanner/transmitter that will automatically transfer +the pixels back to the lab when you're close to it. + +Beware that in dimension B15, while beeing still on earth, the scale of +things will differ from what you expect. Also, B15 is known to be home +to strange creatures that may pose a threat to you. + +As soon as you have collected all pieces of hardware in one location, +you can be transfered to the next location. + +Good luck, Agent Kate! diff --git a/games/lostpixels/pkg/PLIST b/games/lostpixels/pkg/PLIST new file mode 100644 index 00000000000..0e6a80b95e9 --- /dev/null +++ b/games/lostpixels/pkg/PLIST @@ -0,0 +1,32 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/10/09 22:09:22 phessler Exp $ +@bin bin/BlinkenPlayer +@bin bin/blpmatrix +@bin bin/blpviewer +@bin bin/bmfcompress +@bin bin/bmfdecompress +@bin bin/bxxviewer +@bin bin/lostpixels +@bin bin/mcufviewer +share/blinkensisters/ +share/blinkensisters/24c3.bmf +share/blinkensisters/Gaposis Outline (BRK).ttf +share/blinkensisters/Gas Huffer Phat.ttf +share/blinkensisters/Georgia.ttf +share/blinkensisters/Ghostmeat.ttf +share/blinkensisters/basedata.bmf +share/blinkensisters/icy.bmf +share/blinkensisters/mz_escape.bmf +share/blinkensisters/mz_moviepack.bmf +share/blinkensisters/mz_pnog.bmf +share/blinkensisters/mz_template.bmf +share/blinkensisters/mz_xmas2007.bmf +share/blinkensisters/s23_ivorytower.bmf +share/blinkensisters/splash.jpg +share/blinkensisters/theme_standard.bmf +share/blinkensisters/theme_xmas2007.bmf +share/doc/blinkensisters/ +share/doc/blinkensisters/AUTHORS +share/doc/blinkensisters/HOWTOPLAY +share/doc/blinkensisters/INSTALL +share/doc/blinkensisters/LICENSE +share/doc/blinkensisters/README