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

(-)sent/linux-alienarena/Makefile (-70 / +40 lines)
Lines 6-67 Link Here
6
#
6
#
7
7
8
PORTNAME=	alienarena
8
PORTNAME=	alienarena
9
PORTVERSION=	2006
9
PORTVERSION=	2006.0.30
10
PORTREVISION=	1
11
CATEGORIES=	games linux
10
CATEGORIES=	games linux
12
MASTER_SITES=	http://www.forsakenweb.com/gamepage/loaders/games/:full \
11
MASTER_SITES=	http://cor.planetquake.gamespy.com/codered/files/:i386 \
13
		ftp://download1.gamershell.com/pub/pc/games/gamershell/demo/:full \
12
		ftp://download12.gamershell.com/pub/pc/gamershell/patch/:i386 \
14
		ftp://download2.gamershell.com/pub/pc/games/gamershell/demo/:full \
13
		http://offload1.icculus.org/~ravage/alienarena2006/:amd64
15
		ftp://download4.gamershell.com/pub/pc/games/gamershell/demo/:full \
16
		ftp://download6.gamershell.com/pub/pc/games/gamershell/demo/:full \
17
		ftp://download7.gamershell.com/pub/pc/games/gamershell/demo/:full \
18
		ftp://download9.gamershell.com/pub/pc/games/gamershell/demo/:full \
19
		ftp://download11.gamershell.com/pub/pc/gamershell/demo/:full \
20
		ftp://download12.gamershell.com/pub/pc/gamershell/demo/:full \
21
		ftp://download12.gamershell.com/pub/pc/gamershell/patch/:patch1 \
22
		http://offload1.icculus.org/~ravage/alienarena2006/:patch2
23
PKGNAMEPREFIX=	linux-
14
PKGNAMEPREFIX=	linux-
24
DISTFILES=	${PORTNAME}-${PORTVERSION}-x86.run:full \
15
DISTFILES=	#
25
		aa2k6-update-12-30.tar.gz:patch1 \
26
		${PORTNAME}-${PORTVERSION}-i386-update-12-30.tar.gz:patch2 \
27
		${PORTNAME}-${PORTVERSION}-x86_64-update-12-30.tar.gz:patch2
28
16
29
MAINTAINER=	acardenas@bsd.org.pe
17
MAINTAINER=	acardenas@bsd.org.pe
30
COMMENT=	Alien Arena 2006 (Linux version)
18
COMMENT=	Alien Arena 2006 (Linux version)
31
19
32
RUN_DEPENDS=	${LINUXBASE}/usr/X11R6/lib/libGLU.so.1.3:${PORTSDIR}/graphics/linux_dri \
20
RUN_DEPENDS=	${DATADIR}/arena/default.cfg:${PORTSDIR}/games/alienarena-data \
33
		${LINUXBASE}/usr/lib/libSDL-1.2.so.0:${PORTSDIR}/devel/linux-sdl12
21
		${LINUXBASE}/usr/X11R6/lib/libGLU.so.1.3:${PORTSDIR}/graphics/linux_dri
34
22
35
ONLY_FOR_ARCHS=	i386 amd64
23
ONLY_FOR_ARCHS=	i386 amd64
36
USE_X_PREFIX=	yes
24
USE_X_PREFIX=	yes
37
USE_LINUX=	yes
25
USE_LINUX=	yes
38
NO_BUILD=	yes
26
NO_BUILD=	yes
39
NO_WRKSUBDIR=	yes
27
NO_WRKSUBDIR=	yes
40
RESTRICTED=	"Redistribution is limited, see license"
41
NO_PACKAGE=	"Package will be 150MB, set FORCE_PACKAGE if you really want to build it"
42
28
43
ALIENDIR=	${PREFIX}/lib/${PORTNAME}
29
OPTIONS=	SDLSOUND "Install client that uses SDL for sound" on
44
ALIENDIR_REL=	${ALIENDIR:S,^${PREFIX}/,,}
30
45
LIBDIRS=	arena botinfo data1
31
SUB_FILES=	alienarena alienarena-ded
46
32
SUB_LIST=	LIBDIR=${LIBDIR}
47
SUB_FILES=	AlienArena AlienArenaDedicated
33
PLIST_SUB=	GAME_LIB=${GAME_LIB} LIBDIR=${LIBDIR:S/${PREFIX}\///}
48
34
LIBDIR=		${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME}
49
PLIST=		${WRKDIR}/pkg-plist
50
PLIST_FILES=	bin/AlienArena bin/AlienArenaDedicated \
51
		${ALIENDIR_REL}/crded ${ALIENDIR_REL}/crx \
52
		share/pixmaps/alienarena.xpm
53
PLIST_DIRS=	${ALIENDIR_REL}
54
PORTDOCS=	README.txt
55
35
56
DESKTOP_ENTRIES="Alien Arena 2006" \
36
DESKTOP_ENTRIES="Alien Arena 2006" \
57
		"Play Alien Arena 2006" \
37
		"Play Alien Arena 2006" \
58
		"alienarena.xpm" \
38
		"alienarena.xpm" \
59
		"AlienArena" \
39
		"linux-alienarena" \
60
		"Application;Game;" \
40
		"Application;Game;" \
61
		false
41
		false
62
42
63
.include <bsd.port.pre.mk>
43
.include <bsd.port.pre.mk>
64
44
45
EXE_TARGETS=	crx crded
46
SCRIPTS=	alienarena alienarena-ded
47
65
.if ${X_WINDOW_SYSTEM:L} != xfree86-3
48
.if ${X_WINDOW_SYSTEM:L} != xfree86-3
66
.if defined(WITH_NVIDIA_GL)
49
.if defined(WITH_NVIDIA_GL)
67
RUN_DEPENDS+=	${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
50
RUN_DEPENDS+=	${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
Lines 73-118 Link Here
73
.endif
56
.endif
74
57
75
.if ${ARCH} == "i386"
58
.if ${ARCH} == "i386"
76
ENGINE_ARCH=	x86
59
DISTFILES+=	aa2k6-update-12-30.tar.gz:i386
77
SDL_ARCH=	i386
60
GAME_LIB=	gamei386.so
78
.elif ${ARCH} == "amd64"
61
.elif ${ARCH} == "amd64"
79
ENGINE_ARCH=	x86_64
62
DISTFILES+=	alienarena-2006-x86_64-update-12-30.tar.gz:amd64
80
SDL_ARCH=	x86_64
63
GAME_LIB=	gamex86_64.so
81
.endif
64
.endif
82
65
83
do-extract:
66
.if defined(WITH_SDLSOUND)
84
	@${MKDIR} ${WRKSRC}
67
RUN_DEPENDS+=	${LINUXBASE}/usr/lib/libSDL-1.2.so.0:${PORTSDIR}/devel/linux-sdl12
85
	@cd ${WRKSRC} && \
68
EXE_TARGETS+=	crx.sdl
86
		${TAIL} -c +8778 ${_DISTDIR}/${PORTNAME}-${PORTVERSION}-x86.run | ${TAR} xfz -
69
SCRIPTS+=	alienarena-sdl
87
	@${TAR} xfj ${WRKSRC}/alienarena-2006-data.tar.bz2 -C ${WRKSRC}
70
SUB_FILES+=	alienarena-sdl
88
71
PLIST_SUB+=	SDLSOUND=""
89
	@${CP} -R ${WRKSRC}/engine/${ENGINE_ARCH}/* ${WRKSRC}
72
.else
90
	@${TAR} xfz ${_DISTDIR}/aa2k6-update-12-30.tar.gz -C ${WRKSRC}
73
PLIST_SUB+=	SDLSOUND="@comment "
91
	@${TAR} xfz ${_DISTDIR}/${PORTNAME}-${PORTVERSION}-${SDL_ARCH}-update-12-30.tar.gz -C ${WRKSRC}
74
.endif
92
93
pre-install:
94
	@${RM} -f ${PLIST}
95
	@cd ${WRKSRC} && \
96
	${FIND} ${LIBDIRS} -type f | ${SORT} \
97
		| ${SED} -e 's|^|${ALIENDIR_REL}/|' >> ${PLIST} && \
98
	${FIND} ${LIBDIRS} -type d | ${SORT} -r \
99
		| ${SED} -e 's|^|@dirrm ${ALIENDIR_REL}/|' >> ${PLIST}
100
75
101
do-install:
76
do-install:
102
	cd ${WRKSRC} && \
77
	${MKDIR} ${LIBDIR}/arena
103
	${FIND} ${LIBDIRS} -type d -exec ${MKDIR} "${ALIENDIR}/{}" \; && \
78
	${INSTALL_PROGRAM} ${WRKSRC}/arena/${GAME_LIB} ${LIBDIR}/arena
104
	${FIND} ${LIBDIRS} -type f -exec ${INSTALL_DATA} "{}" "${ALIENDIR}/{}" \;
79
	${LN} -s ${DATADIR}/arena/* ${LIBDIR}/arena
105
80
	${LN} -s ${DATADIR}/botinfo ${DATADIR}/data1 ${LIBDIR}
106
	${INSTALL_SCRIPT} ${WRKDIR}/AlienArena ${WRKDIR}/AlienArenaDedicated ${PREFIX}/bin
81
.for f in ${EXE_TARGETS}
107
	${INSTALL_PROGRAM} ${WRKSRC}/crded ${ALIENDIR}
82
	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${LIBDIR}
108
	${INSTALL_PROGRAM} ${WRKSRC}/crx.sdl ${ALIENDIR}/crx
83
.endfor
109
84
.for f in ${SCRIPTS}
110
	${MKDIR} ${PREFIX}/share/pixmaps
85
	${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/bin/${PKGNAMEPREFIX}${f}
111
	${INSTALL_DATA} ${WRKSRC}/alienarena.xpm ${PREFIX}/share/pixmaps
86
.endfor
112
113
.if !defined(NOPORTDOCS)
114
	${MKDIR} ${DOCSDIR}
115
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
116
.endif
117
87
118
.include <bsd.port.post.mk>
88
.include <bsd.port.post.mk>
(-)sent/linux-alienarena/distinfo (-6 lines)
Lines 1-12 Link Here
1
MD5 (alienarena-2006-x86.run) = 0467b8ec4b1cb77ef5299857b270d27d
2
SHA256 (alienarena-2006-x86.run) = 6277c5ee53b6477401c96bdaf6b1e97cc33ffeb07a8b6c13e070bc99fb5174ea
3
SIZE (alienarena-2006-x86.run) = 151752065
4
MD5 (aa2k6-update-12-30.tar.gz) = 73d800a2ab17000e77a64f56f421c8db
1
MD5 (aa2k6-update-12-30.tar.gz) = 73d800a2ab17000e77a64f56f421c8db
5
SHA256 (aa2k6-update-12-30.tar.gz) = 6fdf1014adcf2b674e2273038b09d10f710e6a654d4aefdf875d08df258a2922
2
SHA256 (aa2k6-update-12-30.tar.gz) = 6fdf1014adcf2b674e2273038b09d10f710e6a654d4aefdf875d08df258a2922
6
SIZE (aa2k6-update-12-30.tar.gz) = 9469494
3
SIZE (aa2k6-update-12-30.tar.gz) = 9469494
7
MD5 (alienarena-2006-i386-update-12-30.tar.gz) = 68afc25be8932a09b49ffd7150884826
8
SHA256 (alienarena-2006-i386-update-12-30.tar.gz) = 49fb2a478587e592893e50ea8ec7ce03498a265266c0045417b0aafc34c60083
9
SIZE (alienarena-2006-i386-update-12-30.tar.gz) = 962039
10
MD5 (alienarena-2006-x86_64-update-12-30.tar.gz) = 9be8f0629ddfe990009a6df0150d42d4
4
MD5 (alienarena-2006-x86_64-update-12-30.tar.gz) = 9be8f0629ddfe990009a6df0150d42d4
11
SHA256 (alienarena-2006-x86_64-update-12-30.tar.gz) = c4e60102fb20f3f879636b7e91ed35e4c0074463e298d5433fd10d48d4187d55
5
SHA256 (alienarena-2006-x86_64-update-12-30.tar.gz) = c4e60102fb20f3f879636b7e91ed35e4c0074463e298d5433fd10d48d4187d55
12
SIZE (alienarena-2006-x86_64-update-12-30.tar.gz) = 1133740
6
SIZE (alienarena-2006-x86_64-update-12-30.tar.gz) = 1133740
(-)sent/linux-alienarena/files/AlienArena.in (-4 lines)
Lines 1-4 Link Here
1
#!/bin/sh
2
3
cd %%PREFIX%%/lib/alienarena || exit 1
4
exec ./crx +set game arena "$@"
(-)sent/linux-alienarena/files/AlienArenaDedicated.in (-4 lines)
Lines 1-4 Link Here
1
#!/bin/sh
2
3
cd %%PREFIX%%/lib/alienarena || exit 1
4
exec ./crded +set game arena +set port 27910 "$@"
(-)sent/linux-alienarena/files/alienarena-ded.in (+5 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
cd %%LIBDIR%% || exit 1
4
5
exec ./crded +set game arena "$@"
(-)sent/linux-alienarena/files/alienarena-sdl.in (+5 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
cd %%LIBDIR%% || exit 1
4
5
exec ./crx.sdl +set game arena "$@"
(-)sent/linux-alienarena/files/alienarena.in (+5 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
cd %%LIBDIR%% || exit 1
4
5
exec ./crx +set game arena "$@"
(-)sent/linux-alienarena/pkg-message (+15 lines)
Line 0 Link Here
1
==============================================================================
2
3
Alien Arena 2006 (Linux version) has been installed.
4
5
The OSS (native FreeBSD sound) version of Alien Arena 2006 (named
6
"linux-alienarena") uses by default a slow sound speed, which causes a notable
7
delay. To solve this you have to run it once like this:
8
9
linux-alienarena +set sndspeed <speed>
10
11
Where <speed> could be 22050 and 44100 for example (the default that has the
12
delay is 11025, and the SDL version uses 22050). The value of "sndspeed" will
13
be saved in the configuration file for future runs.
14
15
==============================================================================
(-)sent/linux-alienarena/pkg-plist (+18 lines)
Line 0 Link Here
1
bin/linux-alienarena
2
bin/linux-alienarena-ded
3
%%SDLSOUND%%bin/linux-alienarena-sdl
4
%%LIBDIR%%/arena/ctf.cfg
5
%%LIBDIR%%/arena/default.cfg
6
%%LIBDIR%%/arena/%%GAME_LIB%%
7
%%LIBDIR%%/arena/maps.lst
8
%%LIBDIR%%/arena/motd.txt
9
%%LIBDIR%%/arena/pics
10
%%LIBDIR%%/arena/server.cfg
11
%%LIBDIR%%/arena/video
12
%%LIBDIR%%/botinfo
13
%%LIBDIR%%/crded
14
%%LIBDIR%%/crx
15
%%SDLSOUND%%%%LIBDIR%%/crx.sdl
16
%%LIBDIR%%/data1
17
@dirrm %%LIBDIR%%/arena
18
@dirrm %%LIBDIR%%

Return to bug 91837