View | Details | Raw Unified | Return to bug 86440
Collapse All | Expand All

(-)deng/Makefile (-26 / +18 lines)
Lines 17-57 Link Here
17
LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png
17
LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png
18
RUN_DEPENDS=	${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity
18
RUN_DEPENDS=	${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity
19
19
20
ONLY_FOR_ARCHS=	i386
21
20
USE_REINPLACE=	yes
22
USE_REINPLACE=	yes
21
REINPLACE_ARGS=	-i ""
23
REINPLACE_ARGS=	-i ""
24
USE_GL=		yes
25
USE_SDL=	sdl mixer net
26
22
USE_LIBTOOL_VER=	15
27
USE_LIBTOOL_VER=	15
23
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
28
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
24
CONFIGURE_ENV=	CFLAGS="${CFLAGS} `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include -I${X11BASE}/include" \
29
CONFIGURE_ENV=	CFLAGS="${CFLAGS} `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include -I${X11BASE}/include" \
25
		CPPFLAGS="`${SDL_CONFIG} --cflags` -I${LOCALBASE}/include -I${X11BASE}/include"
30
		CPPFLAGS="`${SDL_CONFIG} --cflags` -I${LOCALBASE}/include -I${X11BASE}/include"
26
USE_SDL=	sdl mixer net
31
27
USE_GL=		yes
28
INSTALLS_SHLIB=	yes
32
INSTALLS_SHLIB=	yes
29
NOT_FOR_ARCHS=	amd64
30
33
34
SUB_FILES=	pkg-message
31
PKGMESSAGE=	${WRKDIR}/pkg-message
35
PKGMESSAGE=	${WRKDIR}/pkg-message
32
36
33
.if exists(${LOCALBASE}/lib/libopenal.so.0) || defined(WITH_OPENAL)
37
.include "${.CURDIR}/../doom-data/Makefile.include"
34
WITH_OPENAL=	yes
35
LIB_DEPENDS+=	openal.0:${PORTSDIR}/audio/openal
36
.endif
37
38
.if !defined(WITH_OPENAL)
39
PLIST_SUB=	WITH_OPENAL="@comment "
40
.else
41
PLIST_SUB=	WITH_OPENAL=""
42
.endif
43
38
44
.include <bsd.port.pre.mk>
39
.include <bsd.port.pre.mk>
45
40
46
.if ${ARCH} == "ia64" || ${ARCH} == "sparc64" || ${ARCH} == "alpha"
41
.if defined(WITH_OPENAL) || exists(${LOCALBASE}/lib/libopenal.so.0)
47
BROKEN=		"Does not build on ia64, sparc64 or alpha"
42
LIB_DEPENDS+=	openal.0:${PORTSDIR}/audio/openal
48
.endif
43
PLIST_SUB=	OPENAL=""
49
44
.else
50
.ifndef (WITH_OPENAL)
45
PLIST_SUB=	OPENAL="@comment "
51
pre-everything::
52
	@${ECHO_CMD} ""
53
	@${ECHO_CMD} "Optionally define WITH_OPENAL=yes to build OpenAL sound plugin"
54
	@${ECHO_CMD} ""
55
.endif
46
.endif
56
47
57
post-patch:
48
post-patch:
Lines 64-75 Link Here
64
.ifndef (NOPORTDOCS)
55
.ifndef (NOPORTDOCS)
65
	@${MKDIR} ${DOCSDIR}
56
	@${MKDIR} ${DOCSDIR}
66
	${INSTALL_DATA} ${WRKSRC}/Doc/*.txt ${DOCSDIR}
57
	${INSTALL_DATA} ${WRKSRC}/Doc/*.txt ${DOCSDIR}
67
.for i in jDoom jHeretic jHexen
58
.   for i in jDoom jHeretic jHexen
68
	@${MKDIR} ${DOCSDIR}/${i}
59
	@${MKDIR} ${DOCSDIR}/${i}
69
	${INSTALL_DATA} ${WRKSRC}/Doc/${i}/*.txt ${DOCSDIR}/${i}
60
	${INSTALL_DATA} ${WRKSRC}/Doc/${i}/*.txt ${DOCSDIR}/${i}
70
.endfor
61
.   endfor
71
.endif
62
.endif
72
	@(${SED} -e 's|%%PREFIX%%|${PREFIX}|; s|%%DOCSDIR%%|${DOCSDIR}|' \
63
	@${ECHO_CMD}
73
		<pkg-message >${PKGMESSAGE} && ${CAT} ${PKGMESSAGE})
64
	@${CAT} ${PKGMESSAGE}
65
	@${ECHO_CMD}
74
66
75
.include <bsd.port.post.mk>
67
.include <bsd.port.post.mk>
(-)deng/files/patch-Src_dd__pinit.c (+10 lines)
Line 0 Link Here
1
--- Src/dd_pinit.c.orig	Sun Jun 20 13:25:49 2004
2
+++ Src/dd_pinit.c	Wed Sep 21 16:57:42 2005
3
@@ -227,7 +227,6 @@
4
 	FH_Clear();
5
 	ArgShutdown();
6
 	free(mainzone);
7
-	DD_ShutdownDGL();
8
 
9
 	// Close the message output file.
10
 	fclose(outFile);
(-)deng/files/pkg-message.in (+22 lines)
Line 0 Link Here
1
==============================================================================
2
3
Now you can start playing Doomsday!
4
5
All three games Doom, Heretic and Hexen could be launched with one executable.
6
7
A quick start command could be:
8
9
    %%PREFIX%%/bin/doomsday -g ${game} -f ${path_to_game_wad}
10
11
where
12
13
    game - could be jdoom, jheretic or jhexen;
14
    path_to_game_wad - path to game main wad file.
15
16
Check documentation in %%DOCSDIR%% for other options.
17
18
NOTE: when you run Doomsday it will create about 7 files/dirs in the current
19
directory (including temporary files, configuration, etc.) so it's preferable
20
to run it in a separate directory.
21
22
==============================================================================
(-)deng/pkg-message (-10 lines)
Lines 1-10 Link Here
1
******************************************************************************
2
Now you can start playing Doomsday!
3
All three games Doom, Heretic and Hexen could be launched with one executable.
4
A quick start command could be:
5
	%%PREFIX%%/bin/doomsday -g ${game} -f ${path_to_game_wad}
6
where
7
	game - could be jdoom, jheretic or jhexen;
8
	path_to_game_wad - path to game main wad file.
9
Check documentation in %%DOCSDIR%% for other options.
10
******************************************************************************
(-)deng/pkg-plist (-2 / +2 lines)
Lines 7-14 Link Here
7
lib/libdpmapload.so.0
7
lib/libdpmapload.so.0
8
lib/libdropengl.so
8
lib/libdropengl.so
9
lib/libdropengl.so.0
9
lib/libdropengl.so.0
10
%%WITH_OPENAL%%lib/libdsopenal.so
10
%%OPENAL%%lib/libdsopenal.so
11
%%WITH_OPENAL%%lib/libdsopenal.so.0
11
%%OPENAL%%lib/libdsopenal.so.0
12
lib/libdssdlmixer.so
12
lib/libdssdlmixer.so
13
lib/libdssdlmixer.so.0
13
lib/libdssdlmixer.so.0
14
lib/libjdoom.so
14
lib/libjdoom.so

Return to bug 86440