freebsd-ports/games/redeclipse/Makefile

97 lines
2.3 KiB
Makefile
Raw Normal View History

2013-02-28 17:31:12 +01:00
# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$
PORTNAME= redeclipse
2013-04-17 15:46:37 +02:00
PORTVERSION= 1.4
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
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Single-player and multi-player first-person ego-shooter
LICENSE_COMB= multi
LICENSE= MIT ZLIB
MANUAL_PACKAGE_BUILD= huge
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_BZIP2= yes
CONFIGURE_WRKSRC= ${WRKSRC}/src/enet
CONFIGURE_ARGS= --enable-shared=no --enable-static=yes
2013-04-17 15:46:37 +02:00
USE_AUTOTOOLS= aclocal:env automake:env autoconf:env
BUILD_WRKSRC= ${WRKSRC}/src
2013-04-17 15:46:37 +02:00
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
2013-04-17 15:46:37 +02:00
ALL_TARGET= libenet
2013-04-17 15:46:37 +02:00
SUB_FILES= redeclipse redeclipse_server
PORTDATA= *
2013-04-17 15:46:37 +02:00
PORTDOCS= *
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
.include <bsd.port.options.mk>
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}
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
DESKTOP_ENTRIES="Red Eclipse" \
"${COMMENT}" \
"${PREFIX}/share/pixmaps/redeclipse.ico" \
2013-04-17 15:46:37 +02:00
"redeclipse" \
"Game;" \
false
.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
.endif
2013-02-28 17:31:12 +01:00
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
CFLAGS+= -O3 -fomit-frame-pointer
CXXFLAGS+= -O3 -fomit-frame-pointer
.endif
do-install:
.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
.endfor
2013-04-17 15:46:37 +02:00
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "*" ${DOCSDIR}/
.endif
.if !defined(NOPORTDATA)
${MKDIR} ${DATADIR}
2013-04-17 15:46:37 +02:00
cd ${WRKSRC} && ${COPYTREE_SHARE} "game data" ${DATADIR}/
.endif
2013-02-28 17:31:12 +01:00
.if ${PORT_OPTIONS:MCLIENT}
${INSTALL_DATA} ${WRKSRC}/src/redeclipse.ico ${PREFIX}/share/pixmaps/
.endif
#post-install:
# @${FIND} ${DATADIR} -type f | \
# ${SED} -e 's|^${PREFIX}/||' >> ${TMPPLIST}
# @${FIND} ${DATADIR} -type d | ${SORT} -r | \
# ${SED} -e 's|^${PREFIX}/|@dirrm |' >> ${TMPPLIST}
.include <bsd.port.mk>