summaryrefslogtreecommitdiff
path: root/net/xnap/Makefile
blob: 07c8733c6e931c8ca69b32fc4f853aa94a450f03 (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
# $NetBSD: Makefile,v 1.9 2006/02/05 23:10:33 joerg Exp $
#

DISTNAME=	xnap-2.0
PKGREVISION=	1
CATEGORIES=	net java
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=xnap/}

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://xnap.sourceforge.net/
COMMENT=	Java filesharing client with support for OpenNap

NO_BUILD=       yes

INSTALLATION_DIRS=	bin

post-extract:
	cd ${WRKSRC} && ${MV} xnap.sh xnap.sh.in

pre-configure:
	cd ${WRKSRC} && ${SED} \
		-e 's|@PREFIX@|${PREFIX}|g' < xnap.sh.in > xnap.sh

do-install:
	${CP} ${WRKSRC}/xnap.sh ${PREFIX}/bin/xnap
	${INSTALL_PROGRAM_DIR} ${PREFIX}/share/xnap
	${CP} ${WRKSRC}/xnap.jar ${PREFIX}/share/xnap/xnap.jar
	${INSTALL_PROGRAM_DIR} ${PREFIX}/share/doc/xnap
	${CP} ${WRKSRC}/README ${PREFIX}/share/doc/xnap
	${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/share/xnap ${PREFIX}/share/doc/xnap

.include "../../mk/java-vm.mk"

.if ${PKG_JVM} == "jdk" || ${PKG_JVM} == "kaffe"
DEPENDS+=	swing-[0-9]*:../../x11/swing
.endif

.include "../../mk/bsd.pkg.mk"