mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
a33191366c
Please note that lots of invocation of MAKE_CMD here are wrong as they do not properly respect MAKE_ENV and friends With hat: portmgr
46 lines
1.4 KiB
Makefile
46 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= tbe
|
|
PORTVERSION= 9
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/${PORTNAME}/Milestone%20${PORTVERSION}
|
|
DISTNAME= TheButterflyEffect-M${PORTVERSION}.src
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= johans@FreeBSD.org
|
|
COMMENT= The Butterfly Effect
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip
|
|
LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo
|
|
|
|
USES= qmake gmake
|
|
USE_QT4= corelib gui moc_build rcc_build svg uic_build xml
|
|
WRKSRC= ${WRKDIR}/TheButterflyEffect-M${PORTVERSION}rc3
|
|
|
|
PLIST_FILES= bin/tbe
|
|
PORTDATA= *
|
|
|
|
DESKTOP_ENTRIES="The Butterfly Effect" "Inspired by The Incredible Machine" \
|
|
"${DATADIR}/images/tbe-icon.png" \
|
|
"${PREFIX}/bin/tbe" "LogicGame;Game;" false
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's/ make/ ${MAKE_CMD}/' \
|
|
${WRKSRC}/3rdParty/Makefile
|
|
@${REINPLACE_CMD} 's/debug/release link_prl/' ${WRKSRC}/tbe.pro
|
|
@${SED} 's:%%DATADIR:QString("${DATADIR}"):' \
|
|
${WRKSRC}/src/tbe_global.h.in > ${WRKSRC}/src/tbe_global.h
|
|
@${REINPLACE_CMD} -e '/ensure that no-one tries to build/,$$d' \
|
|
${WRKSRC}/tbe.pro
|
|
|
|
pre-configure:
|
|
# This is supposedly done by the ./configure script
|
|
@cd ${WRKSRC}/3rdParty && ${MAKE_CMD}
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${DATADIR}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
|
cd ${WRKSRC} && ${PAX} -rw images levels ${STAGEDIR}${DATADIR}
|
|
|
|
.include <bsd.port.mk>
|