From 1cfcfc47535b33717a36751394c12091cbac653d Mon Sep 17 00:00:00 2001 From: Alex Kozlov Date: Fri, 27 Apr 2012 14:01:14 +0000 Subject: SDL Scavenger A Lode Runner like game Submitted by: nemysis Approved by: eadler (mentor) --- games/sdl_scavenger/Makefile | 59 +++++++++++++++++++++++++++++++ games/sdl_scavenger/distinfo | 2 ++ games/sdl_scavenger/files/patch-Makefile | 16 +++++++++ games/sdl_scavenger/files/patch-scavsaver | 11 ++++++ games/sdl_scavenger/pkg-descr | 3 ++ 5 files changed, 91 insertions(+) create mode 100644 games/sdl_scavenger/Makefile create mode 100644 games/sdl_scavenger/distinfo create mode 100644 games/sdl_scavenger/files/patch-Makefile create mode 100644 games/sdl_scavenger/files/patch-scavsaver create mode 100644 games/sdl_scavenger/pkg-descr (limited to 'games/sdl_scavenger') diff --git a/games/sdl_scavenger/Makefile b/games/sdl_scavenger/Makefile new file mode 100644 index 000000000000..7ced43e73a8f --- /dev/null +++ b/games/sdl_scavenger/Makefile @@ -0,0 +1,59 @@ +# New Ports collection makefile for: SDLScavenger +# Date created: 2012-04-21 +# Whom: nemysis@gmx.ch +# +# $FreeBSD$ +# + +PORTNAME= sdl_scavenger +PORTVERSION= 145.1.2010.11.5 +CATEGORIES= games +MASTER_SITES= SF/sdlscavenger/ +DISTNAME= sdlscav-145.1_2010_11_5 + +MAINTAINER= nemysis@gmx.ch +COMMENT= A Lode Runner like game + +LICENSE= GPLv2 + +WRKSRC= ${WRKDIR}/sdlscav-145 + +USE_ZIP= yes +USE_SDL= sdl image mixer +USE_GMAKE= yes +MAKE_JOBS_SAFE= yes + +PLIST_FILES= bin/sdlscavenger \ + share/pixmaps/${PORTNAME}.png + +PORTDATA= * +PORTDOCS= CREDITS DOC NEW_FEATURES README STRATEGY + +post-patch: + @${REINPLACE_CMD} -e 's|data:/usr/local/games/scavenger|data:${DATADIR}/data|' \ + ${WRKSRC}/names.h + +do-build: + @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE}) + +do-install: +# Executable + ${INSTALL_PROGRAM} ${WRKSRC}/sdlscav ${PREFIX}/bin/sdlscavenger + +post-install: +# Pixmaps + ${CP} ${WRKSRC}/data/scav.png ${PREFIX}/share/pixmaps/${PORTNAME}.png + +# Data + ${MKDIR} ${DATADIR} + @(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR}) + +# Documentations +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + +.include diff --git a/games/sdl_scavenger/distinfo b/games/sdl_scavenger/distinfo new file mode 100644 index 000000000000..d8c50fa66980 --- /dev/null +++ b/games/sdl_scavenger/distinfo @@ -0,0 +1,2 @@ +SHA256 (sdlscav-145.1_2010_11_5.zip) = 6a938dc6ca99bd3911bebfe0d0016eed3acf578da57f1f0a4df36380b1929c49 +SIZE (sdlscav-145.1_2010_11_5.zip) = 565868 diff --git a/games/sdl_scavenger/files/patch-Makefile b/games/sdl_scavenger/files/patch-Makefile new file mode 100644 index 000000000000..cc559614e6c5 --- /dev/null +++ b/games/sdl_scavenger/files/patch-Makefile @@ -0,0 +1,16 @@ +Index: Makefile +@@ -1,12 +1,9 @@ +-CC = gcc + ###CFLAGS = -Wall -O2 -I/usr/local/include/SDL -I/usr/include/SDL -D_REENTRANT +-CFLAGS = -O2 `sdl-config --cflags` ++CFLAGS += `sdl-config --cflags` + + sdlscav: scav.o gfx.o sound.o edit.o anim.o + ### gcc -o sdlscav scav.o gfx.o sound.o edit.o anim.o -lSDL -ldl -lpthread +- gcc -o sdlscav scav.o gfx.o sound.o edit.o anim.o `sdl-config --libs` +- install -m 0755 -d $$HOME/.scavenger +- install -m 0644 data/*rc $$HOME/.scavenger ++ ${CC} -o sdlscav scav.o gfx.o sound.o edit.o anim.o `sdl-config --libs` + + scav.o: scav.c scav.h names.h edit.h anim.h gfx.h sound.h + diff --git a/games/sdl_scavenger/files/patch-scavsaver b/games/sdl_scavenger/files/patch-scavsaver new file mode 100644 index 000000000000..05737a753d2b --- /dev/null +++ b/games/sdl_scavenger/files/patch-scavsaver @@ -0,0 +1,11 @@ +--- scavsaver.orig 2005-01-23 08:52:00.000000000 +0100 ++++ scavsaver 2012-04-24 01:05:13.000000000 +0200 +@@ -1,6 +1,6 @@ +-#!/bin/bash ++#!/bin/sh + #This script turns off the screen saver, runs scavenger with all its parameters, + #then turns the screen saver back on when scavenger exits. + xset -dpms +-sdlscav $* ++sdlscavenger $* + xset +dpms diff --git a/games/sdl_scavenger/pkg-descr b/games/sdl_scavenger/pkg-descr new file mode 100644 index 000000000000..ae53b2258a5f --- /dev/null +++ b/games/sdl_scavenger/pkg-descr @@ -0,0 +1,3 @@ +SDL Scavenger A Lode Runner like game. + +WWW: http://sourceforge.net/projects/sdlscavenger/ -- cgit v1.2.3