summaryrefslogtreecommitdiff
path: root/editors/jext/Makefile
blob: 76c54b6e667abca96ba4bdf7b8d897dfa81921b7 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:    jext
# Date created:				17 Febrary 2000
# Whom:					Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	jext
PORTVERSION=	2.8.1.2
CATEGORIES=	editors java
MASTER_SITES=	http://www.jext.org/ \
		http://members.xoom.com/romainguy/
DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} swingall.jar

MAINTAINER=	sobomax@FreeBSD.org

RUN_DEPENDS=	${JAVAVM}:${PORTSDIR}/java/javavmwrapper \
		${LOCALBASE}/etc/javavms:${PORTSDIR}/java/jre

EXTRACT_ONLY=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
WRKSRC=		${WRKDIR}
USE_XLIB=	yes
NO_BUILD=	yes

JAVAVM?=	${LOCALBASE}/bin/javavm

INSTSBDR=	${PREFIX}/share/java/jext

pre-patch:
	@${PERL} -pi -e 's.\x0D..' ${WRKSRC}/bin/jext.sh

do-configure:
	@${PERL} -pi -e 's|%%JAVAVM%%|${JAVAVM}|g			; \
			 s|%%JEXT_HOME%%|${INSTSBDR}|g			; \
			 s|%%JFC%%|${INSTSBDR}/lib/swingall.jar|g'	  \
			 ${WRKSRC}/bin/jext.sh

do-install:
	@${MKDIR} ${INSTSBDR}
	@${INSTALL_SCRIPT} ${WRKSRC}/bin/jext.sh ${PREFIX}/bin/jext
	@(cd ${WRKSRC} && ${TAR} -c -f - LICENSE README bin lib) \
		| (cd ${INSTSBDR} && ${TAR} --unlink -x -f -)
	@${INSTALL_DATA} ${DISTDIR}/swingall.jar ${INSTSBDR}/lib
.if !defined(NOPORTDOCS)
	@${MKDIR} ${PREFIX}/share/doc/java/jext
	@(cd ${WRKSRC}/docs && ${TAR} -c -f - * ) \
		| (cd ${PREFIX}/share/doc/java/jext && ${TAR} --unlink -x -f -)
.endif

.include <bsd.port.mk>