summaryrefslogtreecommitdiffstats
path: root/lang/linux-j/Makefile
blob: 5012f2f18faf730d99575c5b9c8924056e99b437 (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
39
40
41
42
43
44
45
46
# New ports collection makefile for:   linux-j
# Date created:        29 September 2001
# Whom:                js@jeannot.org
#
# $FreeBSD$
#

PORTNAME=	linux-j
PORTVERSION=	501b
CATEGORIES=	lang linux
MASTER_SITES=	http://www.jsoftware.com/download/
DISTNAME=	j${PORTVERSION}_linux
DIST_SUBDIR=    ${PORTNAME}/${PORTVERSION}

MAINTAINER=	js@jeannot.org

USE_LINUX=	yes
USE_JAVA=	1.3+

ONLY_FOR_ARCHS= i386

NO_WRKSUBDIR=	yes

MAN1=           jconsole.1

do-build:
	@${SED} "s:PREFIX:$(PREFIX):g" < ${FILESDIR}/jconsole > ${WRKSRC}/jconsole
	@${SED} "s:PREFIX:$(PREFIX):g" < ${FILESDIR}/jw > ${WRKSRC}/jw

do-install:
	@${INSTALL_SCRIPT} ${WRKSRC}/jconsole ${PREFIX}/bin
	@${INSTALL_SCRIPT} ${WRKSRC}/jw ${PREFIX}/bin
	@${INSTALL_MAN} ${WRKSRC}/j501b/system/extras/help/man/${MAN1} ${PREFIX}/man/man1
	@${MKDIR} ${PREFIX}/lib/j
	@cd ${WRKSRC}/j501b && \
		${TAR} -cf - system user profile.ijs readme.txt j.jar | \
			${TAR} -xf - -C ${PREFIX}/lib/j
	@${INSTALL_PROGRAM} ${WRKSRC}/j501b/jconsole ${PREFIX}/lib/j/jconsole
	@brandelf -t Linux ${PREFIX}/lib/j/jconsole

post-install:
.if !defined(BATCH)
	@${CAT} ${PKGMESSAGE}
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud