File:  [cvs.NetBSD.org] / pkgsrc / games / et / Attic / Makefile
Revision 1.11: download - view: text, annotated - select for diffs
Thu Feb 22 19:26:30 2007 UTC (17 years, 9 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, HEAD
Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.

# $NetBSD: Makefile,v 1.11 2007/02/22 19:26:30 wiz Exp $
#

DISTNAME=	et-linux-2.56-2.x86
PKGNAME=	et-2.56
PKGREVISION=     1
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
ONLY_FOR_PLATFORM=	*-*-i386

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

.include "../../emulators/suse_linux/Makefile.application"

.if !defined(USE_NATIVE_LINUX)
DEPENDS+=	suse_base>=6.3:../../emulators/${SUSE_DIR_PREFIX}_base
.endif

INSTALLATION_DIRS=	bin

SUBST_CLASSES+=		paths
SUBST_FILES.paths=	${WRKDIR}/et ${WRKDIR}/etded
SUBST_SED.paths+=	-e 's,@PREFIX@,${PREFIX},g'
SUBST_SED.paths+=	-e 's,@SH@,${SH},g'
SUBST_STAGE.paths=	post-patch

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

post-extract:
	${CP} ${FILESDIR}/et.sh ${WRKDIR}/et
	${CP} ${FILESDIR}/etded.sh ${WRKDIR}/etded

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}/
	${INSTALL_SCRIPT} ${WRKDIR}/et ${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKDIR}/etded ${PREFIX}/bin

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

CVSweb <webmaster@jp.NetBSD.org>