summaryrefslogtreecommitdiff
path: root/net/gitso/Makefile
blob: 17adcb820e14ce9a8fa7d8ff9202cedb8866990d (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
59
60
61
62
63
# $NetBSD: Makefile,v 1.12 2013/06/04 22:16:52 tron Exp $

DISTNAME=		gitso-0.6
PKGREVISION=		8
CATEGORIES=		net x11
MASTER_SITES=		http://gitso.googlecode.com/files/
DISTFILES=		gitso_0.6_linux_all.tar.gz

MAINTAINER=		darcy@NetBSD.org
HOMEPAGE=		http://code.google.com/p/gitso/
COMMENT=		Gitso is to support others
LICENSE=		gnu-gpl-v3

DEPENDS+=		vncviewer-[0-9]*:../../net/vncviewer
DEPENDS+=		x11vnc-[0-9]*:../../x11/x11vnc

WRKSRC=			${WRKDIR}/Gitso

PY_PATCHPLIST=		yes
USE_TOOLS+=		bash:run

REPLACE_BASH+=		run-gitso.sh.local
REPLACE_PYTHON+=	bin/gitso
REPLACE_PYTHON+=	share/gitso/ArgsParser.py
REPLACE_PYTHON+=	share/gitso/ConnectionWindow.py
REPLACE_PYTHON+=	share/gitso/Gitso.py
REPLACE_PYTHON+=	share/gitso/GitsoThread.py
REPLACE_PYTHON+=	share/gitso/NATPMP.py
REPLACE_PYTHON+=	share/gitso/Processes.py

.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"

MAKE_JOBS_SAFE=		no
NO_BUILD=		yes
INSTALLATION_DIRS+=	bin
INSTALLATION_DIRS+=	share/gitso
INSTALLATION_DIRS+=	${PYSITELIB}/gitso

.include "../../mk/bsd.prefs.mk"

SITEFILES=	${WRKSRC}/share/gitso/*.py \
		${WRKSRC}/share/gitso/icon.* \
		${WRKSRC}/share/gitso/icon.* \
		${WRKSRC}/share/gitso/hosts.txt \
		${WRKSRC}/share/doc/gitso/COPYING

post-patch:
	${SED} -e 's|bin/gitso|${DESTDIR}${PREFIX}/bin/gitso|' \
		< ${WRKSRC}/run-gitso.sh \
		> ${WRKSRC}/run-gitso.sh.local

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/run-gitso.sh.local \
		${DESTDIR}${PREFIX}/bin/run-gitso.sh
	${INSTALL_SCRIPT} ${WRKSRC}/bin/gitso ${DESTDIR}${PREFIX}/bin
	for i in ${SITEFILES}; do \
		${INSTALL_DATA} $$i ${DESTDIR}${PREFIX}/${PYSITELIB}/gitso; \
	done

.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/py-wxWidgets/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"