2006-04-30 12:25:12 +02:00
|
|
|
# New ports collection makefile for: sauerbraten
|
|
|
|
# Date created: 2006-02-01
|
|
|
|
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2011-06-28 02:19:36 +02:00
|
|
|
PORTNAME= redeclipse
|
2012-09-04 00:33:43 +02:00
|
|
|
PORTVERSION= 1.3.1
|
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/}
|
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}_nix_bsd
|
2006-04-30 12:25:12 +02:00
|
|
|
|
2009-12-21 10:28:57 +01:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2011-06-28 02:19:36 +02:00
|
|
|
COMMENT= A single-player and multi-player first-person ego-shooter
|
|
|
|
|
|
|
|
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
|
2006-04-30 12:25:12 +02:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
2006-08-14 17:29:20 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2009-12-21 10:28:57 +01:00
|
|
|
|
|
|
|
ALL_TARGET= libenet ${BINARIES}
|
2009-05-09 14:19:58 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2006-08-14 17:29:20 +02:00
|
|
|
|
2011-06-28 02:19:36 +02:00
|
|
|
SUB_FILES= reclient reserver
|
|
|
|
|
|
|
|
PORTDATA= *
|
2008-02-17 12:22:51 +01:00
|
|
|
|
2006-08-14 17:29:20 +02:00
|
|
|
OPTIONS= CLIENT "Build client" on \
|
2011-03-29 00:09:38 +02:00
|
|
|
DEDICATED "Build dedicated server" on \
|
|
|
|
OPTIMIZED_CFLAGS "Enabled additional optimizations" on
|
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
|
|
|
|
|
2006-11-06 19:19:46 +01:00
|
|
|
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_DEDICATED)
|
2006-08-14 17:29:20 +02:00
|
|
|
IGNORE= needs at least one executable (CLIENT or DEDICATED)
|
|
|
|
.endif
|
|
|
|
|
2006-11-06 19:19:46 +01:00
|
|
|
.if !defined(WITHOUT_CLIENT)
|
2006-08-14 17:29:20 +02:00
|
|
|
USE_GL= yes
|
|
|
|
USE_SDL= image mixer sdl
|
2011-06-28 02:19:36 +02:00
|
|
|
PLIST_FILES+= bin/reclient libexec/reclient share/pixmaps/redeclipse.ico
|
2009-12-21 10:28:57 +01:00
|
|
|
BINARIES+= client
|
2011-06-28 02:19:36 +02:00
|
|
|
|
|
|
|
DESKTOP_ENTRIES="Red Eclipse" \
|
|
|
|
"${COMMENT}" \
|
|
|
|
"${PREFIX}/share/pixmaps/redeclipse.ico" \
|
|
|
|
"reclient" \
|
|
|
|
"Application;Game;" \
|
|
|
|
${FALSE}
|
2006-08-14 17:29:20 +02:00
|
|
|
.endif
|
|
|
|
|
2006-11-06 19:19:46 +01:00
|
|
|
.if !defined(WITHOUT_DEDICATED)
|
2011-06-28 02:19:36 +02:00
|
|
|
PLIST_FILES+= bin/reserver libexec/reserver
|
2009-12-21 10:28:57 +01:00
|
|
|
BINARIES+= server
|
2006-04-30 12:25:12 +02:00
|
|
|
.endif
|
|
|
|
|
2011-03-29 00:09:38 +02:00
|
|
|
.if defined(WITH_OPTIMIZED_CFLAGS)
|
|
|
|
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}
|
2011-06-28 02:19:36 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/re${f} ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/re${f} ${PREFIX}/libexec
|
2006-08-14 17:29:20 +02:00
|
|
|
.endfor
|
2011-06-28 02:19:36 +02:00
|
|
|
.if !defined(NOPORTDATA)
|
2006-08-14 17:29:20 +02:00
|
|
|
${MKDIR} ${DATADIR}
|
2009-12-21 10:28:57 +01:00
|
|
|
cd ${WRKSRC}/data && ${COPYTREE_SHARE} "." ${DATADIR}/
|
2011-06-28 02:19:36 +02:00
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_CLIENT)
|
|
|
|
${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>
|