blob: 2d0abdedb10110e7b88728dc84df4e2d8f020d87 (
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
|
PORTNAME= unigine-tropics
PORTVERSION= 1.3
CATEGORIES= benchmarks linux
MASTER_SITES= https://assets.unigine.com/d/
PKGNAMEPREFIX= linux-
DISTNAME= Unigine_Tropics-${PORTVERSION}
EXTRACT_SUFX= .run
MAINTAINER= danfe@FreeBSD.org
COMMENT= Unigine GPU benchmark depicting tropical paradise
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= precompiled, binary-only software for GNU/Linux
USES= linux
USE_LINUX= dri openal-soft xorglibs
NO_BUILD= yes
do-extract:
@${MKDIR} ${WRKSRC}
@${TAIL} -n 211448 ${DISTDIR}/${DISTFILES} | ${TAR} xzf - -C ${WRKSRC}
post-patch:
# Rename the scripts to avoid the clash with other Unigine benchmarks
.for script in 1024x768_windowed 1920x1080_fullscreen
@${SED} -e 's,\./bin,${DATADIR}/bin,' ${WRKSRC}/${script}.sh \
> ${WRKSRC}/${PORTNAME}_${script}.sh
.endfor
do-install:
cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DATADIR}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/Tropics ${STAGEDIR}${DATADIR}/bin
${INSTALL_LIB} ${WRKSRC}/bin/libUnigine_x86.so \
${STAGEDIR}${DATADIR}/bin
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}*sh ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
|