summaryrefslogtreecommitdiffstats
path: root/java/jasmin/Makefile
blob: f10d7d8480b95d7fb49f12cafb0ba0525d3bc904 (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
# Created by: Volker Stolz <vs@FreeBSD.org>
# $FreeBSD$

PORTNAME=	jasmin
PORTVERSION=	2.4
PORTEPOCH=	1
CATEGORIES=	java lang
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Java Assembler Interface

USE_ZIP=	yes
USE_ANT=	yes
ALL_TARGET=	jasmin
USE_JAVA=	yes
JAVA_VERSION=	1.6+
USE_DOS2UNIX=	yes
DOS2UNIX_REGEX=	.*\.(txt|xml|j|class|java|mf|css|bnf|html)

SUB_FILES=	jasmin.sh

do-install:
	${INSTALL_DATA} ${WRKSRC}/jasmin.jar ${JAVAJARDIR}
.if !defined(NOPORTEXAMPLES)
	${MKDIR} ${EXAMPLESDIR}
	cd ${WRKSRC}/examples ; \
	  ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/\{} \; ;\
	  ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${EXAMPLESDIR}/\{} \;
.endif
	${INSTALL_SCRIPT} ${WRKDIR}/jasmin.sh ${PREFIX}/bin/jasmin
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCDIR}
	cd ${WRKSRC}/docs ; \
	  ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/\{} \; ;\
	  ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${DOCSDIR}/\{} \;
.endif

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