1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Add puckman 1.0, an unofficial clone of the original Pac-Man game.

PR:		ports/170682
Submitted by:	nemysis@gmx.ch
This commit is contained in:
Boris Samorodov 2012-09-21 13:13:03 +00:00
parent eefc9bd47d
commit 63e9cfee63
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=304631
6 changed files with 94 additions and 0 deletions

View File

@ -705,6 +705,7 @@
SUBDIR += primateplunge
SUBDIR += ptkei
SUBDIR += ptools
SUBDIR += puckman
SUBDIR += pushover
SUBDIR += pvpgn
SUBDIR += py-anki

52
games/puckman/Makefile Normal file
View File

@ -0,0 +1,52 @@
# New Ports collection makefile for puckman
# Date created: 2012-08-08
# Whom: nemysis@gmx.ch
#
# $FreeBSD$
#
PORTNAME= puckman
PORTVERSION= 1.0
CATEGORIES= games
MASTER_SITES= https://github.com/downloads/patapizza/puckman/
MAINTAINER= nemysis@gmx.ch
COMMENT= An unofficial clone of the original Pac-Man game
LICENSE= GPLv3
FETCH_ARGS?= -Fpr
USE_GMAKE= yes
USE_SDL= sdl image gfx
PLIST_FILES= bin/${PORTNAME} \
share/pixmaps/${PORTNAME}.png
PORTDATA= *
PORTDOCS= README.md
.include <bsd.port.options.mk>
do-build:
cd ${WRKSRC} && ${CC} -o ${PORTNAME} ${CFLAGS} \
-DDATA_PREFIX=\"${DATADIR}/\" \
-lm `${SDL_CONFIG} --cflags --libs` -lSDL -lSDL_image -lSDL_gfx -lm puckman.c
do-install:
# Executable
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
# Data
${MKDIR} ${DATADIR}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} images ${DATADIR})
# Pixmaps
${INSTALL_DATA} ${WRKSRC}/images/logo.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
# Documentation
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${DOCSDIR}
.endif
.include <bsd.port.mk>

2
games/puckman/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (puckman-1.0.tar.gz) = 842919da45c77de4c77f66f11dde9f189b1d0d764f2ba76f5b93ee3288e967b2
SIZE (puckman-1.0.tar.gz) = 210385

View File

@ -0,0 +1,24 @@
--- Makefile.orig 2012-08-16 19:32:29.000000000 +0200
+++ Makefile 2012-08-16 20:12:01.000000000 +0200
@@ -1,10 +1,10 @@
-BIN = $(DESTDIR)/usr/bin
-ICONS = $(DESTDIR)/usr/share/puckman/images
-ICON = $(DESTDIR)/usr/share/pixmaps
-SYMICON = $(DESTDIR)/usr/share/icons/hicolor/48x48/apps
+BIN = $(DESTDIR)/usr/local/bin
+ICONS = $(DESTDIR)/usr/local/share/puckman/images
+ICON = $(DESTDIR)/usr/local/share/pixmaps
+SYMICON = $(DESTDIR)/usr/local/share/icons/hicolor/48x48/apps
SHELL = /bin/sh
CC = g++
-prefix = /usr
+prefix = /usr/local
includedir = $(prefix)/include
pacdir = ~/.puckman
puckman: puckman.c
@@ -23,4 +23,4 @@
uninstall:
rm -vr $(ICONS) $(BIN)/puckman $(ICON)/puckman.png $(SYMICON)/puckman.png
- if test -e $(DESTDIR)/usr/share/applications/puckman.desktop; then rm -v $(DESTDIR)/usr/share/applications/puckman.desktop; fi
+ if test -e $(DESTDIR)/usr/local/share/applications/puckman.desktop; then rm -v $(DESTDIR)/usr/local/share/applications/puckman.desktop; fi

View File

@ -0,0 +1,11 @@
--- puckman.c.orig 2012-08-16 19:32:29.000000000 +0200
+++ puckman.c 2012-08-16 20:11:00.000000000 +0200
@@ -29,7 +29,7 @@
#include <SDL_image.h>
#include <SDL_gfxPrimitives.h>
-#define PACPATH "/usr/share/puckman/"
+#define PACPATH "/usr/local/share/puckman/"
#define SCREEN_WIDTH 461
#define SCREEN_HEIGHT 580
#define RIGHT 0

4
games/puckman/pkg-descr Normal file
View File

@ -0,0 +1,4 @@
This game is an unofficial clone of the original Pac-Man game
and is not endorsed by the registered trademark owners Namco, Inc.
WWW: https://github.com/patapizza/puckman