blob: 0a5627483407e27b0861f3e83082450336f01e55 (
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
|
# $NetBSD: Makefile,v 1.1 1998/08/28 12:53:03 garbled Exp $
DISTNAME= linuxdoom-1.10
PKGNAME= xdoom-1.10
CATEGORIES= games x11
MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/source/
MASTER_SITES+= ftp://ftp.idsoftware.com/idstuff/doom/
DISTFILES= doomsrc.zip doom-1.8.wad.gz
MAINTAINER= root@garbled.net
HOMEPAGE= http://www.idsoftware.com/archives/doomarc.html
BUILD_DEPENDS= unzip:../../archivers/unzip
EXTRACT_CMD= unzip
EXTRACT_BEFORE_ARGS= -qo
EXTRACT_ONLY= doomsrc.zip
USE_X11= yes
USE_GMAKE= yes
post-extract:
(cd ${WRKDIR}; tar xzf linuxdoom-1.10.src.tgz)
post-patch:
@${MV} ${WRKSRC}/i_sound.c foo
@${SED} -e 's@XXXPREFIXXXX@${PREFIX}@' <foo> ${WRKSRC}/i_sound.c
@${MV} ${WRKSRC}/d_main.c foo
@${SED} -e 's@XXXPREFIXXXX@${PREFIX}@' <foo> ${WRKSRC}/d_main.c
@${RM} -f foo
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/linux/linuxxdoom ${PREFIX}/bin/xdoom
${MKDIR} ${PREFIX}/share/doom
${GUNZIP_CMD} -c ${DISTDIR}/doom-1.8.wad.gz > ${PREFIX}/share/doom/doom1.wad
.include "../../mk/bsd.pkg.mk"
|