1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

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
This commit is contained in:
Alexey Dokuchaev 2022-01-02 06:48:40 +00:00
parent 82412b2541
commit 877cceb236

View File

@ -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}