git: 877cceb2366e - main - games/lmpc: allow the port to build on more 32-bit architectures
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Jan 2022 06:49:42 UTC
The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=877cceb2366ec51535ac0ad1ba0765dd16227fcd commit 877cceb2366ec51535ac0ad1ba0765dd16227fcd Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2022-01-02 06:48:40 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2022-01-02 06:48:40 +0000 games/lmpc: allow the port to build on more 32-bit architectures Convert to idiomatic ONLY_FOR_ARCHS and register one more object file which depends on the generated "udemy.h" header file to fix parallel builds (-jX). While here, adjust LICENSE (it is GPLv2 or later) and factor out installation of documentation into the dedicated helper target. PR: 260697 Submitted by: Robert Clausecker --- games/lmpc/Makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/games/lmpc/Makefile b/games/lmpc/Makefile index c8359dea0e85..4b30532aa491 100644 --- a/games/lmpc/Makefile +++ b/games/lmpc/Makefile @@ -11,7 +11,10 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= danfe@FreeBSD.org COMMENT= Tools to manipulate some FPS games demo recordings -LICENSE= GPLv2 +LICENSE= GPLv2+ + +ONLY_FOR_ARCHS= armv6 armv7 i386 mips powerpc +ONLY_FOR_ARCHS_REASON= assumes sizeof(long) == 4 USES= gmake perl5 shebangfix GNU_CONFIGURE= yes @@ -28,17 +31,11 @@ PLIST_FILES= ${SCRIPTS:S,^,bin/,} ${PROGRAMS:S,^,bin/,} OPTIONS_DEFINE= DOCS -.include <bsd.port.options.mk> - -.if ${ARCH} != "i386" -IGNORE= does not work on ${ARCH}: assumes sizeof(long) == 4 -.endif - post-patch: @${REINPLACE_CMD} -e 's,bin doc src spec,bin src,' \ ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e 's,^record\.o,dbs.o demcut.o demotexty.o \ - lmpc.o record.o udem.o udm2.o udm3.o uqwd.o,' \ + lmpc.o record.o udem.o udeml.o udm2.o udm3.o uqwd.o,' \ ${WRKSRC}/src/Makefile.in do-install: @@ -46,6 +43,8 @@ do-install: ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${PROGRAMS:S,^,${WRKSRC}/src/,} \ ${STAGEDIR}${PREFIX}/bin + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${FETCHED_DOCS:S,^,${DISTDIR}/,} ${STAGEDIR}${DOCSDIR}