Date: Fri, 3 Mar 2017 17:24:41 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r435353 - in head/games: . ace-of-penguins ace-of-penguins/files Message-ID: <201703031724.v23HOf4W088817@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Fri Mar 3 17:24:41 2017 New Revision: 435353 URL: https://svnweb.freebsd.org/changeset/ports/435353 Log: The Ace of Penguins is a set of Unix/X solitaire games based on the ones available for Windows(tm) but with a number of enhancements. The latest version includes clones of freecell, golf, mastermind, merlin, minesweeper, pegged, solitaire, taipei (with editor!), and thornq (by Martin Thornquist). WWW: http://www.delorie.com/store/ace/ Added: head/games/ace-of-penguins/ head/games/ace-of-penguins/Makefile (contents, props changed) head/games/ace-of-penguins/distinfo (contents, props changed) head/games/ace-of-penguins/files/ head/games/ace-of-penguins/files/patch-lib_make-imglib.c (contents, props changed) head/games/ace-of-penguins/files/patch-lib_xwin.c (contents, props changed) head/games/ace-of-penguins/pkg-descr (contents, props changed) head/games/ace-of-penguins/pkg-plist (contents, props changed) Modified: head/games/Makefile Modified: head/games/Makefile ============================================================================== --- head/games/Makefile Fri Mar 3 16:51:49 2017 (r435352) +++ head/games/Makefile Fri Mar 3 17:24:41 2017 (r435353) @@ -19,6 +19,7 @@ SUBDIR += abbayedesmorts SUBDIR += abe SUBDIR += abuse_sdl + SUBDIR += ace-of-penguins SUBDIR += acm SUBDIR += adgali SUBDIR += adom Added: head/games/ace-of-penguins/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/ace-of-penguins/Makefile Fri Mar 3 17:24:41 2017 (r435353) @@ -0,0 +1,62 @@ +# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= ace-of-penguins +PORTVERSION= 1.4 +CATEGORIES= games +MASTER_SITES= http://www.delorie.com/store/ace/ +DISTNAME= ace-${PORTVERSION} + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Set of Unix/X solitaire games + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libpng.so:graphics/png + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --program-prefix=ace- +USES= gmake libtool localbase:ldflags +USE_XORG= x11 xpm +INSTALL_TARGET= install-strip + +PORTDOCS= * + +GAMES= "canfield:Solitaire game:CardGame" \ + "freecell:Solitaire game:CardGame" \ + "golf:Solitaire game:CardGame" \ + "mastermind:Logic game:LogicGame" \ + "merlin:Classical logic game:LogicGame" \ + "minesweeper:Logic game:LogicGame" \ + "pegged:Solitaire game:LogicGame" \ + "penguins:Solitaire game:CardGame" \ + "solitaire:Solitaire game:CardGame" \ + "spider:Solitaire game:CardGame" \ + "taipedit:Layout editor for taipei game:CardGame" \ + "taipei:Mahjong solitaire game:BoardGame" \ + "thornq:Solitaire game:CardGame" \ + + +.for game in ${GAMES} +DESKTOP_ENTRIES+= \ + "Ace of Penguins: ${game:C/^([^:]*):([^:]*):([^:]*)$$/\1/:C/\"//g}" \ + "${game:C/^([^:]*):([^:]*):([^:]*)$$/\2/:C/\"//g}" \ + "${PREFIX}/share/pixmaps/${PORTNAME}.gif" \ + "ace-${game:C/^([^:]*):([^:]*):([^:]*)$$/\1/:C/\"//g}" \ + "Game;${game:C/^([^:]*):([^:]*):([^:]*)$$/\3/:C/\"//g};" \ + "" +.endfor + +OPTIONS_DEFINE= DOCS + +post-install: + ${INSTALL_DATA} ${WRKSRC}/docs/as.gif ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.gif + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for f in AUTHORS ChangeLog NEWS README docs/*.gif docs/*.html + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ +.endfor + +.include <bsd.port.mk> Added: head/games/ace-of-penguins/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/ace-of-penguins/distinfo Fri Mar 3 17:24:41 2017 (r435353) @@ -0,0 +1,3 @@ +TIMESTAMP = 1488290409 +SHA256 (ace-1.4.tar.gz) = 1fee3b0533921a42873c0623f33d873a067b1eec58f2c70c01449146e79a4cce +SIZE (ace-1.4.tar.gz) = 530490 Added: head/games/ace-of-penguins/files/patch-lib_make-imglib.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/ace-of-penguins/files/patch-lib_make-imglib.c Fri Mar 3 17:24:41 2017 (r435353) @@ -0,0 +1,20 @@ +--- lib/make-imglib.c.orig 2012-03-24 18:00:49 UTC ++++ lib/make-imglib.c +@@ -86,7 +86,7 @@ scan_image_directory () + png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, 0, 0, 0); + info_ptr = png_create_info_struct (png_ptr); + +- if (setjmp (png_ptr->jmpbuf)) { ++ if (setjmp (png_jmpbuf(png_ptr))) { + fclose (f); + continue; + } +@@ -202,7 +202,7 @@ tokenize(char *string) + char *rv; + if (string) { + next = string; +- return; ++ return NULL; + } + while (*next && !isgraph(*next)) next++; + if (!*next) return 0; Added: head/games/ace-of-penguins/files/patch-lib_xwin.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/ace-of-penguins/files/patch-lib_xwin.c Fri Mar 3 17:24:41 2017 (r435353) @@ -0,0 +1,18 @@ +--- lib/xwin.c.orig 2012-03-24 18:00:49 UTC ++++ lib/xwin.c +@@ -841,13 +841,13 @@ build_image (image *src) + png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, 0, 0, 0); + info_ptr = png_create_info_struct (png_ptr); + +- if (setjmp (png_ptr->jmpbuf)) { ++ if (setjmp (png_jmpbuf(png_ptr))) { + fprintf(stderr, "Invalid PNG image!\n"); + return; + } + + file_bytes = src->file_data; +- png_set_read_fn (png_ptr, (voidp)&file_bytes, (png_rw_ptr)png_reader); ++ png_set_read_fn (png_ptr, (png_voidp)&file_bytes, (png_rw_ptr)png_reader); + + png_read_info (png_ptr, info_ptr); + Added: head/games/ace-of-penguins/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/ace-of-penguins/pkg-descr Fri Mar 3 17:24:41 2017 (r435353) @@ -0,0 +1,8 @@ +The Ace of Penguins is a set of Unix/X solitaire games based on the +ones available for Windows(tm) but with a number of enhancements. + +The latest version includes clones of freecell, golf, mastermind, +merlin, minesweeper, pegged, solitaire, taipei (with editor!), and +thornq (by Martin Thornquist). + +WWW: http://www.delorie.com/store/ace/ Added: head/games/ace-of-penguins/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/ace-of-penguins/pkg-plist Fri Mar 3 17:24:41 2017 (r435353) @@ -0,0 +1,18 @@ +bin/ace-canfield +bin/ace-freecell +bin/ace-golf +bin/ace-mastermind +bin/ace-merlin +bin/ace-minesweeper +bin/ace-pegged +bin/ace-penguins +bin/ace-solitaire +bin/ace-spider +bin/ace-taipedit +bin/ace-taipei +bin/ace-thornq +lib/libcards.a +lib/libcards.so +lib/libcards.so.1 +lib/libcards.so.1.0.0 +share/pixmaps/ace-of-penguins.gif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703031724.v23HOf4W088817>