blob: aac80146a7ac3c3d4db86b2f9abee1780f59d7a4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# 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
. 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>
|