Lines 9-60
Link Here
|
9 |
PORTVERSION= 1.8 |
9 |
PORTVERSION= 1.8 |
10 |
PORTREVISION= 1 |
10 |
PORTREVISION= 1 |
11 |
CATEGORIES= games |
11 |
CATEGORIES= games |
12 |
MASTER_SITES?= ftp://ftp.idsoftware.com/idstuff/source/ \ |
12 |
MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/source/ |
13 |
ftp://ftp.stomped.com/pub/idmirror/idstuff/source/ \ |
|
|
14 |
ftp://ftp.cdrom.com/pub/idgames/idstuff/source/ |
15 |
DISTNAME= doomsrc |
13 |
DISTNAME= doomsrc |
16 |
|
14 |
|
17 |
MAINTAINER= jmz@FreeBSD.org |
15 |
MAINTAINER= jmz@FreeBSD.org |
18 |
COMMENT= DOOM: the game and the sound server |
16 |
COMMENT= DOOM: the game and the sound server |
19 |
|
17 |
|
20 |
NO_CDROM= requested by IDsoftware |
|
|
21 |
|
22 |
MASTER_SITES2= ftp://sunsite.unc.edu/pub/Linux/games/doom/ \ |
23 |
ftp://ftp.infomagic.com/pub/mirrors/linux/sunsite/games/doom/ \ |
24 |
ftp://ftp.funet.fi/pub/mirrors/sunsite.unc.edu/pub/Linux/games/doom/ |
25 |
DISTFILES2= doom1v18.wad.gz |
26 |
|
27 |
ONLY_FOR_ARCHS= i386 |
18 |
ONLY_FOR_ARCHS= i386 |
28 |
|
19 |
|
29 |
USE_PERL5_BUILD=yes |
20 |
USE_GMAKE= yes |
|
|
21 |
USE_REINPLACE= yes |
30 |
USE_XLIB= yes |
22 |
USE_XLIB= yes |
31 |
USE_ZIP= yes |
23 |
USE_ZIP= yes |
32 |
NO_WRKSUBDIR= yes |
24 |
NO_WRKSUBDIR= yes |
33 |
USE_GMAKE= yes |
|
|
34 |
|
25 |
|
35 |
.if !defined(__REAL_FETCH__) |
|
|
36 |
do-fetch: |
37 |
@${MAKE} ${.MAKEFLAGS} do-fetch __REAL_FETCH__=YES |
38 |
@${MAKE} ${.MAKEFLAGS} do-fetch __REAL_FETCH__=YES \ |
39 |
DISTFILES="${DISTFILES2}" MASTER_SITES="${MASTER_SITES2}" |
40 |
.endif |
41 |
post-extract: |
26 |
post-extract: |
42 |
@cd ${WRKDIR} && ${TAR} xzf linuxdoom-1.10.src.tgz && ${TAR} xzf sndserv.tgz |
27 |
@cd ${WRKDIR} && ${TAR} xzf linuxdoom-1.10.src.tgz && ${TAR} xzf sndserv.tgz |
43 |
|
28 |
|
44 |
post-patch: |
29 |
post-patch: |
45 |
@${FIND} ${WRKSRC} -type f | ${XARGS} ${PERL} -pi -e "s@#include +<malloc.h>@#include <stdlib.h>@g" |
30 |
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} \ |
|
|
31 |
-E -e 's|#include +<malloc.h>|#include <stdlib.h>|g' |
46 |
|
32 |
|
47 |
do-build: |
33 |
do-build: |
48 |
@cd ${WRKDIR}/linuxdoom-1.10 && ${GMAKE} |
34 |
@cd ${WRKDIR}/linuxdoom-1.10 && ${GMAKE} |
49 |
@cd ${WRKDIR}/sndserv && ${GMAKE} |
35 |
@cd ${WRKDIR}/sndserv && ${GMAKE} |
50 |
|
36 |
|
51 |
do-install: |
37 |
do-install: |
52 |
@${MKDIR} ${PREFIX}/libexec/doom ${PREFIX}/share/doom |
38 |
@${MKDIR} ${PREFIX}/libexec/doom |
53 |
@${INSTALL_PROGRAM} ${WRKDIR}/linuxdoom-1.10/linux/linuxxdoom ${PREFIX}/libexec/doom/xdoom |
39 |
@${INSTALL_PROGRAM} ${WRKDIR}/linuxdoom-1.10/linux/linuxxdoom ${PREFIX}/libexec/doom/xdoom |
54 |
@${INSTALL_PROGRAM} ${WRKDIR}/sndserv/linux/sndserver ${PREFIX}/libexec/doom/sndserver |
40 |
@${INSTALL_PROGRAM} ${WRKDIR}/sndserv/linux/sndserver ${PREFIX}/libexec/doom/sndserver |
55 |
@(${ECHO_CMD} "#!/bin/sh"; ${ECHO_CMD} "cd ${PREFIX}/libexec/doom"; \ |
41 |
@(${ECHO_CMD} "#!${SH}"; ${ECHO_CMD} "cd ${PREFIX}/libexec/doom"; \ |
56 |
${ECHO_CMD} 'export PATH=.:$$PATH';${ECHO_CMD} "export DOOMWADDIR=${PREFIX}/share/doom"; ${ECHO_CMD} "./xdoom $$*") > ${PREFIX}/bin/doom |
42 |
${ECHO_CMD} 'export PATH=.:$$PATH';${ECHO_CMD} "export DOOMWADDIR=${DATADIR}"; ${ECHO_CMD} "./xdoom $$*") > ${PREFIX}/bin/doom |
57 |
@${CHMOD} ugo+x ${PREFIX}/bin/doom |
43 |
@${CHMOD} ugo+x ${PREFIX}/bin/doom |
58 |
@${GZCAT} ${DISTDIR}/${DISTFILES2} > ${PREFIX}/share/doom/doom1.wad |
|
|
59 |
|
44 |
|
60 |
.include <bsd.port.mk> |
45 |
.include <bsd.port.mk> |