From owner-svn-ports-head@FreeBSD.ORG Fri Sep 21 13:13:03 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBD28106564A; Fri, 21 Sep 2012 13:13:03 +0000 (UTC) (envelope-from bsam@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9D4E28FC12; Fri, 21 Sep 2012 13:13:03 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8LDD31b039766; Fri, 21 Sep 2012 13:13:03 GMT (envelope-from bsam@svn.freebsd.org) Received: (from bsam@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8LDD3SU039759; Fri, 21 Sep 2012 13:13:03 GMT (envelope-from bsam@svn.freebsd.org) Message-Id: <201209211313.q8LDD3SU039759@svn.freebsd.org> From: Boris Samorodov Date: Fri, 21 Sep 2012 13:13:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r304631 - in head/games: . puckman puckman/files X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2012 13:13:03 -0000 Author: bsam Date: Fri Sep 21 13:13:03 2012 New Revision: 304631 URL: http://svn.freebsd.org/changeset/ports/304631 Log: Add puckman 1.0, an unofficial clone of the original Pac-Man game. PR: ports/170682 Submitted by: nemysis@gmx.ch Added: head/games/puckman/ head/games/puckman/Makefile (contents, props changed) head/games/puckman/distinfo (contents, props changed) head/games/puckman/files/ head/games/puckman/files/patch-Makefile (contents, props changed) head/games/puckman/files/patch-puckman.c (contents, props changed) head/games/puckman/pkg-descr (contents, props changed) Modified: head/games/Makefile Modified: head/games/Makefile ============================================================================== --- head/games/Makefile Fri Sep 21 13:10:23 2012 (r304630) +++ head/games/Makefile Fri Sep 21 13:13:03 2012 (r304631) @@ -705,6 +705,7 @@ SUBDIR += primateplunge SUBDIR += ptkei SUBDIR += ptools + SUBDIR += puckman SUBDIR += pushover SUBDIR += pvpgn SUBDIR += py-anki Added: head/games/puckman/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/puckman/Makefile Fri Sep 21 13:13:03 2012 (r304631) @@ -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 + +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 Added: head/games/puckman/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/puckman/distinfo Fri Sep 21 13:13:03 2012 (r304631) @@ -0,0 +1,2 @@ +SHA256 (puckman-1.0.tar.gz) = 842919da45c77de4c77f66f11dde9f189b1d0d764f2ba76f5b93ee3288e967b2 +SIZE (puckman-1.0.tar.gz) = 210385 Added: head/games/puckman/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/puckman/files/patch-Makefile Fri Sep 21 13:13:03 2012 (r304631) @@ -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 Added: head/games/puckman/files/patch-puckman.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/puckman/files/patch-puckman.c Fri Sep 21 13:13:03 2012 (r304631) @@ -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 + #include + +-#define PACPATH "/usr/share/puckman/" ++#define PACPATH "/usr/local/share/puckman/" + #define SCREEN_WIDTH 461 + #define SCREEN_HEIGHT 580 + #define RIGHT 0 Added: head/games/puckman/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/puckman/pkg-descr Fri Sep 21 13:13:03 2012 (r304631) @@ -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