diff options
author | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2007-10-05 20:19:00 +0000 |
---|---|---|
committer | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2007-10-05 20:19:00 +0000 |
commit | 399681185c8f68057a6ab3f7eb9d4f9552866317 (patch) | |
tree | 319aa22083682076a171ff9a8324b43d24ba9abe /games/linux-nerogame/Makefile | |
parent | 880aa06382fa7e63c8aa1fb9877da20f5fa62bef (diff) | |
download | ports-399681185c8f68057a6ab3f7eb9d4f9552866317.tar.gz ports-399681185c8f68057a6ab3f7eb9d4f9552866317.zip |
Notes
Diffstat (limited to 'games/linux-nerogame/Makefile')
-rw-r--r-- | games/linux-nerogame/Makefile | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/games/linux-nerogame/Makefile b/games/linux-nerogame/Makefile new file mode 100644 index 000000000000..92a675a04845 --- /dev/null +++ b/games/linux-nerogame/Makefile @@ -0,0 +1,66 @@ +# 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> |