2013-06-18 11:46:51 +00:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
2008-04-27 08:45:15 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= passage
|
2011-08-04 04:32:40 +00:00
|
|
|
PORTVERSION= 4
|
2012-02-18 10:18:33 +00:00
|
|
|
PORTREVISION= 5
|
2008-04-27 08:45:15 +00:00
|
|
|
CATEGORIES= games
|
2009-08-22 00:23:13 +00:00
|
|
|
MASTER_SITES= SF/hcsoftware/Passage/v${PORTVERSION}
|
2008-04-27 08:45:15 +00:00
|
|
|
DISTNAME= Passage_v${PORTVERSION}_UnixSource
|
|
|
|
|
2008-06-19 17:28:24 +00:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2008-04-27 08:45:15 +00:00
|
|
|
COMMENT= An experimental video game by Jason Rohrer
|
|
|
|
|
|
|
|
USE_SDL= sdl
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/gamma256/gameSource
|
|
|
|
|
2013-09-29 21:51:57 +00:00
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
PORTDATA= *
|
|
|
|
|
2008-04-27 08:45:15 +00:00
|
|
|
post-patch:
|
2011-08-04 04:32:40 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|^\(PLATFORM_LINK_FLAGS =\).*|\1 ${PTHREAD_LIBS}|' \
|
|
|
|
${WRKSRC}/Makefile.GnuLinux
|
2008-04-27 08:45:15 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|"graphics"|"${DATADIR}/graphics"|' \
|
|
|
|
${WRKSRC}/common.cpp
|
|
|
|
@${REINPLACE_CMD} -e 's|"music"|"${DATADIR}/music"|' \
|
|
|
|
${WRKSRC}/musicPlayer.cpp
|
|
|
|
@${REINPLACE_CMD} -e 's|"settings"|"${DATADIR}/settings"|' \
|
|
|
|
${WRKDIR}/${DISTNAME}/minorGems/util/SettingsManager.cpp
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC} && ${CAT} Makefile.GnuLinux Makefile.all > Makefile
|
|
|
|
|
|
|
|
do-install:
|
2013-09-29 21:51:57 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Passage ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} "graphics music settings" ${STAGEDIR}${DATADIR}/
|
2008-04-27 08:45:15 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|