|
Lines 5-11
Link Here
|
| 5 |
# $FreeBSD: ports/games/jfduke3d/Makefile,v 1.8 2006/05/07 23:45:21 edwin Exp $ |
5 |
# $FreeBSD: ports/games/jfduke3d/Makefile,v 1.8 2006/05/07 23:45:21 edwin Exp $ |
| 6 |
|
6 |
|
| 7 |
PORTNAME= jfduke3d |
7 |
PORTNAME= jfduke3d |
| 8 |
PORTVERSION= 20050531 |
8 |
PORTVERSION= 20051009 |
| 9 |
CATEGORIES= games |
9 |
CATEGORIES= games |
| 10 |
MASTER_SITES= ftp://dialup.edgefiles.com/edgenetwork.org/jonof/buildport/ \ |
10 |
MASTER_SITES= ftp://dialup.edgefiles.com/edgenetwork.org/jonof/buildport/ \ |
| 11 |
ftp://ftp1.edgefiles.com/edgenetwork.org/jonof/buildport/ \ |
11 |
ftp://ftp1.edgefiles.com/edgenetwork.org/jonof/buildport/ \ |
|
Lines 14-73
Link Here
|
| 14 |
DISTFILES= ${PORTNAME}_src_${PORTVERSION}.zip \ |
14 |
DISTFILES= ${PORTNAME}_src_${PORTVERSION}.zip \ |
| 15 |
jfbuild_src_${PORTVERSION}.zip |
15 |
jfbuild_src_${PORTVERSION}.zip |
| 16 |
|
16 |
|
|
|
17 |
PATCH_SITES= http://www.mephisto.ma.cx/mephisto/patches/ |
| 18 |
PATCHFILES= ${PORTNAME}_src_${PORTVERSION}.patch \ |
| 19 |
jfbuild_src_${PORTVERSION}.patch |
| 20 |
|
| 17 |
MAINTAINER= arundel@h3c.de |
21 |
MAINTAINER= arundel@h3c.de |
| 18 |
COMMENT= Jonathon Fowler's Duke Nukem 3D Port |
22 |
COMMENT= Jonathon Fowler's Duke Nukem 3D Port |
| 19 |
|
23 |
|
| 20 |
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm |
24 |
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm |
| 21 |
|
25 |
|
| 22 |
USE_ZIP= yes |
26 |
USE_ZIP= yes |
|
|
27 |
USE_GCC= 3.2+ |
| 23 |
USE_GMAKE= yes |
28 |
USE_GMAKE= yes |
| 24 |
USE_SDL= sdl |
29 |
USE_GL= yes |
| 25 |
USE_GNOME= gtk20 |
30 |
USE_GNOME= gtk20 |
| 26 |
CONFLICTS= duke3d-200[0-9]* |
31 |
USE_SDL= mixer sdl |
| 27 |
|
|
|
| 28 |
WRKSRC= ${WRKDIR}/${PORTNAME}_src_${PORTVERSION} |
32 |
WRKSRC= ${WRKDIR}/${PORTNAME}_src_${PORTVERSION} |
|
|
33 |
PATCH_WRKSRC= ${WRKDIR} |
| 29 |
|
34 |
|
| 30 |
PROG_FILES= ${WRKSRC}/duke3d ${WRKSRC}/build |
35 |
post-patch: |
| 31 |
DATA_FILES= ${WRKSRC}/build.cfg |
36 |
@${REINPLACE_CMD} -Ee \ |
| 32 |
SCRIPT_FILES= ${WRKDIR}/fix.sh ${WRKDIR}/duke3d.sh ${WRKDIR}/build.sh |
37 |
's|^(EROOT=)../build/|\1../jfbuild_src_${PORTVERSION}/|; \ |
| 33 |
PORTDOCS= ChangeLog readme.txt releasenotes.html duke3d.def.sample GNU.TXT |
38 |
s|^(CC=).*|\1${CC}|; \ |
| 34 |
|
39 |
s|^(CFLAGS=).*|\1${CFLAGS}|; \ |
| 35 |
SUB_FILES= pkg-message |
40 |
s|^(NASMFLAGS=).*|\1 -s -f elf|; \ |
| 36 |
|
41 |
s|/usr/X11R6|${X11BASE}|; \ |
| 37 |
.include <bsd.port.pre.mk> |
42 |
s|sdl-config|${SDL_CONFIG}|' \ |
| 38 |
|
43 |
${WRKSRC}/Makefile \ |
| 39 |
.if ${ARCH} != "i386" |
44 |
${WRKDIR}/jfbuild_src_${PORTVERSION}/Makefile \ |
| 40 |
BROKEN= "Does not build on !i386 (hardcodes i386-specific compiler flags)" |
45 |
${WRKDIR}/jfbuild_src_${PORTVERSION}/Makefile.shared |
| 41 |
.endif |
46 |
@${REINPLACE_CMD} -e 's|/usr/share/games/jfduke3d|${DN3DDIR}|' \ |
| 42 |
|
47 |
${WRKSRC}/source/game.c ${WRKSRC}/source/astub.c |
| 43 |
pre-build: |
|
|
| 44 |
@${REINPLACE_CMD} -e 's|EROOT=../build/|EROOT=../jfbuild_src_${PORTVERSION}/|g' \ |
| 45 |
${WRKSRC}/Makefile |
| 46 |
|
| 47 |
pre-install: |
| 48 |
@${SED} -e 's|%%DUKEDIR%%|${DATADIR}|g' ${FILESDIR}/fix.sh > \ |
| 49 |
${WRKDIR}/fix.sh |
| 50 |
@${SED} -e 's|%%DUKEDIR%%|${DATADIR}|g' ${FILESDIR}/wrapper.sh > \ |
| 51 |
${WRKDIR}/duke3d.sh |
| 52 |
@${SED} -e 's|%%DUKEDIR%%|${DATADIR}|g' ${FILESDIR}/build-wrapper.sh > \ |
| 53 |
${WRKDIR}/build.sh |
| 54 |
|
48 |
|
| 55 |
do-install: |
49 |
do-install: |
| 56 |
${INSTALL} -d ${DATADIR} |
50 |
${INSTALL_PROGRAM} ${WRKSRC}/duke3d ${PREFIX}/bin/${PORTNAME} |
| 57 |
${INSTALL_PROGRAM} ${PROG_FILES} ${DATADIR} |
51 |
${INSTALL_PROGRAM} ${WRKSRC}/build ${PREFIX}/bin/${PORTNAME}-build |
| 58 |
${INSTALL_DATA} ${DATA_FILES} ${DATADIR} |
52 |
.if !defined(NOPORTDOCS) |
| 59 |
${INSTALL_SCRIPT} ${SCRIPT_FILES} ${DATADIR} |
53 |
.for f in ChangeLog readme.txt releasenotes.html duke3d.def.sample |
| 60 |
${LN} -fs ${DATADIR}/duke3d.sh ${PREFIX}/bin/duke3d |
54 |
${MKDIR} ${DOCSDIR} |
| 61 |
${LN} -fs ${DATADIR}/build.sh ${PREFIX}/bin/duke3d-build |
55 |
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} |
| 62 |
|
|
|
| 63 |
post-install: |
| 64 |
.ifndef(NOPORTDOCS) |
| 65 |
${INSTALL} -d ${DOCSDIR} |
| 66 |
|
| 67 |
.for file in ${PORTDOCS} |
| 68 |
${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR} |
| 69 |
.endfor |
56 |
.endfor |
| 70 |
.endif |
57 |
.endif |
| 71 |
${CAT} ${PKGMESSAGE} |
|
|
| 72 |
|
58 |
|
| 73 |
.include <bsd.port.post.mk> |
59 |
.include "${.CURDIR}/../duke3d-data/Makefile.include" |
|
|
60 |
|
| 61 |
.include <bsd.port.mk> |