landry bea9ec657c games/puzzles: update to a newer git checkout
upstream added cmake support, which vastly simplifies the build..

New puzzle: 'Mosaic'.

This is similar in concept to Minesweeper, in that each clue tells you
the number of things (in this case, just 'black squares') in the
surrounding 3x3 grid section.

But unlike Minesweeper, there's no separation between squares that can
contain clues, and squares that can contain the things you're looking
for - a clue square may or may not itself be coloured black, and if
so, its clue counts itself.

So there's also no hidden information: the clues can all be shown up
front, and the difficulty arises from the game generator choosing
which squares to provide clues for at all.
2021-10-30 07:14:21 +00:00

46 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.20 2021/10/30 07:14:21 landry Exp $
COMMENT = collection of puzzles games
DISTNAME = puzzles-20211021
CATEGORIES = games
MASTER_SITES = https://rhaalovely.net/stuff/
HOMEPAGE = https://www.chiark.greenend.org.uk/~sgtatham/puzzles/
#gitweb generates tarballs on the fly with varying timestamps
GIT_COMMIT = ad1c6ade2af0e681fb964a17cc3a031951047068
GIT_COMMIT_SHORT = ad1c6ad
GITWEB_URL = https://git.tartarus.org/
# MIT
PERMIT_PACKAGE= Yes
WANTLIB += atk-1.0 c cairo cairo-gobject gdk-3 gdk_pixbuf-2.0
WANTLIB += gio-2.0 glib-2.0 gobject-2.0 gtk-3
WANTLIB += intl m pango-1.0 pangocairo-1.0 harfbuzz
WRKDIST = ${WRKDIR}/puzzles-${GIT_COMMIT_SHORT}
USE_GMAKE = yes
LIB_DEPENDS = x11/gtk+3
RUN_DEPENDS = devel/desktop-file-utils devel/xdg-utils \
x11/gtk+3,-guic
MODULES = devel/cmake
CONFIGURE_ARGS= -DPUZZLES_GTK_VERSION=3 -DNAME_PREFIX=puzzle-
BUILD_DEPENDS = textproc/halibut \
graphics/ImageMagick
dist:
ftp -o /usr/ports/distfiles/${DISTNAME}.tar.gz "${GITWEB_URL}?p=simon/puzzles.git;a=snapshot;h=${GIT_COMMIT};sf=tgz"
# generates puzzles.txt
post-build:
cd ${WRKSRC} && ${MAKE} -f Makefile.doc
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/puzzles/
${INSTALL_DATA} ${WRKSRC}/puzzles.txt ${PREFIX}/share/doc/puzzles/
.include <bsd.port.mk>