aboutsummaryrefslogtreecommitdiffstats
path: root/net/jrdesktop/Makefile
blob: 5d3a5ee8413786d4c6151a21e30697e8f1f5790f (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
# Created by: gahr
# $FreeBSD$

PORTNAME=   jrdesktop
PORTVERSION=    0.2.0030
CATEGORIES= net java
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
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}/${DISTNAME}/${PORTNAME}
TXTFILES=   changes.txt license.txt readme.txt

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

post-install:
    ${REINPLACE_CMD} -i "" -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|;s|%%JAVA%%|${JAVA}|' \
        ${PREFIX}/bin/jrdesktop
.if !defined(NOPORTDOCS)
    ${INSTALL} -d ${DOCSDIR}
    (cd ${WRKSRC}/dist && ${COPYTREE_SHARE} javadoc ${DOCSDIR})
.for txt in ${TXTFILES}
    ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/${txt} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>