1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/emulators/qtemu/Makefile
Max Brazhnikov 7678193c3d - Add global options (DOCS, NLS, etc) to the OPTIONS_DEFINE and partly revert r315222 [1]
- Convert WITH_DEBUG to new options framework
- Trim Makefile header
- Adjust COMMENTs
- Reformat/update description

[1] See follow-up discussion: http://lists.freebsd.org/pipermail/svn-ports-head/2013-March/016094.html
2013-05-12 11:48:49 +00:00

46 lines
1000 B
Makefile

# $FreeBSD$
PORTNAME= qtemu
PORTVERSION= 1.0.5
PORTREVISION= 4
CATEGORIES= emulators
MASTER_SITES= SF
MAINTAINER= makc@FreeBSD.org
COMMENT= Qt 4 based frontend for QEMU
USE_BZIP2= yes
USE_QT4= gui xml uic_build moc_build qmake_build rcc_build
HAS_CONFIGURE= yes
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
DESKTOP_ENTRIES="QtEmu" "QEMU frontend" "" \
"qtemu" "" false
OPTIONS_DEFINE= DOCS NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USE_QT4+= linguist_build
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
do-configure:
(cd ${WRKSRC} && ${LOCALBASE}/bin/lrelease-qt4 -verbose qtemu.pro \
&& ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKEFLAGS})
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qtemu ${PREFIX}/bin/qtemu
.if ${PORT_OPTIONS:MNLS}
${MKDIR} ${DATADIR}
(cd ${WRKSRC}/translations/ && ${COPYTREE_SHARE} 'qtemu*.qm' ${DATADIR}/translations)
.endif
.if ${PORT_OPTIONS:MDOCS}
(cd ${WRKSRC}/help/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif
.include <bsd.port.mk>