2010-11-08 21:46:57 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tbe
|
2013-05-04 20:09:09 +00:00
|
|
|
PORTVERSION= 9
|
2010-11-08 21:46:57 +00:00
|
|
|
CATEGORIES= games
|
2010-12-14 06:54:14 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Milestone%20${PORTVERSION}
|
2013-05-04 20:09:09 +00:00
|
|
|
DISTNAME= TheButterflyEffect-M${PORTVERSION}.src
|
2010-11-08 21:46:57 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= johans@FreeBSD.org
|
|
|
|
COMMENT= The Butterfly Effect
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip
|
2014-02-05 19:39:39 +00:00
|
|
|
LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo
|
2010-11-08 21:46:57 +00:00
|
|
|
|
2014-02-05 19:39:39 +00:00
|
|
|
USES= qmake gmake
|
2013-11-22 18:48:31 +00:00
|
|
|
USE_QT4= corelib gui moc_build rcc_build svg uic_build xml
|
2013-05-04 20:09:09 +00:00
|
|
|
WRKSRC= ${WRKDIR}/TheButterflyEffect-M${PORTVERSION}rc3
|
|
|
|
|
|
|
|
PLIST_FILES= bin/tbe
|
|
|
|
PORTDATA= *
|
2010-12-14 06:54:14 +00:00
|
|
|
|
|
|
|
DESKTOP_ENTRIES="The Butterfly Effect" "Inspired by The Incredible Machine" \
|
|
|
|
"${DATADIR}/images/tbe-icon.png" \
|
2013-01-22 23:13:41 +00:00
|
|
|
"${PREFIX}/bin/tbe" "LogicGame;Game;" false
|
2010-11-08 21:46:57 +00:00
|
|
|
|
|
|
|
post-patch:
|
2014-06-25 05:35:31 +00:00
|
|
|
@${REINPLACE_CMD} 's/ make/ ${MAKE_CMD}/' \
|
2010-11-08 21:46:57 +00:00
|
|
|
${WRKSRC}/3rdParty/Makefile
|
|
|
|
@${REINPLACE_CMD} 's/debug/release link_prl/' ${WRKSRC}/tbe.pro
|
2010-12-14 06:54:14 +00:00
|
|
|
@${SED} 's:%%DATADIR:QString("${DATADIR}"):' \
|
|
|
|
${WRKSRC}/src/tbe_global.h.in > ${WRKSRC}/src/tbe_global.h
|
2013-05-04 20:09:09 +00:00
|
|
|
@${REINPLACE_CMD} -e '/ensure that no-one tries to build/,$$d' \
|
|
|
|
${WRKSRC}/tbe.pro
|
2010-11-08 21:46:57 +00:00
|
|
|
|
2013-11-22 18:48:31 +00:00
|
|
|
pre-configure:
|
2010-11-08 21:46:57 +00:00
|
|
|
# This is supposedly done by the ./configure script
|
2014-06-25 05:35:31 +00:00
|
|
|
@cd ${WRKSRC}/3rdParty && ${MAKE_CMD}
|
2010-11-08 21:46:57 +00:00
|
|
|
|
|
|
|
do-install:
|
2014-02-05 19:39:39 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
cd ${WRKSRC} && ${PAX} -rw images levels ${STAGEDIR}${DATADIR}
|
2013-05-04 20:09:09 +00:00
|
|
|
|
2010-11-08 21:46:57 +00:00
|
|
|
.include <bsd.port.mk>
|