summaryrefslogtreecommitdiff
path: root/games/et/Makefile
blob: 81ada6203b20210fe177eb17fee24904dc7b3052 (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
# $NetBSD: Makefile,v 1.1.1.1 2004/07/08 14:28:36 xtraeme Exp $
#

DISTNAME=       et-linux-2.56-2.x86
PKGNAME=        et-2.56
CATEGORIES=     games
MASTER_SITES=   ftp://ftp.idsoftware.com/idstuff/et/linux/
EXTRACT_SUFX=   .run

MAINTAINER=     dhowland@users.sourceforge.net
HOMEPAGE=       http://games.activision.com/games/wolfenstein/
COMMENT=        Wolfenstein: Enemy Territory for Linux

NO_BUILD=	yes
USE_BUILDLINK3=	yes
USE_PKGINSTALL=	yes
ONLY_FOR_PLATFORM=	*-*-i386

ETDIR=		${PREFIX}/lib/lokigames/et
EXTRACT_CMD=	${TAIL} +356 ${DOWNLOADED_DISTFILE} | ${GTAR} xzf - \
		-C ${WRKSRC}

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} != "Linux"
DEPENDS+=       suse_base>=6.3:../../emulators/${SUSE_DIR_PREFIX}_base
.include "../../emulators/suse_linux/Makefile.application"
.endif

pre-extract:
	${MKDIR} ${WRKSRC}

do-install:
	${INSTALL_DATA_DIR} ${ETDIR}
	${INSTALL_DATA} ${WRKSRC}/CHANGES ${ETDIR}/
	${INSTALL_DATA} ${WRKSRC}/README ${ETDIR}/
	${INSTALL_DATA} ${WRKSRC}/ET.xpm ${ETDIR}/
	${INSTALL_DATA} ${WRKSRC}/openurl.sh ${ETDIR}/
	${INSTALL_DATA} ${WRKSRC}/v1.02_Readme.htm ${ETDIR}/
	${INSTALL_DATA_DIR} ${ETDIR}/Docs
	cd ${WRKSRC}/Docs && ${PAX} -rw -p am . ${ETDIR}/Docs
	${INSTALL_DATA_DIR} ${ETDIR}/etmain
	cd ${WRKSRC}/etmain && ${PAX} -rw -p am . ${ETDIR}/etmain
	${INSTALL_DATA_DIR} ${ETDIR}/pb
	cd ${WRKSRC}/pb && ${PAX} -rw -p am . ${ETDIR}/pb
	${INSTALL_SCRIPT} ${WRKSRC}/bin/Linux/x86/et.x86 ${ETDIR}/
	${INSTALL_SCRIPT} ${WRKSRC}/bin/Linux/x86/etded.x86 ${ETDIR}/
	@${SED} ${FILES_SUBST_SED} ${FILESDIR}/et.sh >${WRKDIR}/et
	${INSTALL_SCRIPT} ${WRKDIR}/et ${PREFIX}/bin
	@${SED} ${FILES_SUBST_SED} ${FILESDIR}/etded.sh >${WRKDIR}/etded
	${INSTALL_SCRIPT} ${WRKDIR}/etded ${PREFIX}/bin

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