summaryrefslogtreecommitdiff
path: root/deskutils/q4wine/Makefile
blob: 123658c6953d855c5bb8be2400ff7b1e76deffe2 (plain)
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
# Created by: Sergey V. Dyatko <sergey.dyatko@gmail.com>
# $FreeBSD$

PORTNAME=	q4wine
PORTVERSION=	0.120
PORTREVISION=	1
CATEGORIES=	deskutils emulators
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}

MAINTAINER=	sergey.dyatko@gmail.com
COMMENT=	QT4 front-end for WINE

BUILD_DEPENDS=	icotool:${PORTSDIR}/graphics/icoutils
RUN_DEPENDS=	sudo:${PORTSDIR}/security/sudo \
		wine:${PORTSDIR}/emulators/wine \
		wget:${PORTSDIR}/ftp/wget \
		cabextract:${PORTSDIR}/archivers/cabextract \
		icotool:${PORTSDIR}/graphics/icoutils

USE_QT4=	qmake_build rcc_build moc_build uic_build \
		linguist_build corelib gui sql network

ONLY_FOR_ARCHS=	i386
ONLY_FOR_ARCHS_REASON=	depends on wine which is only available for i386

MAN1=		q4wine-cli.1 q4wine-helper.1 q4wine.1

USES=		cmake
CMAKE_ARGS+=	-DMANPAGE_ENTRY_PATH=${MANPREFIX}/man/

OPTIONS_DEFINE=	DBUS
OPTIONS_DEFAULT=	DBUS

NO_STAGE=	yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDBUS}
USE_QT4+=	dbus
.else
CMAKE_ARGS+=	-DWITH_DBUS:BOOL=OFF
.endif

post-install:
	@-update-desktop-database

.include <bsd.port.mk>