blob: 962ba054dc4b478e695ec45d8bdad4c64924b794 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $NetBSD: Makefile,v 1.68 2020/08/31 18:09:34 wiz Exp $
DISTNAME= puzzles-20181212
GIT_COMMIT= ced51ada363d895eee796dd03923042f97f95321
PKGREVISION= 6
CATEGORIES= games
MASTER_SITES= -https://git.tartarus.org/?p=simon/puzzles.git;a=snapshot;h=${GIT_COMMIT};sf=tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.chiark.greenend.org.uk/~sgtatham/puzzles/
COMMENT= Collection of small one-player puzzle games by Simon Tatham
LICENSE= mit
WRKSRC= ${WRKDIR}/puzzles-${GIT_COMMIT:C,(.......).*,\1,}
USE_TOOLS+= gmake pkg-config perl autoreconf autoconf automake
AUTO_MKDIRS= yes
BUILD_DEPENDS+= halibut>=1.1:../../textproc/halibut
USE_LANGUAGES= c99
GNU_CONFIGURE= yes
BUILDLINK_TRANSFORM+= rm:-Werror
MAKE_FLAGS= prefix=${PREFIX}
MAKE_FLAGS+= gamesdir=${PREFIX}/bin
CFLAGS+= -DREVISION=${DISTNAME:S/puzzles-//}
pre-configure:
cd ${WRKSRC} && perl mkfiles.pl
cd ${WRKSRC} && ${SH} mkauto.sh
cd ${WRKSRC} && gmake -f Makefile.doc puzzles.txt
post-install:
${INSTALL_DATA} ${WRKSRC}/puzzles.txt \
${DESTDIR}${PREFIX}/share/doc/puzzles
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|