blob: 510fbbe11830c3051dc69b98a8d6bcb5d3c66211 (
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
|
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= goonies
PORTVERSION= 1.0.1
PORTREVISION= 8
CATEGORIES= games
MASTER_SITES= http://goonies.jorito.net/download/ \
http://mirror.amdmi3.ru/distfiles/
DISTNAME= ${PORTNAME}_r${PORTVERSION:C/\./-/g}
EXTRACT_SUFX= .tgz
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Remake of the 8 bit classic game 'The Goonies'
USE_GMAKE= yes
USE_SDL= sdl mixer image
USE_GL= yes
BUILD_WRKSRC= ${WRKSRC}/src
MAKEFILE= ../build/linux/Makefile
MAKE_ENV= DATADIR="${DATADIR}"
MAKE_JOBS_SAFE= yes
PLIST_FILES= bin/${PORTNAME}
DATADIRS= sound graphics maps
PORTDOCS= *
PORTDATA= *
.include <bsd.port.options.mk>
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.endif
post-patch:
@${REINPLACE_CMD} -e 's|sound/|${DATADIR}/sound/|g' \
${WRKSRC}/src/SFXManager.cpp
@${REINPLACE_CMD} -e 's|graphics/|${DATADIR}/graphics/|g' \
${WRKSRC}/src/GLTManager.cpp ${WRKSRC}/src/TheGooniesApp.cpp
@${REINPLACE_CMD} -e 's|maps/|${DATADIR}/maps/|g' \
${WRKSRC}/src/TheGoonies.cpp
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/goonies ${PREFIX}/bin/
.if !defined(NOPORTDATA)
${MKDIR} ${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} 'sound graphics maps' ${DATADIR}/
.endif
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}/
.endif
.include <bsd.port.mk>
|