using USE_LINUX_APPS+=dri. This is needed to switch a default linux base at 8-CURRENT to linux_base-f10. No PORTREVISION bump is needed since it's mere infrastructure fix. Affected ports: ----- emulators/linux-pete-mesagpu/Makefile emulators/linux-pete-xgl2gpu/Makefile games/atitd/Makefile games/linux-coldwar-demo/Makefile games/linux-darwinia-demo/Makefile games/linux-defcon/Makefile games/linux-doom3-demo/Makefile games/linux-gorky17-demo/Makefile games/linux-nerogame/Makefile games/linux-nwnclient/Makefile games/linux-savage/Makefile games/linux-savage-samuraiwars/Makefile games/linux-uplink-demo/Makefile games/linux-ut2003-demo/Makefile games/linux-ut2004-demo/Makefile games/linux-virtual-jay-peak/Makefile games/linux-warsow/Makefile graphics/linux-ac3d/Makefile math/mupad/Makefile net/skype12/Makefile ----- Approved by: maintainer timeout (2 months, the needed changes were submitted to emulation@ at 2009-04-09)
61 lines
1.8 KiB
Makefile
61 lines
1.8 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
|
|
|
|
USE_LINUX= yes
|
|
USE_LINUX_APPS= libvorbis sdl12 libtheora
|
|
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
|
|
USE_LINUX_APPS+=dri
|
|
.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>
|