aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/qtemu/Makefile
blob: 511eedb918bf7a5c29c0aa7b88ad0c430ee81b4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# New ports collection makefile for:    qtemu
# Date created:     2007-03-20
# Whom:         Max Brazhnikov <makc@issp.ac.ru>
#
# $FreeBSD$
#

PORTNAME=   qtemu
PORTVERSION=    1.0.5
PORTREVISION=   3
CATEGORIES= emulators
MASTER_SITES=   SF

MAINTAINER= makc@FreeBSD.org
COMMENT=    A Qt4 front-end to 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

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_NLS)
#USE_QT4+=  linguist
BUILD_DEPENDS+= ${LOCALBASE}/bin/lupdate-qt4:${PORTSDIR}/devel/qt4-linguist
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif

do-configure:
    (cd ${WRKSRC} && ${LOCALBASE}/bin/lrelease-qt4 -verbose qtemu.pro \
    && ${SETENV} ${CONFIGURE_ENV} ${QMAKE})

post-configure:
    @${REINPLACE_CMD} -e \
        's|^CC .*|CC=${CC}|; \
         s|^CXX .*|CXX=${CXX}|; \
         s|^LINK .*|LINK=${CXX}|' \
        ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/qtemu ${PREFIX}/bin/qtemu
.if !defined(WITHOUT_NLS)
    ${MKDIR} ${DATADIR}
    (cd ${WRKSRC}/translations/ && ${COPYTREE_SHARE} 'qtemu*.qm' ${DATADIR}/translations)
.endif
.if !defined(NOPORTDOCS)
    (cd ${WRKSRC}/help/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif

.include <bsd.port.post.mk>