aboutsummaryrefslogtreecommitdiffstats
path: root/net/remotebox/Makefile
blob: 67ac06c5ae47e4b735f582abbcaf22336eda49fb (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
# Created by: Haowu Ge <ghw@7axu.com>
# $FreeBSD$

PORTNAME=   remotebox
PORTVERSION=    1.8.1
PORTREVISION=   1
CATEGORIES= net
MASTER_SITES=   http://remotebox.knobgoblin.org.uk/downloads/
DISTNAME=   RemoteBox-${PORTVERSION}

MAINTAINER= ghw@7axu.com
COMMENT=    Open Source VirtualBox Client with Remote Management

LICENSE=    GPLv2

RUN_DEPENDS=    p5-Gtk2>=0:x11-toolkits/p5-Gtk2 \
        p5-SOAP-Lite>=0:net/p5-SOAP-Lite \
        rdesktop:net/rdesktop

LICENSE_FILE_GPLv2= ${WRKSRC}/docs/COPYING

NO_BUILD=   yes
USES=       shebangfix tar:bzip2
SHEBANG_FILES=  remotebox
INSTALLS_ICONS= yes

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's|docs/remotebox|share/doc/remotebox/remotebox|'  ${WRKSRC}/remotebox
    @${REINPLACE_CMD} -e 's|$$Bin/|${PREFIX}/|' ${WRKSRC}/remotebox
    @${REINPLACE_CMD} -e 's|$$Bin/|${PREFIX}/|' ${WRKSRC}/share/remotebox/rbox_gui_init.pl

do-install:
    @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    @${MKDIR} ${STAGEDIR}${DATADIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/share/remotebox/*.pl ${STAGEDIR}${DATADIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/share/remotebox/*.pm ${STAGEDIR}${DATADIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/share/remotebox/remotebox.xml ${STAGEDIR}${DATADIR}
    ${MKDIR} ${STAGEDIR}${DATADIR}/icons/os
    ${MKDIR} ${STAGEDIR}${DATADIR}/icons/gueststatus
    ${INSTALL_DATA} ${WRKSRC}/share/remotebox/icons/*.png ${STAGEDIR}${DATADIR}/icons
    ${INSTALL_DATA} ${WRKSRC}/share/remotebox/icons/os/*.png ${STAGEDIR}${DATADIR}/icons/os
    ${INSTALL_DATA} ${WRKSRC}/share/remotebox/icons/gueststatus/*.png ${STAGEDIR}${DATADIR}/icons/gueststatus
    ${INSTALL_DATA} ${WRKSRC}/share/remotebox/icons/remotebox.png ${STAGEDIR}${PREFIX}/share/pixmaps
    ${MKDIR} ${STAGEDIR}${PREFIX}/share/applications
    ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop \
        ${STAGEDIR}${PREFIX}/share/applications

post-install:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_MAN} ${WRKSRC}/docs/remotebox.pdf ${STAGEDIR}${DOCSDIR}
    ${INSTALL_MAN} ${WRKSRC}/docs/changelog.txt ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>