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

(-)games/uhexen2/Makefile (-99 / +79 lines)
Lines 2-15 Link Here
2
# $FreeBSD: head/games/uhexen2/Makefile 405891 2016-01-12 16:20:31Z amdmi3 $
2
# $FreeBSD: head/games/uhexen2/Makefile 405891 2016-01-12 16:20:31Z amdmi3 $
3
3
4
PORTNAME=	uhexen2
4
PORTNAME=	uhexen2
5
PORTVERSION=	1.5.6
5
PORTVERSION=	1.5.7
6
PORTREVISION=	2
7
CATEGORIES=	games
6
CATEGORIES=	games
8
MASTER_SITES=	SF/${PORTNAME}/Hammer%20of%20Thyrion/${PORTVERSION}/Source \
7
MASTER_SITES=	SF/${PORTNAME}/Hammer%20of%20Thyrion/${PORTVERSION}/Source \
9
		SF/${PORTNAME}/Hexen2%20GameData/gamedata-1.28:data
8
		SF/${PORTNAME}/Hexen2%20GameData/gamedata-1.29:data \
9
		SF/${PORTNAME}/Hexen2%20GameData/hexenworld-pakfiles:hw
10
DISTNAME=	hexen2source-${PORTVERSION}
10
DISTNAME=	hexen2source-${PORTVERSION}
11
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
11
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
12
		gamedata-all-1.28${EXTRACT_SUFX}:data
12
		gamedata-all-1.29${EXTRACT_SUFX}:data
13
DIST_SUBDIR=	${PORTNAME}
13
DIST_SUBDIR=	${PORTNAME}
14
14
15
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
Lines 18-102 Link Here
18
LICENSE=	GPLv2+
18
LICENSE=	GPLv2+
19
LICENSE_FILE=	${WRKSRC}/LICENSE.txt
19
LICENSE_FILE=	${WRKSRC}/LICENSE.txt
20
20
21
LIB_DEPENDS=	libmad.so:${PORTSDIR}/audio/libmad \
22
		libvorbis.so:${PORTSDIR}/audio/libvorbis
23
24
OPTIONS_MULTI=	BIN
25
OPTIONS_MULTI_BIN=	HEXEN2 HW
26
OPTIONS_DEFINE=	LAUNCHER_GTK1 LAUNCHER_GTK2 LAUNCHER_GTK3 DOCS
27
OPTIONS_DEFAULT=	HEXEN2 HW LAUNCHER_GTK2
28
OPTIONS_DEFINE_i386=	ASM
29
OPTIONS_DEFAULT_i386=	ASM
30
31
HEXEN2_DESC=		Build Hexen II clients and servers
32
HW_DESC=		Build HexenWorld clients and servers
33
LAUNCHER_GTK1_DESC=	Build graphical (GTK1) game launcher
34
LAUNCHER_GTK2_DESC=	Build graphical (GTK2) game launcher
35
LAUNCHER_GTK3_DESC=	Build graphical (GTK3) game launcher
36
37
USES=		gmake pkgconfig tar:tgz
21
USES=		gmake pkgconfig tar:tgz
38
USE_SDL=	sdl
39
USE_GL=		gl
22
USE_GL=		gl
40
MAKE_ENV=	X11BASE="${LOCALBASE}"
23
USE_SDL=	sdl
41
MAKE_JOBS_UNSAFE=yes
24
MAKE_ARGS=	X11BASE="${LOCALBASE}"
25
MAKE_JOBS_UNSAFE=	yes
42
26
43
SUB_FILES=	pkg-message
27
SUB_FILES=	pkg-message
44
28
45
PORTSCOUT=	skipb:yes
29
PORTSCOUT=	skipb:yes
46
30
47
.include <bsd.port.options.mk>
31
OPTIONS_DEFINE=		DOCS FLAC MIKMOD OGG OPUS
48
32
OPTIONS_MULTI=		BIN
49
.if ${PORT_OPTIONS:MHEXEN2}
33
OPTIONS_MULTI_BIN=	HEXEN2 HW
50
MAKE_ENV+=	BUILD_HEXEN2=yes
34
OPTIONS_RADIO=		MP3LIB VORBISLIB
51
PLIST_SUB+=	HEXEN2=""
35
OPTIONS_RADIO_MP3LIB=	MAD MPG123
52
UH2_BIN+=	engine/hexen2/glhexen2 \
36
OPTIONS_RADIO_VORBISLIB=	TREMOR VORBIS
53
		engine/hexen2/hexen2
37
OPTIONS_DEFAULT=	HEXEN2 HW MAD OGG VORBIS
54
.else
38
OPTIONS_DEFINE_i386=	ASM
55
PLIST_SUB+=	HEXEN2="@comment "
39
OPTIONS_DEFAULT_i386=	ASM
56
.endif
40
OPTIONS_SUB=		yes
57
58
.if ${PORT_OPTIONS:MHW}
59
MASTER_SITES+=	SF/${PORTNAME}/Hexen2%20GameData/hexenworld-pakfiles:hw
60
DISTFILES+=	hexenworld-pakfiles-0.15${EXTRACT_SUFX}:hw
61
MAKE_ENV+=	BUILD_HW=yes
62
PLIST_SUB+=	HW=""
63
UH2_BIN+=	engine/hexenworld/client/glhwcl \
64
		engine/hexenworld/client/hwcl \
65
		engine/hexenworld/server/hwsv \
66
		hw_utils/hwmaster/hwmaster
67
.else
68
PLIST_SUB+=	HW="@comment "
69
.endif
70
41
71
.if ${PORT_OPTIONS:MLAUNCHER_GTK1}
42
ASM_BUILD_DEPENDS=	nasm:${PORTSDIR}/devel/nasm
72
USE_GNOME+=	gtk12
43
ASM_MAKE_ARGS_OFF=	USE_X86_ASM=no
73
MAKE_ENV+=	BUILD_LAUNCHER_GTK1=yes
44
FLAC_LIB_DEPENDS=	libFLAC.so:${PORTSDIR}/audio/flac
74
PLIST_SUB+=	LAUNCHER_GTK1=""
45
FLAC_MAKE_ARGS=		USE_CODEC_FLAC=yes
75
.else
46
HEXEN2_DESC=		Build Hexen II clients and servers
76
PLIST_SUB+=	LAUNCHER_GTK1="@comment "
47
HEXEN2_MAKE_ARGS=	BUILD_HEXEN2=yes
77
.endif
48
HW_DESC=		Build HexenWorld clients and servers
49
HW_DISTFILES=		hexenworld-pakfiles-0.15${EXTRACT_SUFX}:hw
50
HW_MAKE_ARGS=		BUILD_HW=yes
51
MAD_LIB_DEPENDS=	libmad.so:${PORTSDIR}/audio/libmad
52
MAD_MAKE_ARGS=		MP3LIB=mad
53
MIKMOD_LIB_DEPENDS=	libmikmod.so:${PORTSDIR}/audio/libmikmod
54
MIDMOD_MAKE_ARGS=	USE_CODEC_MIKMOD=yes
55
MP3LIB_DESC=		MP3 audio codec
56
MPG123_LIB_DEPENDS=	libmpg123.so:${PORTSDIR}/audio/mpg123
57
MPG123_MAKE_ARGS=	MP3LIB=mpg123
58
OGG_LIB_DEPENDS=	libogg.so:${PORTSDIR}/audio/libogg
59
OGG_MAKE_ARGS_OFF=	USE_CODEC_OGG=no
60
OPUS_LIB_DEPENDS=	libopusfile.so:${PORTSDIR}/audio/opusfile
61
OPUS_MAKE_ARGS=		USE_CODEC_OPUS=yes
62
OPUS_IMPLIES=		OGG
63
TREMOR_LIB_DEPENDS=	libvorbisidec.so:${PORTSDIR}/audio/libtremor
64
TREMOR_MAKE_ARGS=	VORBISLIB=tremor
65
TREMOR_IMPLIES=		OGG
66
VORBIS_LIB_DEPENDS=	libvorbis.so:${PORTSDIR}/audio/libvorbis
67
VORBIS_MAKE_ARGS=	VORBISLIB=vorbis
68
VORBIS_IMPLIES=		OGG
69
VORBISLIB_DESC=		Vorbis audio codec
78
70
79
.if ${PORT_OPTIONS:MLAUNCHER_GTK2}
71
.include <bsd.port.options.mk>
80
USE_GNOME+=	gtk20
81
MAKE_ENV+=	BUILD_LAUNCHER_GTK2=yes
82
PLIST_SUB+=	LAUNCHER_GTK2=""
83
.else
84
PLIST_SUB+=	LAUNCHER_GTK2="@comment "
85
.endif
86
72
87
.if ${PORT_OPTIONS:MLAUNCHER_GTK3}
73
.if !${PORT_OPTIONS:MMAD} && !${PORT_OPTIONS:MMPG123}
88
USE_GNOME+=	gtk30
74
MAKE_ARGS+=	USE_CODEC_MP3=no
89
MAKE_ENV+=	BUILD_LAUNCHER_GTK3=yes
90
PLIST_SUB+=	LAUNCHER_GTK3=""
91
.else
92
PLIST_SUB+=	LAUNCHER_GTK3="@comment "
93
.endif
75
.endif
94
76
95
.if ${PORT_OPTIONS:MASM}
77
.if !${PORT_OPTIONS:MTREMOR} && !${PORT_OPTIONS:MVORBIS}
96
BUILD_DEPENDS+=	nasm:${PORTSDIR}/devel/nasm
78
MAKE_ARGS+=	USE_CODEC_VORBIS=no
97
MAKE_ENV+=	USE_X86_ASM=yes
98
.else
99
MAKE_ENV+=	USE_X86_ASM=no
100
.endif
79
.endif
101
80
102
post-extract:
81
post-extract:
Lines 105-114 Link Here
105
post-patch:
84
post-patch:
106
.for f in engine/hexen2/Makefile engine/hexenworld/client/Makefile \
85
.for f in engine/hexen2/Makefile engine/hexenworld/client/Makefile \
107
	engine/hexenworld/server/Makefile hw_utils/hwmaster/Makefile \
86
	engine/hexenworld/server/Makefile hw_utils/hwmaster/Makefile \
108
	launcher/Makefile libs/timidity/Makefile
87
	libs/timidity/Makefile
109
	@${REINPLACE_CMD} -e \
88
	@${REINPLACE_CMD} -e \
110
		'/^USE_X86_ASM/s|^|#| ; \
89
		'/^CPU_X86/s|=.*|=| ; \
111
		 /^CPU_X86/s|^|#| ; \
112
		 /^CFLAGS/s| -g | | ; \
90
		 /^CFLAGS/s| -g | | ; \
113
		 /^CFLAGS/s| -O2 | | ;' ${WRKSRC}/${f}
91
		 /^CFLAGS/s| -O2 | | ;' ${WRKSRC}/${f}
114
.endfor
92
.endfor
Lines 122-153 Link Here
122
.endfor
100
.endfor
123
101
124
do-install:
102
do-install:
125
.for f in ${UH2_BIN}
103
	@${MKDIR} ${STAGEDIR}${DATADIR}/data1
126
	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
127
.endfor
128
	${MKDIR} ${STAGEDIR}${DATADIR}/data1
129
.for f in default.cfg hexen.rc progs.dat progs2.dat strings.txt
104
.for f in default.cfg hexen.rc progs.dat progs2.dat strings.txt
130
	${INSTALL_DATA} ${WRKDIR}/data1/${f} ${STAGEDIR}${DATADIR}/data1
105
	(cd ${WRKDIR}/data1 && ${INSTALL_DATA} ${f} \
106
		${STAGEDIR}${DATADIR}/data1)
131
.endfor
107
.endfor
132
	${INSTALL_DATA} ${WRKDIR}/patchdat/data1/* ${STAGEDIR}${DATADIR}/data1
108
	(cd ${WRKDIR}/patchdat/data1 && ${INSTALL_DATA} * \
133
	@(cd ${WRKDIR} && ${COPYTREE_SHARE} portals ${STAGEDIR}${DATADIR})
109
		${STAGEDIR}${DATADIR}/data1)
134
.if ${PORT_OPTIONS:MHW}
110
	@(cd ${WRKDIR} && ${COPYTREE_SHARE} portals \
135
	${MKDIR} ${STAGEDIR}${DATADIR}/hw
111
		${STAGEDIR}${DATADIR})
136
	${INSTALL_DATA} ${WRKDIR}/hw/* ${STAGEDIR}${DATADIR}/hw
112
137
.endif
113
post-install-DOCS-on:
138
.if ${PORT_OPTIONS:MLAUNCHER_GTK1}
114
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
139
	${INSTALL_PROGRAM} ${WRKSRC}/launcher/h2launcher.gtk1 \
115
	(cd ${WRKSRC}/docs && ${INSTALL_DATA} * \
140
		${STAGEDIR}${PREFIX}/bin
116
		${STAGEDIR}${DOCSDIR})
141
.endif
117
142
.if ${PORT_OPTIONS:MLAUNCHER_GTK2}
118
post-install-HEXEN2-on:
143
	${INSTALL_PROGRAM} ${WRKSRC}/launcher/h2launcher.gtk2 \
119
	(cd ${WRKSRC}/engine/hexen2 && ${INSTALL_PROGRAM} \
144
		${STAGEDIR}${PREFIX}/bin
120
		glhexen2 hexen2 ${STAGEDIR}${PREFIX}/bin)
145
.endif
121
146
.if ${PORT_OPTIONS:MLAUNCHER_GTK3}
122
post-install-HW-on:
147
	${INSTALL_PROGRAM} ${WRKSRC}/launcher/h2launcher.gtk3 \
123
	(cd ${WRKSRC}/engine/hexenworld/client && ${INSTALL_PROGRAM} \
148
		${STAGEDIR}${PREFIX}/bin
124
		glhwcl hwcl ${STAGEDIR}${PREFIX}/bin)
149
.endif
125
	(cd ${WRKSRC}/engine/hexenworld/server && ${INSTALL_PROGRAM} \
150
	${MKDIR} ${STAGEDIR}${DOCSDIR}
126
		hwsv ${STAGEDIR}${PREFIX}/bin)
151
	${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
127
	(cd ${WRKSRC}/hw_utils/hwmaster && ${INSTALL_PROGRAM} \
128
		hwmaster ${STAGEDIR}${PREFIX}/bin)
129
	@${MKDIR} ${STAGEDIR}${DATADIR}/hw
130
	(cd ${WRKDIR}/hw && ${INSTALL_DATA} * \
131
		${STAGEDIR}${DATADIR}/hw)
152
132
153
.include <bsd.port.mk>
133
.include <bsd.port.mk>
(-)games/uhexen2/distinfo (-4 / +4 lines)
Lines 1-6 Link Here
1
SHA256 (uhexen2/hexen2source-1.5.6.tgz) = 4cf9a32aeb521076c2a6ee0d6a14d98ba27706403360a01e93b4754eb9d7619d
1
SHA256 (uhexen2/hexen2source-1.5.7.tgz) = cdba2b9f0c24260bb06cfead8dfd3a01d9fa924b55bfaa84f79cd874bb69bbd0
2
SIZE (uhexen2/hexen2source-1.5.6.tgz) = 2357833
2
SIZE (uhexen2/hexen2source-1.5.7.tgz) = 2388892
3
SHA256 (uhexen2/gamedata-all-1.28.tgz) = ad40848ce4d009a9be1db551ee0e4cfbe2335ffea95bb2eccaf69314f4b8d571
3
SHA256 (uhexen2/gamedata-all-1.29.tgz) = 5bdd2cf2fd7b96147675af3ae6cfba4f1ee7f916c95b2196e9666882cd271f89
4
SIZE (uhexen2/gamedata-all-1.28.tgz) = 3805780
4
SIZE (uhexen2/gamedata-all-1.29.tgz) = 3703102
5
SHA256 (uhexen2/hexenworld-pakfiles-0.15.tgz) = 49462cdf984deee7350d03c7d192d1c34d682647ffc9d06de4308e0a7c71c4d9
5
SHA256 (uhexen2/hexenworld-pakfiles-0.15.tgz) = 49462cdf984deee7350d03c7d192d1c34d682647ffc9d06de4308e0a7c71c4d9
6
SIZE (uhexen2/hexenworld-pakfiles-0.15.tgz) = 4948641
6
SIZE (uhexen2/hexenworld-pakfiles-0.15.tgz) = 4948641
(-)games/uhexen2/files/Makefile (-15 lines)
Lines 15-32 Link Here
15
	$(MAKE) -C engine/hexenworld/client glhw localclean
15
	$(MAKE) -C engine/hexenworld/client glhw localclean
16
	$(MAKE) -C hw_utils/hwmaster hwmaster clean
16
	$(MAKE) -C hw_utils/hwmaster hwmaster clean
17
endif
17
endif
18
ifeq ($(BUILD_LAUNCHER_GTK1),yes)
19
	$(MAKE) -C launcher GTK1=yes
20
	cd launcher && mv h2launcher h2launcher.gtk1
21
	$(MAKE) -C launcher clean
22
endif
23
ifeq ($(BUILD_LAUNCHER_GTK2),yes)
24
	$(MAKE) -C launcher
25
	cd launcher && mv h2launcher h2launcher.gtk2
26
	$(MAKE) -C launcher clean
27
endif
28
ifeq ($(BUILD_LAUNCHER_GTK3),yes)
29
	$(MAKE) -C launcher GTK3=yes
30
	cd launcher && mv h2launcher h2launcher.gtk3
31
	$(MAKE) -C launcher clean
32
endif
(-)games/uhexen2/pkg-descr (-10 / +10 lines)
Lines 1-15 Link Here
1
In 2000, Raven Software released the source code to their class based shooter
1
In 2000, Raven Software released the source code to their class based
2
game Hexen II and its multiplayer extension HexenWorld.
2
shooter game Hexen II and its multiplayer extension HexenWorld.
3
3
4
Since then, there has been some source ports of this game, most notably the
4
Since then, there has been some source ports of this game, most notably
5
now neglected Anvil of Thyrion project. But nothing has been done for Linux
5
the now neglected Anvil of Thyrion project. But nothing has been done
6
since the beginning of 2002.
6
for Linux since the beginning of 2002.
7
7
8
The Hammer of Thyrion project continues the development for Linux and BSD
8
The Hammer of Thyrion project continues the development for Linux and
9
people, with continued support for Windows users as well. Many bugs are fixed
9
BSD people, with continued support for Windows users as well. Many bugs
10
and even new features are added:
10
are fixed and even new features are added:
11
11
12
New sound modes, improved mouse handling, improved video modes, OpenGL glows
12
New sound modes, improved mouse handling, improved video modes, OpenGL
13
and more.
13
glows and more.
14
14
15
WWW: http://uhexen2.sourceforge.net/
15
WWW: http://uhexen2.sourceforge.net/
(-)games/uhexen2/pkg-plist (-4 lines)
Lines 1-8 Link Here
1
%%HEXEN2%%bin/glhexen2
1
%%HEXEN2%%bin/glhexen2
2
%%HW%%bin/glhwcl
2
%%HW%%bin/glhwcl
3
%%LAUNCHER_GTK1%%bin/h2launcher.gtk1
4
%%LAUNCHER_GTK2%%bin/h2launcher.gtk2
5
%%LAUNCHER_GTK3%%bin/h2launcher.gtk3
6
%%HEXEN2%%bin/hexen2
3
%%HEXEN2%%bin/hexen2
7
%%HW%%bin/hwcl
4
%%HW%%bin/hwcl
8
%%HW%%bin/hwmaster
5
%%HW%%bin/hwmaster
Lines 22-28 Link Here
22
%%PORTDOCS%%%%DOCSDIR%%/README.hwcl
19
%%PORTDOCS%%%%DOCSDIR%%/README.hwcl
23
%%PORTDOCS%%%%DOCSDIR%%/README.hwmaster
20
%%PORTDOCS%%%%DOCSDIR%%/README.hwmaster
24
%%PORTDOCS%%%%DOCSDIR%%/README.hwsv
21
%%PORTDOCS%%%%DOCSDIR%%/README.hwsv
25
%%PORTDOCS%%%%DOCSDIR%%/README.launcher
26
%%PORTDOCS%%%%DOCSDIR%%/README.music
22
%%PORTDOCS%%%%DOCSDIR%%/README.music
27
%%PORTDOCS%%%%DOCSDIR%%/README.win32
23
%%PORTDOCS%%%%DOCSDIR%%/README.win32
28
%%PORTDOCS%%%%DOCSDIR%%/ReleaseNotes
24
%%PORTDOCS%%%%DOCSDIR%%/ReleaseNotes

Return to bug 207161