aboutsummaryrefslogtreecommitdiff
path: root/games/sgt-puzzles/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2014-01-28 02:33:50 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2014-01-28 02:33:50 +0000
commit478f0e1e73d20929028ec1b93e5423782af2b0f2 (patch)
tree0c89b70d1330675152438667ee84bcc08b55614c /games/sgt-puzzles/Makefile
parent182c1841b2b1016a4be66b47449cf03ee5688781 (diff)
downloadports-478f0e1e73d20929028ec1b93e5423782af2b0f2.tar.gz
ports-478f0e1e73d20929028ec1b93e5423782af2b0f2.zip
Notes
Diffstat (limited to 'games/sgt-puzzles/Makefile')
-rw-r--r--games/sgt-puzzles/Makefile62
1 files changed, 62 insertions, 0 deletions
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 <amdmi3@FreeBSD.org>
+# $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 <bsd.port.options.mk>
+
+.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 <bsd.port.mk>