Sat May 16 13:01:15 2020 UTC ()
games/ztrack: fix build in SUBST_NOOP_OK=no mode

The sed command is not classified as identity substitution by
mk/scripts/subst-identity.awk since the s,,, is preceded by a regular
expression.  Since this is an edge case, it will not be implemented
there.  Otherwise the other addressing modes would also have to be
implemented.


(rillig)
diff -r1.2 -r1.3 pkgsrc/games/ztrack/Makefile

cvs diff -r1.2 -r1.3 pkgsrc/games/ztrack/Makefile (expand / switch to unified diff)

--- pkgsrc/games/ztrack/Makefile 2016/07/28 19:31:28 1.2
+++ pkgsrc/games/ztrack/Makefile 2020/05/16 13:01:15 1.3
@@ -1,26 +1,27 @@ @@ -1,26 +1,27 @@
1# $NetBSD: Makefile,v 1.2 2016/07/28 19:31:28 leot Exp $ 1# $NetBSD: Makefile,v 1.3 2020/05/16 13:01:15 rillig Exp $
2 2
3DISTNAME= ztrack-1.0 3DISTNAME= ztrack-1.0
4PKGREVISION= 1 4PKGREVISION= 1
5CATEGORIES= games 5CATEGORIES= games
6MASTER_SITES= ${MASTER_SITE_SUNSITE:=games/arcade/} 6MASTER_SITES= ${MASTER_SITE_SUNSITE:=games/arcade/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9# Nothing better available 9# Nothing better available
10HOMEPAGE= ${MASTER_SITE_SUNSITE:=games/arcade/} 10HOMEPAGE= ${MASTER_SITE_SUNSITE:=games/arcade/}
11COMMENT= Simple curses-based pseudo-3D driving game 11COMMENT= Simple curses-based pseudo-3D driving game
12LICENSE= public-domain 12LICENSE= public-domain
13 13
14WRKSRC= ${WRKDIR}/${PKGBASE} 14WRKSRC= ${WRKDIR}/${PKGBASE}
15 15
16MAKE_FLAGS+= BINDIR=${PREFIX}/bin 16MAKE_FLAGS+= BINDIR=${PREFIX}/bin
17MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}/man6 17MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}/man6
18 18
19SUBST_CLASSES+= makefile 19SUBST_CLASSES+= makefile
20SUBST_STAGE.makefile= pre-configure 20SUBST_STAGE.makefile= pre-configure
21SUBST_MESSAGE.makefile= Link with the proper curses type 21SUBST_MESSAGE.makefile= Link with the proper curses type
22SUBST_FILES.makefile= Makefile 22SUBST_FILES.makefile= Makefile
23SUBST_SED.makefile= -e '/LIBS/ s,-lncurses,-l${BUILDLINK_LIBNAME.curses},' 23SUBST_SED.makefile= -e '/LIBS/ s,-lncurses,-l${BUILDLINK_LIBNAME.curses},'
 24SUBST_NOOP_OK.makefile= yes
24 25
25.include "../../mk/curses.buildlink3.mk" 26.include "../../mk/curses.buildlink3.mk"
26.include "../../mk/bsd.pkg.mk" 27.include "../../mk/bsd.pkg.mk"