2013-02-28 17:31:12 +01:00
|
|
|
# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
2006-04-30 12:25:12 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2011-06-28 02:19:36 +02:00
|
|
|
PORTNAME= redeclipse
|
2013-04-17 15:46:37 +02:00
|
|
|
PORTVERSION= 1.4
|
2006-04-30 12:25:12 +02:00
|
|
|
CATEGORIES= games
|
2012-09-04 00:33:43 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}_${PORTVERSION:C/^([0-9]+\.[0-9]+)\..*/\1/}
|
2013-04-17 15:46:37 +02:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}_nix
|
2006-04-30 12:25:12 +02:00
|
|
|
|
2009-12-21 10:28:57 +01:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2013-01-23 00:12:20 +01:00
|
|
|
COMMENT= Single-player and multi-player first-person ego-shooter
|
2011-06-28 02:19:36 +02:00
|
|
|
|
|
|
|
LICENSE_COMB= multi
|
|
|
|
LICENSE= MIT ZLIB
|
2006-04-30 12:25:12 +02:00
|
|
|
|
2011-07-01 22:39:43 +02:00
|
|
|
MANUAL_PACKAGE_BUILD= huge
|
|
|
|
|
2006-04-30 12:25:12 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2007-09-26 03:03:39 +02:00
|
|
|
USE_BZIP2= yes
|
2006-04-30 12:25:12 +02:00
|
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/src/enet
|
2011-06-28 02:19:36 +02:00
|
|
|
CONFIGURE_ARGS= --enable-shared=no --enable-static=yes
|
2013-04-17 15:46:37 +02:00
|
|
|
USE_AUTOTOOLS= aclocal:env automake:env autoconf:env
|
2006-04-30 12:25:12 +02:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
2013-04-17 15:46:37 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2009-12-21 10:28:57 +01:00
|
|
|
|
2013-04-17 15:46:37 +02:00
|
|
|
ALL_TARGET= libenet
|
2006-08-14 17:29:20 +02:00
|
|
|
|
2013-04-17 15:46:37 +02:00
|
|
|
SUB_FILES= redeclipse redeclipse_server
|
2011-06-28 02:19:36 +02:00
|
|
|
|
|
|
|
PORTDATA= *
|
2013-04-17 15:46:37 +02:00
|
|
|
PORTDOCS= *
|
2008-02-17 12:22:51 +01:00
|
|
|
|
2013-04-17 15:46:37 +02:00
|
|
|
OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS
|
2013-02-28 17:31:12 +01:00
|
|
|
OPTIONS_MULTI= COMPONENTS
|
|
|
|
OPTIONS_MULTI_COMPONENTS=CLIENT DEDICATED
|
|
|
|
OPTIONS_DEFAULT=CLIENT DEDICATED OPTIMIZED_CFLAGS
|
|
|
|
CLIENT_DESC= Build client
|
|
|
|
DEDICATED_DESC= Build dedicated server
|
2006-08-14 17:29:20 +02:00
|
|
|
|
2009-12-21 10:28:57 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2006-04-30 12:25:12 +02:00
|
|
|
|
2010-02-03 17:35:37 +01:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= does not build on sparc64
|
|
|
|
.endif
|
|
|
|
|
2013-02-28 17:31:12 +01:00
|
|
|
.if ${PORT_OPTIONS:MCLIENT}
|
2006-08-14 17:29:20 +02:00
|
|
|
USE_GL= yes
|
|
|
|
USE_SDL= image mixer sdl
|
2013-04-17 15:46:37 +02:00
|
|
|
PLIST_FILES+= bin/redeclipse libexec/redeclipse share/pixmaps/redeclipse.ico
|
|
|
|
BINARIES+= redeclipse
|
|
|
|
ALL_TARGET+= client
|
2011-06-28 02:19:36 +02:00
|
|
|
|
|
|
|
DESKTOP_ENTRIES="Red Eclipse" \
|
|
|
|
"${COMMENT}" \
|
|
|
|
"${PREFIX}/share/pixmaps/redeclipse.ico" \
|
2013-04-17 15:46:37 +02:00
|
|
|
"redeclipse" \
|
2013-01-23 00:12:20 +01:00
|
|
|
"Game;" \
|
|
|
|
false
|
2006-08-14 17:29:20 +02:00
|
|
|
.endif
|
|
|
|
|
2013-02-28 17:31:12 +01:00
|
|
|
.if ${PORT_OPTIONS:MDEDICATED}
|
2013-04-17 15:46:37 +02:00
|
|
|
PLIST_FILES+= bin/redeclipse_server libexec/redeclipse_server
|
|
|
|
BINARIES+= redeclipse_server
|
|
|
|
ALL_TARGET+= server
|
2006-04-30 12:25:12 +02:00
|
|
|
.endif
|
|
|
|
|
2013-02-28 17:31:12 +01:00
|
|
|
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
|
2011-03-29 00:09:38 +02:00
|
|
|
CFLAGS+= -O3 -fomit-frame-pointer
|
|
|
|
CXXFLAGS+= -O3 -fomit-frame-pointer
|
|
|
|
.endif
|
|
|
|
|
2006-04-30 12:25:12 +02:00
|
|
|
do-install:
|
2009-12-21 10:28:57 +01:00
|
|
|
.for f in ${BINARIES}
|
2013-04-17 15:46:37 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${f} ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${f} ${PREFIX}/libexec
|
2006-08-14 17:29:20 +02:00
|
|
|
.endfor
|
2013-04-17 15:46:37 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "*" ${DOCSDIR}/
|
|
|
|
.endif
|
2011-06-28 02:19:36 +02:00
|
|
|
.if !defined(NOPORTDATA)
|
2006-08-14 17:29:20 +02:00
|
|
|
${MKDIR} ${DATADIR}
|
2013-04-17 15:46:37 +02:00
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} "game data" ${DATADIR}/
|
2011-06-28 02:19:36 +02:00
|
|
|
.endif
|
2013-02-28 17:31:12 +01:00
|
|
|
.if ${PORT_OPTIONS:MCLIENT}
|
2011-06-28 02:19:36 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/redeclipse.ico ${PREFIX}/share/pixmaps/
|
|
|
|
.endif
|
2006-04-30 12:25:12 +02:00
|
|
|
|
2011-06-28 02:19:36 +02:00
|
|
|
#post-install:
|
|
|
|
# @${FIND} ${DATADIR} -type f | \
|
|
|
|
# ${SED} -e 's|^${PREFIX}/||' >> ${TMPPLIST}
|
|
|
|
# @${FIND} ${DATADIR} -type d | ${SORT} -r | \
|
|
|
|
# ${SED} -e 's|^${PREFIX}/|@dirrm |' >> ${TMPPLIST}
|
2009-12-21 10:28:57 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|