View | Details | Raw Unified | Return to bug 155682 | Differences between
and this patch

Collapse All | Expand All

(-)redeclipse/Makefile (+92 lines)
Line 0 Link Here
1
# New ports collection makefile for:	redeclipse
2
# Date created:		2011-03-17
3
# Whom:			Sender Ghost <lightside@safebox.ru>
4
#
5
6
PORTNAME=	redeclipse
7
PORTVERSION=	1.0
8
PORTREVISION?=	0
9
CATEGORIES=	games
10
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}_${PORTVERSION}
11
DISTNAME=	${PORTNAME}_${PORTVERSION}_linux
12
13
MAINTAINER=	ports@FreeBSD.org
14
COMMENT=	A single-player and multi-player first-person ego-shooter,\
15
built as a total conversion of Cube Engine 2
16
17
LICENSE_COMB=	multi
18
LICENSE=	MIT ZLIB
19
LICENSE_NAME_ZLIB=	zlib license
20
LICENSE_FILE_ZLIB=	${WRKSRC}/license.txt
21
LICENSE_PERMS_ZLIB=	${_LICENSE_PERMS_DEFAULT}
22
LICENSE_GROUPS_ZLIB=	FSF GPL OSI
23
24
USE_GMAKE=	yes
25
GNU_CONFIGURE=	yes
26
USE_BZIP2=	yes
27
CONFIGURE_ENV=	ACLOCAL=true AUTOCONF=true AUTOMAKE=true
28
CONFIGURE_WRKSRC=	${WRKSRC}/src/enet
29
CONFIGURE_ARGS=	--enable-shared=no --enable-static=yes
30
BUILD_WRKSRC=	${WRKSRC}/src
31
WRKSRC=		${WRKDIR}/${PORTNAME}
32
ALL_TARGET=	libenet
33
MAKE_JOBS_SAFE=	yes
34
35
PORTDATA=	data redeclipse.ico
36
PORTDOCS=	*
37
38
OPTIONS=	CLIENT "Build client" on \
39
		DEDICATED "Build dedicated server" on
40
41
SUB_FILES=	redeclipse_client redeclipse_server pkg-message
42
43
.include <bsd.port.pre.mk>
44
45
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_DEDICATED)
46
IGNORE=		needs at least one executable (CLIENT or DEDICATED)
47
.endif
48
49
.if !defined(WITHOUT_CLIENT)
50
USE_GL=		yes
51
USE_SDL=	image mixer sdl
52
ALL_TARGET+=	client
53
RE_BIN+=	client
54
55
DESKTOP_ENTRIES="Red Eclipse" "${COMMENT}" \
56
	"${DATADIR}/redeclipse.ico" "${PORTNAME}_client" \
57
	"Application;Game;" ${FALSE}
58
.endif
59
60
.if !defined(WITHOUT_DEDICATED)
61
ALL_TARGET+=	server
62
RE_BIN+=	server
63
.endif
64
65
pre-build:
66
	@${REINPLACE_CMD} -e '/^CXXFLAGS/d' \
67
	-e 's|sdl-config|$${SDL_CONFIG}|' \
68
	-e 's|/usr/X11R6|$${LOCALBASE}|' \
69
	${BUILD_WRKSRC}/Makefile
70
	@${MV} ${BUILD_WRKSRC}/redeclipse.ico ${WRKSRC}
71
72
do-install:
73
.for f in ${RE_BIN}
74
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}_${f} ${PREFIX}/bin
75
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/re${f} ${PREFIX}/libexec/${PORTNAME}_${f}
76
.endfor
77
.if !defined(NOPORTDATA)
78
	${MKDIR} ${DATADIR}
79
	cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" ${DATADIR}
80
.endif
81
.if !defined(NOPORTDOCS)
82
	${MKDIR} ${DOCSDIR}
83
	cd ${BUILD_WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
84
.endif
85
86
post-install:
87
.for f in ${RE_BIN}
88
	@${ECHO_CMD} bin/${PORTNAME}_${f} >> ${TMPPLIST}
89
	@${ECHO_CMD} libexec/${PORTNAME}_${f} >> ${TMPPLIST}
90
.endfor
91
92
.include <bsd.port.post.mk>
(-)redeclipse/distinfo (+2 lines)
Line 0 Link Here
1
SHA256 (redeclipse_1.0_linux.tar.bz2) = 19f80ca14c3898ff166c6708885a6afee7aeb7acbc1133fc25a53faf12a0b874
2
SIZE (redeclipse_1.0_linux.tar.bz2) = 443072620
(-)redeclipse/files/pkg-message.in (+9 lines)
Line 0 Link Here
1
###############################################################################
2
3
1) First time, Red Eclipse creates a ~/.redeclipse directory with symlinks.
4
2) Config files are in the ~/.redeclipse directory.
5
3) If you want to add new bindings into ~/.redeclipse/config.cfg, see
6
7
   %%DATADIR%%/data/keymap.cfg.
8
9
###############################################################################
(-)redeclipse/files/redeclipse_client.in (+20 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# The executable needs to be run from its data directory, and needs to store
4
# configuration in it. We therefore mirror the data directory hierarchy in
5
# ~/.redeclipse, and create symlinks to the data files.
6
7
RE_OPTIONS="-r"
8
9
if [ -d ~/.redeclipse ]
10
then
11
	echo "Using existing ~/.redeclipse directory."
12
else
13
	echo "Creating ~/.redeclipse directory."
14
	cd %%DATADIR%% || exit 1
15
	find * -type d -exec mkdir -p ~/.redeclipse/{} \;
16
	find * -type f -exec ln -s %%DATADIR%%/{} ~/.redeclipse/{} \; 2>/dev/null
17
fi
18
19
cd ~/.redeclipse || exit 1
20
exec %%PREFIX%%/libexec/redeclipse_client ${RE_OPTIONS} "$@"
(-)redeclipse/files/redeclipse_server.in (+20 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# The executable needs to be run from its data directory, and needs to store
4
# configuration in it. We therefore mirror the data directory hierarchy in
5
# ~/.redeclipse, and create symlinks to the data files.
6
7
RE_OPTIONS=
8
9
if [ -d ~/.redeclipse ]
10
then
11
	echo "Using existing ~/.redeclipse directory."
12
else
13
	echo "Creating ~/.redeclipse directory."
14
	cd %%DATADIR%% || exit 1
15
	find * -type d -exec mkdir -p ~/.redeclipse/{} \;
16
	find * -type f -exec ln -s %%DATADIR%%/{} ~/.redeclipse/{} \; 2>/dev/null
17
fi
18
19
cd ~/.redeclipse || exit 1
20
exec %%PREFIX%%/libexec/redeclipse_server ${RE_OPTIONS} "$@"
(-)redeclipse/pkg-descr (+6 lines)
Line 0 Link Here
1
Red Eclipse is a single-player and multi-player first-person ego-shooter,
2
built as a total conversion of Cube Engine 2, which lends itself toward
3
a balanced gameplay, with a general theme of agility in a variety of
4
environments.
5
6
WWW:	http://www.redeclipse.net/

Return to bug 155682