diff --git a/games/Makefile b/games/Makefile index 29d41efa733c..6f6a47c1a5d0 100644 --- a/games/Makefile +++ b/games/Makefile @@ -873,6 +873,7 @@ SUBDIR += senken SUBDIR += sets SUBDIR += sex + SUBDIR += sgt-puzzles SUBDIR += shaaft SUBDIR += shootingstar SUBDIR += simplevaders diff --git a/games/sgt-puzzles/Makefile b/games/sgt-puzzles/Makefile new file mode 100644 index 000000000000..94db26d77224 --- /dev/null +++ b/games/sgt-puzzles/Makefile @@ -0,0 +1,62 @@ +# Created by: Dmitry Marakasov +# $FreeBSD$ + +PORTNAME= puzzles +PORTVERSION= r10116 +CATEGORIES= games +MASTER_SITES= http://www.chiark.greenend.org.uk/~sgtatham/puzzles/ \ + http://mirror.amdmi3.ru/distfiles/ +PKGNAMEPREFIX= sgt- + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Simon Tatham's Portable Puzzle Collection + +LICENSE= MIT + +GNU_CONFIGURE= yes +USES= pkgconfig +USE_GNOME= gtk20 +CONFIGURE_ARGS= --program-prefix=sgt- + +PUZZLE_LIST= blackbox bridges cube dominosa fifteen filling flip \ + galaxies guess inertia keen lightup loopy magnets map \ + mines net netslide pattern pearl pegs range rect samegame \ + signpost singles sixteen slant solo tents towers twiddle \ + undead unequal unruly untangle + +.for f in ${PUZZLE_LIST} +PLIST_FILES+= bin/sgt-${f} +.endfor + +OPTIONS_DEFINE= DESKTOP_FILES +OPTIONS_DEFAULT=DESKTOP_FILES +DESKTOP_FILES_DESC=Install menu entries (lots of them) + +.include + +.if ${PORT_OPTIONS:MDESKTOP_FILES} +. for f in ${PUZZLE_LIST} +PLIST_FILES+= share/pixmaps/sgt-${f}.png + +DESKTOP_ENTRIES+=\ + "${f}" \ + "${f} puzzle game" \ + "sgt-${f}" \ + "sgt-${f}" \ + "Game;LogicGame;" \ + "" +. endfor +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|-Werror||' ${WRKSRC}/configure.ac \ + ${WRKSRC}/configure + +.if ${PORT_OPTIONS:MDESKTOP_FILES} +post-install: +. for f in ${PUZZLE_LIST} + ${INSTALL_DATA} ${WRKSRC}/icons/${f}-48d24.png ${STAGEDIR}${PREFIX}/share/pixmaps/sgt-${f}.png +. endfor +.endif + +.include diff --git a/games/sgt-puzzles/distinfo b/games/sgt-puzzles/distinfo new file mode 100644 index 000000000000..397dbc5740f1 --- /dev/null +++ b/games/sgt-puzzles/distinfo @@ -0,0 +1,2 @@ +SHA256 (puzzles-r10116.tar.gz) = db0df89c70a807843d6284de191bab6e7e179b82104466444bf3f62a6b8e8c14 +SIZE (puzzles-r10116.tar.gz) = 2958422 diff --git a/games/sgt-puzzles/pkg-descr b/games/sgt-puzzles/pkg-descr new file mode 100644 index 000000000000..37881aaa41d4 --- /dev/null +++ b/games/sgt-puzzles/pkg-descr @@ -0,0 +1,8 @@ +Simon Tatham's Portable Puzzle Collection is a set of popular puzzle +games for one player including Black Box, Bridges, Cube, Dominosa, +Fifteen, Filling, Flip, Galaxies, Guess, Inertia, Keen, Light Up, +Loopy, Magnets, Map, Mines, Net, Netslide, Pattern, Pearl, Pegs, +Range, Rectangles, Same Game, Signpost, Singles, Sixteen, Slant, +Solo, Tents, Towers, Twiddle, Undead, Unequal, Unruly and Untangle. + +WWW: http://www.chiark.greenend.org.uk/~sgtatham/puzzles/