freebsd-ports/games/tbe/Makefile
Johan van Selst 425b7ee4eb Add new port games/tbe - The Butterfly Effect
The Butterfly Effect is a physics game about cause and effect.
You build complex mechanical systems using levers, rocket-like cola
bottles and ordinary objects like tennis balls and bikes to
accomplish simple tasks like toppling a Bowling Pin. This is also
known as a Rube Goldberg machine or a Heath Robinson contraption.
This type of game was pioneered by the game series The Incredible
Machine in the 1990s.

WWW: http://sourceforge.net/apps/trac/tbe/wiki/WikiStart
2010-11-08 21:46:57 +00:00

43 lines
1.1 KiB
Makefile

# New ports collection makefile for: tbe
# Date created: 7 November 2010
# Whom: johans
#
# $FreeBSD$
#
PORTNAME= tbe
PORTVERSION= M7
CATEGORIES= games
MASTER_SITES= SF
MASTER_SITE_SUBDIR= ${PORTNAME}/Milestone%20${PORTVERSION:S/M//}
DISTNAME= TheButterflyEffect-${PORTVERSION}.src
EXTRACT_SUFX= .tgz
MAINTAINER= johans@FreeBSD.org
COMMENT= The Butterfly Effect
BUILD_DEPENDS= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip
USE_GMAKE= yes
USE_QT_VER= 4
QT_COMPONENTS= qmake corelib gui moc rcc svg uic xml
WRKSRC= ${WRKDIR}/TheButterflyEffect-${PORTVERSION}
post-patch:
@${REINPLACE_CMD} 's/ make/ ${GMAKE}/' \
${WRKSRC}/3rdParty/Makefile
@${REINPLACE_CMD} 's/debug/release link_prl/' ${WRKSRC}/tbe.pro
@${REINPLACE_CMD} 's:BINARY_DIRECTORY+":"${DATADIR}:' \
${WRKSRC}/src/tbe_global.h
pre-build:
# This is supposedly done by the ./configure script
@cd ${WRKSRC}/3rdParty && ${GMAKE}
@cd ${WRKSRC} && ${QMAKE}
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
@${MKDIR} ${DATADIR}
@cd ${WRKSRC} && ${PAX} -rw images levels ${DATADIR}
.include <bsd.port.mk>