summaryrefslogtreecommitdiff
path: root/emulators/playonbsd/Makefile
blob: fe257b5e89c2a400025485a3e857386255add65e (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
47
48
49
50
51
52
53
54
55
56
57
58
# Created by: Stefan Esser <se@StefanEsser.FreeBSD.org>
# $FreeBSD$

PORTNAME=	playonbsd
PORTVERSION=	4.2.8
CATEGORIES=	emulators games

MAINTAINER=	se@FreeBSD.org
COMMENT=	Easily install and run Windows software for use with wine

LICENSE=	GPLv3

RUN_DEPENDS=	7z:archivers/p7zip \
		bash:shells/bash \
		glxinfo:graphics/mesa-demos \
		gpg:security/gnupg \
		gsed:textproc/gsed \
		sudo:security/sudo \
		xdg-open:devel/xdg-utils \
		xterm:x11/xterm

OPTIONS_DEFINE=	GECKO MONO
OPTIONS_DEFAULT=	GECKO MONO
GECKO_DESC=	Wine-gecko HTML rendering support
MONO_RUN_DEPENDS=	wine-mono-devel>=4.5.6:emulators/wine-mono-devel
GECKO_RUN_DEPENDS=	wine-gecko>=2.21:emulators/wine-gecko

ONLY_FOR_ARCHS=	amd64 i386

USES=		python:run
USE_PERL=	yes
USE_WX=		2.8+
WX_COMPS=	python:run

USE_GITHUB=	yes
GH_ACCOUNT=	PlayOnLinux
GH_PROJECT=	POL-POM-4

.include <bsd.port.pre.mk>

.if ${ARCH} == amd64
RUN_DEPENDS+=	wine:emulators/i386-wine-devel
.else
RUN_DEPENDS+=	wine:emulators/wine
.endif

NO_BUILD=	true
SUB_FILES=	playonbsd.sh

post-patch:
		@${REINPLACE_CMD} -e 's:/usr/local/:${LOCALBASE}/:' ${WRKSRC}/lib/wine.lib

do-install:
		cd ${WRKSRC} && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/lib/playonbsd/ "-perm -0100 ! -name *.orig"
		cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/playonbsd/ "! -perm 0100 ! -name *.orig"
		${INSTALL_SCRIPT} ${WRKDIR}/playonbsd.sh ${STAGEDIR}${PREFIX}/bin/playonbsd

.include <bsd.port.post.mk>