summaryrefslogtreecommitdiff
path: root/games/quakedata/Makefile
blob: f60c992b331858871f7a135bfc643e6c19be5c44 (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
# $NetBSD: Makefile,v 1.27 2017/09/04 18:08:24 wiz Exp $

DISTNAME=	quake106
PKGNAME=	quakedata-1.0
PKGREVISION=	1
CATEGORIES=	games
MASTER_SITES=	ftp://ftp.fu-berlin.de/pc/msdos/games/idgames/idstuff/quake/
MASTER_SITES+=	ftp://ftp.idsoftware.com/idstuff/quake/
EXTRACT_SUFX=	.zip

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.idsoftware.com/
COMMENT=	Game data files for Quake
LICENSE=		quakedata-license

RESTRICTED=		This software is shareware.
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_FTP=		${RESTRICTED}

BUILD_DEPENDS+=	lha-[0-9]*:../../archivers/lha

EXTRACT_ELEMENTS=	resource.*

WRKSRC=		${WRKDIR}
NO_BUILD=	YES
USE_TOOLS+=	lha

post-extract:
	cd ${WRKSRC} && ${CAT} resource.dat resource.1 > resource.exe
	cd ${WRKDIR} && ${LHA} xfq resource.exe id1/pak0.pak

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/quake/id1
	${INSTALL_DATA} ${WRKSRC}/id1/pak0.pak \
		${DESTDIR}${PREFIX}/share/quake/id1

.include "../../mk/bsd.pkg.mk"