| @@ -1,32 +1,36 @@ | | | @@ -1,32 +1,36 @@ |
1 | # $NetBSD: Makefile,v 1.9 2024/05/06 15:13:47 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.10 2024/05/07 16:01:06 nia Exp $ |
2 | | | 2 | |
3 | DISTNAME= nudoku-4.0.0 | | 3 | DISTNAME= nudoku-4.0.0 |
4 | CATEGORIES= games | | 4 | CATEGORIES= games |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=jubalh/} | | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=jubalh/} |
6 | | | 6 | |
7 | MAINTAINER= pkgsrc-users@NetBSD.org | | 7 | MAINTAINER= pkgsrc-users@NetBSD.org |
8 | HOMEPAGE= https://jubalh.github.io/nudoku/ | | 8 | HOMEPAGE= https://jubalh.github.io/nudoku/ |
9 | COMMENT= Ncurses based sudoku game | | 9 | COMMENT= Ncurses based sudoku game |
10 | LICENSE= gnu-gpl-v3 | | 10 | LICENSE= gnu-gpl-v3 |
11 | | | 11 | |
12 | TOOL_DEPENDS+= gettext-m4-[0-9]*:../../devel/gettext-m4 | | 12 | TOOL_DEPENDS+= gettext-m4-[0-9]*:../../devel/gettext-m4 |
13 | | | 13 | |
14 | # Fix gettext includes | | 14 | # Fix gettext includes |
15 | SUBST_CLASSES+= includes | | 15 | SUBST_CLASSES+= includes |
16 | SUBST_STAGE.includes= post-configure | | 16 | SUBST_STAGE.includes= post-configure |
17 | SUBST_MESSAGE.includes= Fix gettext includes | | 17 | SUBST_MESSAGE.includes= Fix gettext includes |
18 | SUBST_FILES.includes+= src/sudoku.c | | 18 | SUBST_FILES.includes+= src/sudoku.c |
19 | SUBST_SED.includes+= -e 's,"gettext.h",<libintl.h>,' | | 19 | SUBST_SED.includes+= -e 's,"gettext.h",<libintl.h>,' |
20 | | | 20 | |
21 | USE_TOOLS+= autoreconf automake autoconf autopoint gettext | | 21 | USE_TOOLS+= autoreconf automake autoconf autopoint gettext |
22 | USE_TOOLS+= pkg-config | | 22 | USE_TOOLS+= pkg-config |
23 | GNU_CONFIGURE= yes | | 23 | GNU_CONFIGURE= yes |
24 | USE_CURSES= wide | | 24 | USE_CURSES= wide |
| | | 25 | FAKE_NCURSES= yes |
25 | USE_PKGLOCALEDIR= yes | | 26 | USE_PKGLOCALEDIR= yes |
26 | | | 27 | |
| | | 28 | CONFIGURE_ENV+= ncursesw_CFLAGS=-I${BUILDLINK_PREFIX.curses}/include |
| | | 29 | CONFIGURE_ENV+= ncursesw_LIBS=${BUILDLINK_LDADD.curses:Q} |
| | | 30 | |
27 | pre-configure: | | 31 | pre-configure: |
28 | cd ${WRKSRC} && autoreconf -i | | 32 | cd ${WRKSRC} && autoreconf -i |
29 | | | 33 | |
30 | .include "../../devel/gettext-lib/buildlink3.mk" | | 34 | .include "../../devel/gettext-lib/buildlink3.mk" |
31 | .include "../../devel/ncurses/buildlink3.mk" | | 35 | .include "../../mk/curses.buildlink3.mk" |
32 | .include "../../mk/bsd.pkg.mk" | | 36 | .include "../../mk/bsd.pkg.mk" |