1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/games/passage/Makefile
Alex Kozlov d4041784dc - Remove MAKE_JOBS_SAFE variable
Approved by:	portmgr (bdrewery)
2013-08-14 22:35:50 +00:00

37 lines
1.0 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= passage
PORTVERSION= 4
PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= SF/hcsoftware/Passage/v${PORTVERSION}
DISTNAME= Passage_v${PORTVERSION}_UnixSource
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= An experimental video game by Jason Rohrer
USE_SDL= sdl
WRKSRC= ${WRKDIR}/${DISTNAME}/gamma256/gameSource
post-patch:
@${REINPLACE_CMD} -e 's|^\(PLATFORM_LINK_FLAGS =\).*|\1 ${PTHREAD_LIBS}|' \
${WRKSRC}/Makefile.GnuLinux
@${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:
${INSTALL_PROGRAM} ${WRKSRC}/Passage ${PREFIX}/bin/
${MKDIR} ${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} "graphics music settings" ${DATADIR}/
.include <bsd.port.mk>