summaryrefslogtreecommitdiffstats
path: root/games/lmpc/Makefile
blob: b5d31dba274860fb3d5fe128697ec3a23426cd98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$

PORTNAME=	lmpc
PORTVERSION=	3.4.4
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} \
		http://demospecs.half-empty.de/lmpc-alpha/:doc
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${FETCHED_DOCS:S/$/:doc/}
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Tools to manipulate some FPS games demo recordings

LICENSE=	GPLv2

USES=		gmake perl5 shebangfix
GNU_CONFIGURE=	yes
USE_PERL5=	build
SHEBANG_FILES=	bin/procdm2.pl

PORTSCOUT=	limit:.*[0-9]$$		# letter-suffixed files are binaries

SCRIPTS=	dema dm2cat procdm2.pl
PROGRAMS=	dbs demcut lmpc
FETCHED_DOCS=	${PORTNAME}.html ${PORTNAME}.pdf ${PORTNAME}.sgml
PORTDOCS=	*
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,' \
			${WRKSRC}/src/Makefile.in

do-install:
	${INSTALL_SCRIPT} ${SCRIPTS:S,^,${WRKSRC}/bin/,} \
		${STAGEDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${PROGRAMS:S,^,${WRKSRC}/src/,} \
		${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${FETCHED_DOCS:S,^,${DISTDIR}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud