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

Collapse All | Expand All

(-)redeclipse/Makefile (-35 / +53 lines)
Lines 1-41 Link Here
1
# New ports collection makefile for:	sauerbraten
1
# New ports collection makefile for:	redeclipse
2
# Date created:		2006-02-01
2
# Date created:		2011-03-18
3
# Whom:			Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
3
# Whom:			Sender Ghost <lightside@safebox.ru>
4
#
4
#
5
# $FreeBSD: ports/games/redeclipse/Makefile,v 1.29 2011/03/28 22:09:37 amdmi3 Exp $
5
# $FreeBSD: ports/games/redeclipse/Makefile,v 1.29 2011/03/28 22:09:37 amdmi3 Exp $
6
#
6
#
7
7
8
PORTNAME=	bloodfrontier
8
PORTNAME=	redeclipse
9
DISTVERSION=	B2
9
PORTVERSION=	1.0
10
PORTREVISION=	4
10
PORTREVISION?=	0
11
CATEGORIES=	games
11
CATEGORIES=	games
12
MASTER_SITES=	SF/${PORTNAME}/Blood%20Frontier%20Beta%202
12
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}_${PORTVERSION}
13
DISTNAME=	${PORTNAME}-${DISTVERSION}-linux
13
DISTNAME=	${PORTNAME}_${PORTVERSION}_linux
14
14
15
MAINTAINER=	amdmi3@FreeBSD.org
15
MAINTAINER=	amdmi3@FreeBSD.org
16
COMMENT=	Single- and multi-player first-person shooter based on Cube 2
16
COMMENT=	A single-player and multi-player first-person ego-shooter
17
18
LICENSE_COMB=	multi
19
LICENSE=	MIT ZLIB
20
LICENSE_NAME_ZLIB=	zlib license
21
LICENSE_FILE_ZLIB=	${WRKSRC}/license.txt
22
LICENSE_PERMS_ZLIB=	${_LICENSE_PERMS_DEFAULT}
23
LICENSE_GROUPS_ZLIB=	FSF GPL OSI
17
24
18
USE_GMAKE=	yes
25
USE_GMAKE=	yes
19
GNU_CONFIGURE=	yes
26
GNU_CONFIGURE=	yes
20
USE_BZIP2=	yes
27
USE_BZIP2=	yes
28
CONFIGURE_ENV=	ACLOCAL=true AUTOCONF=true AUTOMAKE=true
21
CONFIGURE_WRKSRC=	${WRKSRC}/src/enet
29
CONFIGURE_WRKSRC=	${WRKSRC}/src/enet
30
CONFIGURE_ARGS=	--enable-shared=no --enable-static=yes
22
BUILD_WRKSRC=	${WRKSRC}/src
31
BUILD_WRKSRC=	${WRKSRC}/src
23
WRKSRC=		${WRKDIR}/${PORTNAME}
32
WRKSRC=		${WRKDIR}/${PORTNAME}
24
33
ALL_TARGET=	libenet
25
ALL_TARGET=	libenet ${BINARIES}
26
MAKE_JOBS_SAFE=	yes
34
MAKE_JOBS_SAFE=	yes
27
35
28
SUB_FILES=	bfclient bfserver
36
PORTDATA=	data redeclipse.ico
37
PORTDOCS=	*
29
38
30
OPTIONS=	CLIENT "Build client" on \
39
OPTIONS=	CLIENT "Build client" on \
31
		DEDICATED "Build dedicated server" on \
40
		DEDICATED "Build dedicated server" on
32
		OPTIMIZED_CFLAGS "Enabled additional optimizations" on
33
41
34
.include <bsd.port.options.mk>
42
SUB_FILES=	redeclipse_client redeclipse_server pkg-message
35
43
36
.if ${ARCH} == "sparc64"
44
.include <bsd.port.pre.mk>
37
BROKEN=		does not build on sparc64
38
.endif
39
45
40
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_DEDICATED)
46
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_DEDICATED)
41
IGNORE=		needs at least one executable (CLIENT or DEDICATED)
47
IGNORE=		needs at least one executable (CLIENT or DEDICATED)
Lines 44-75 Link Here
44
.if !defined(WITHOUT_CLIENT)
50
.if !defined(WITHOUT_CLIENT)
45
USE_GL=		yes
51
USE_GL=		yes
46
USE_SDL=	image mixer sdl
52
USE_SDL=	image mixer sdl
47
PLIST_FILES+=	bin/bfclient libexec/bfclient
53
ALL_TARGET+=	client
48
BINARIES+=	client
54
RE_BIN+=	client
55
56
DESKTOP_ENTRIES="Red Eclipse" "${COMMENT}" \
57
	"${DATADIR}/redeclipse.ico" "${PORTNAME}_client" \
58
	"Application;Game;" ${FALSE}
49
.endif
59
.endif
50
60
51
.if !defined(WITHOUT_DEDICATED)
61
.if !defined(WITHOUT_DEDICATED)
52
PLIST_FILES+=	bin/bfserver libexec/bfserver
62
ALL_TARGET+=	server
53
BINARIES+=	server
63
RE_BIN+=	server
54
.endif
64
.endif
55
65
56
.if defined(WITH_OPTIMIZED_CFLAGS)
66
pre-build:
57
CFLAGS+=	-O3 -fomit-frame-pointer
67
	@${REINPLACE_CMD} -e '/^CXXFLAGS/d' \
58
CXXFLAGS+=	-O3 -fomit-frame-pointer
68
	-e 's|sdl-config|$${SDL_CONFIG}|' \
59
.endif
69
	-e 's|/usr/X11R6|$${LOCALBASE}|' \
70
	${BUILD_WRKSRC}/Makefile
71
	@${MV} ${BUILD_WRKSRC}/redeclipse.ico ${WRKSRC}
60
72
61
do-install:
73
do-install:
62
.for f in ${BINARIES}
74
.for f in ${RE_BIN}
63
	${INSTALL_SCRIPT} ${WRKDIR}/bf${f} ${PREFIX}/bin
75
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}_${f} ${PREFIX}/bin
64
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/bf${f} ${PREFIX}/libexec
76
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/re${f} ${PREFIX}/libexec/${PORTNAME}_${f}
65
.endfor
77
.endfor
78
.if !defined(NOPORTDATA)
66
	${MKDIR} ${DATADIR}
79
	${MKDIR} ${DATADIR}
67
	cd ${WRKSRC}/data && ${COPYTREE_SHARE} "." ${DATADIR}/
80
	cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" ${DATADIR}
81
.endif
82
.if !defined(NOPORTDOCS)
83
	${MKDIR} ${DOCSDIR}
84
	cd ${BUILD_WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
85
.endif
68
86
69
post-install:
87
post-install:
70
	@${FIND} ${DATADIR} -type f | \
88
.for f in ${RE_BIN}
71
		${SED} -e 's|^${PREFIX}/||' >> ${TMPPLIST}
89
	@${ECHO_CMD} bin/${PORTNAME}_${f} >> ${TMPPLIST}
72
	@${FIND} ${DATADIR} -type d | ${SORT} -r | \
90
	@${ECHO_CMD} libexec/${PORTNAME}_${f} >> ${TMPPLIST}
73
		${SED} -e 's|^${PREFIX}/|@dirrm |' >> ${TMPPLIST}
91
.endfor
74
92
75
.include <bsd.port.mk>
93
.include <bsd.port.post.mk>
(-)redeclipse/distinfo (-3 / +2 lines)
Lines 1-3 Link Here
1
MD5 (bloodfrontier-B2-linux.tar.bz2) = 814df812d14714687f44085c83d5b91b
1
SHA256 (redeclipse_1.0_linux.tar.bz2) = 19f80ca14c3898ff166c6708885a6afee7aeb7acbc1133fc25a53faf12a0b874
2
SHA256 (bloodfrontier-B2-linux.tar.bz2) = e05e7e18661d906fc0685c72704493fe8a8bbd0b803747ceaf4038527f957b58
2
SIZE (redeclipse_1.0_linux.tar.bz2) = 443072620
3
SIZE (bloodfrontier-B2-linux.tar.bz2) = 417998023
(-)redeclipse/files/bfclient.in (-3 lines)
Lines 1-3 Link Here
1
#!/bin/sh
2
3
cd %%DATADIR%% && exec %%PREFIX%%/libexec/bfclient "$@"
(-)redeclipse/files/bfserver.in (-3 lines)
Lines 1-3 Link Here
1
#!/bin/sh
2
3
cd %%DATADIR%% && exec %%PREFIX%%/libexec/bfserver "$@"
(-)redeclipse/files/patch-src_Makefile (-19 lines)
Lines 1-19 Link Here
1
--- src/Makefile.orig	2009-11-25 14:52:58.000000000 +0300
2
+++ src/Makefile	2009-12-17 00:09:47.000000000 +0300
3
@@ -1,5 +1,4 @@
4
 #CXXFLAGS= -ggdb3
5
-CXXFLAGS= -O3 -fomit-frame-pointer
6
 override CXXFLAGS+= -Wall -fsigned-char
7
 
8
 PLATFORM= $(shell uname -s)
9
@@ -21,8 +20,8 @@
10
 CLIENT_INCLUDES= -DINTERFACE -DIRC $(INCLUDES) -Iinclude
11
 CLIENT_LIBS= -mwindows -lmingw32 -Llib -lSDLmain -lSDL -lSDL_image -lSDL_mixer -lzdll -lopengl32 -lenet -lws2_32 -lwinmm
12
 else
13
-CLIENT_INCLUDES= -DINTERFACE -DIRC $(INCLUDES) -I/usr/X11R6/include `sdl-config --cflags`
14
-CLIENT_LIBS= -Lenet -lenet -L/usr/X11R6/lib `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL
15
+CLIENT_INCLUDES= -DINTERFACE -DIRC $(INCLUDES) -I${LOCALBASE}/include `${SDL_CONFIG} --cflags`
16
+CLIENT_LIBS= -Lenet -lenet -L${LOCALBASE}/lib `${SDL_CONFIG} --libs` -lSDL_image -lSDL_mixer -lz -lGL
17
 endif
18
 ifeq ($(PLATFORM),Linux)
19
 CLIENT_LIBS+= -lrt
(-)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 (-5 / +5 lines)
Lines 1-6 Link Here
1
Single-player and multi-player first-person shooter, built as a
1
Red Eclipse is a single-player and multi-player first-person ego-shooter,
2
total conversion of Cube Engine 2, which lends itself toward a
2
built as a total conversion of Cube Engine 2, which lends itself toward
3
balanced gameplay, completely at the control of map makers, while
3
a balanced gameplay, with a general theme of agility in a variety of
4
maintaining a general theme of tactics and low gravity.
4
environments.
5
5
6
WWW:	http://www.bloodfrontier.com/
6
WWW:	http://www.redeclipse.net/

Return to bug 155682