Skip to content

Commit

Permalink
games/coffeebreak: Correct sed and patch applied twice
Browse files Browse the repository at this point in the history
Last commit "Move man to share/man" I used patch to set MANDIR and sed
to fix hardcoded PREFIX=/usr/local on wrksrc Makefile.

Simplify and correct changes with use of MAKE_ARGS.
Not bumping port revision as is doesn't change build.

Reported by:	danfe
Approved by:	portmgr (blanket)
Fixes:		021fcd3 Move man pages to share/man
  • Loading branch information
nunotexbsd committed Mar 11, 2024
1 parent 2d50a3e commit 1128357
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
6 changes: 3 additions & 3 deletions games/coffeebreak/Makefile
Expand Up @@ -12,13 +12,13 @@ LICENSE= BSD2CLAUSE
USE_GITHUB= yes
GH_ACCOUNT= 0mp

MAKE_ARGS= MANDIR=${STAGEDIR}${PREFIX}/share/man \
PREFIX=${PREFIX}

NO_ARCH= yes
NO_BUILD= yes

PLIST_FILES= bin/coffeebreak \
share/man/man6/coffeebreak.6.gz

post-patch:
${REINPLACE_CMD} 's|/usr/local|${PREFIX}|g' ${WRKSRC}/Makefile

.include <bsd.port.mk>
11 changes: 0 additions & 11 deletions games/coffeebreak/files/patch-Makefile

This file was deleted.

0 comments on commit 1128357

Please sign in to comment.