blob: a3cba9c7c1e6a44ba2ca2e6bbf5354db3d000a18 (
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
|
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= passage
PORTVERSION= 4
PORTREVISION= 7
CATEGORIES= games
MASTER_SITES= SF/hcsoftware/Passage/v${PORTVERSION}
DISTNAME= Passage_v${PORTVERSION}_UnixSource
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Experimental video game by Jason Rohrer
USE_SDL= sdl
BUILD_WRKSRC= ${WRKDIR}/${DISTNAME}/gamma256/gameSource
PLIST_FILES= bin/${PORTNAME}
PORTDATA= *
post-patch:
@${REINPLACE_CMD} -e 's|"graphics"|"${DATADIR}/graphics"|' \
${WRKSRC}/gamma256/gameSource/common.cpp
@${REINPLACE_CMD} -e 's|"music"|"${DATADIR}/music"|' \
${WRKSRC}/gamma256/gameSource/musicPlayer.cpp
@${REINPLACE_CMD} -e 's|"settings"|"${DATADIR}/settings"|' \
${WRKSRC}/minorGems/util/SettingsManager.cpp
do-configure:
cd ${BUILD_WRKSRC} && ${CAT} Makefile.GnuLinux Makefile.all > Makefile
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/Passage ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${MKDIR} ${STAGEDIR}${DATADIR}
cd ${BUILD_WRKSRC} && ${COPYTREE_SHARE} "graphics music settings" ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>
|