aboutsummaryrefslogtreecommitdiffstats
path: root/net/jrdesktop/Makefile
blob: 52c479d305ac5c39ac9b1af792c3e5beaf2531e7 (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
# New ports collection makefile for:    jrdesktop
# Date created:             May 7 2008
# Whom:                 gahr
#
# $FreeBSD$
#

PORTNAME=   jrdesktop
PORTVERSION=    0.2.0012
CATEGORIES= net java
MASTER_SITES=   SF
DISTNAME=   ${PORTNAME}-${PORTVERSION}.src

MAINTAINER= gahr@FreeBSD.org
COMMENT=    View and/or control a remote PC

USE_JAVA=   yes
JAVA_VERSION=   1.6+
USE_ANT=    yes
USE_ZIP=    yes

WRKSRC= ${WRKDIR}/src

PLIST_FILES=    %%JAVAJARDIR%%/jrdesktop.jar \
        bin/jrdesktop-server \
        bin/jrdesktop-viewer

do-install:
    ${INSTALL_DATA} ${WRKSRC}/dist/jrdesktop.jar ${JAVAJARDIR}
    ${INSTALL_SCRIPT} ${FILESDIR}/jrdesktop-server.in ${PREFIX}/bin/jrdesktop-server
    ${INSTALL_SCRIPT} ${FILESDIR}/jrdesktop-viewer.in ${PREFIX}/bin/jrdesktop-viewer

post-install:
    ${REINPLACE_CMD} -i "" -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|;s|%%JAVA%%|${JAVA}|' \
        ${PREFIX}/bin/jrdesktop-server ${PREFIX}/bin/jrdesktop-viewer

.include <bsd.port.mk>