1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/net/jrdesktop/Makefile

38 lines
937 B
Makefile

# 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>