399681185c
Neuro-Evolving Robotic Operatives, or NERO for short, is a unique computer game that lets you play with adapting intelligent agents hands-on. Evolve your own robot army by tuning their artificial brains for challenging tasks, then pit them against your friends' teams in online competitions!. New features in NERO 2.0 include an interactive game mode called territory capture, as well as a new user interface and more extensive training tools. WWW: http://www.nerogame.org/
66 lines
2.1 KiB
Makefile
66 lines
2.1 KiB
Makefile
# New ports collection makefile for: linux-nerogame
|
|
# Date created: 2007-10-04
|
|
# Whom: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= nerogame
|
|
PORTVERSION= 2.0
|
|
CATEGORIES= games linux
|
|
MASTER_SITES= http://z.cs.utexas.edu/users/nn/nero/downloads/
|
|
PKGNAMEPREFIX= linux-
|
|
DISTNAME= nero2_linux_i386
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
COMMENT= Neuro envolving robotic operatives the game
|
|
|
|
RUN_DEPENDS= ${LINUXBASE}/usr/lib/libvorbis.so.0:${PORTSDIR}/audio/linux-libvorbis \
|
|
${LINUXBASE}/usr/lib/libSDL-1.2.so.0:${PORTSDIR}/devel/linux-sdl12 \
|
|
${LINUXBASE}/usr/lib/libtheora.so.0:${PORTSDIR}/multimedia/linux-libtheora
|
|
|
|
USE_LINUX= yes
|
|
NO_BUILD= yes
|
|
RESTRICTED= Nero is freeware, but i am not sure of its license
|
|
|
|
SUB_FILES= nerogame pkg-message
|
|
DATADIR= share/${PKGNAMEPREFIX}${PORTNAME}
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
OPTIONS= NVIDIA "Install support for nvidia" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_NVIDIA)
|
|
. if !exists(${LINUXBASE}/usr/lib/libGL.so.1)
|
|
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
|
|
. endif
|
|
.else
|
|
. if !exists(${LINUXBASE}/usr/X11R6/lib/libGL.so.1)
|
|
RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libGL.so.1:${PORTSDIR}/graphics/linux_dri
|
|
. endif
|
|
.endif
|
|
|
|
do-install:
|
|
${BRANDELF} -t Linux ${WRKSRC}/nero.bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/nero.bin ${PREFIX}/libexec/${PKGNAMEPREFIX}${PORTNAME}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
@${MKDIR} ${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME}
|
|
${INSTALL_DATA} ${WRKSRC}/libopenal.so ${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
.for DIRE in common nero
|
|
@${MKDIR} ${PREFIX}/${DATADIR}/${DIRE}
|
|
@cd ${WRKSRC}/${DIRE} && \
|
|
${FIND} * -type d -exec ${MKDIR} "${PREFIX}/${DATADIR}/${DIRE}/{}" \; && \
|
|
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${PREFIX}/${DATADIR}/${DIRE}/{}" \;
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/main.cs ${PREFIX}/${DATADIR}
|
|
|
|
@${MKDIR} ${PREFIX}/${DATADIR}/lib
|
|
${LN} -s ${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME}/libopenal.so ${PREFIX}/${DATADIR}/lib/libopenal.so
|
|
|
|
post-install:
|
|
${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|