1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

- Convert to USES=qmake

- Support staging properly

Approved by:	portmgr (blanket approval)
This commit is contained in:
Max Brazhnikov 2013-11-23 16:56:54 +00:00
parent 4e1c985666
commit 860c54a5e3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334685

View File

@ -15,12 +15,10 @@ LICENSE= GPLv3
OPTIONS_DEFINE= DOCS
USE_QT4= gui network moc_build qmake_build rcc_build uic_build
USES= gmake qmake
USE_QT4= gui network moc_build rcc_build uic_build
WRKSRC= ${WRKDIR}/${DISTNAME:S|-src||}
HAS_CONFIGURE= yes
USES= gmake
PLIST_FILES= bin/F1LT \
bin/f1lt \
share/f1lt/season.dat \
@ -32,19 +30,15 @@ PORTDOCS= CHANGELOG
.include <bsd.port.options.mk>
post-patch-script:
@${REINPLACE_CMD} -e 's|PREFIX = /opt/$$$$TARGET|PREFIX = ${STAGEDIR}${PREFIX}|g' \
@${REINPLACE_CMD} -e 's|PREFIX = /opt/$$$$TARGET|PREFIX = ${PREFIX}|g' \
${WRKSRC}/F1LT.pro
@${REINPLACE_CMD} -e 's|SHARE=$$$$PREFIX/share|SHARE=${STAGEDIR}${PREFIX}/share/${PORTNAME}|g' \
@${REINPLACE_CMD} -e 's|SHARE=$$$$PREFIX/share|SHARE=${PREFIX}/share/${PORTNAME}|g' \
${WRKSRC}/F1LT.pro
.if ${ARCH} == "i386"
@${REINPLACE_CMD} -e 's|999999999998|1000000|g' \
${WRKSRC}/src/tools/laptimecomparisondialog.cpp
.endif
do-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${QMAKE} ${QMAKEFLAGS} PREFIX=${PREFIX} F1LT.pro
post-build-script:
@${REINPLACE_CMD} -e 's|-$$(INSTALL_FILE)|${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m 644|g' \
${WRKSRC}/Makefile