summaryrefslogtreecommitdiff
path: root/archivers/jzlib/Makefile
blob: 3a3fab4301291f4a2c12e0b55f53cdf1a48b0123 (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
PORTNAME=	jzlib
PORTVERSION=	1.1.1
CATEGORIES=	archivers java
MASTER_SITES=	http://www.jcraft.com/jzlib/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Reimplementation of zlib in pure Java
WWW=		http://www.jcraft.com/jzlib/

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

USES=		cpe zip
USE_JAVA=	yes
NO_ARCH=	yes
CPE_VENDOR=	jcraft

JAR_FILE=	${WRKSRC}/src/main/java/${PORTNAME}.jar

OPTIONS_DEFINE=	DOCS EXAMPLES

do-build:
	@cd ${WRKSRC}/src/main/java && ${FIND} com -name "*.java" | \
		${XARGS} -n 10 -x \
		${JAVAC} -classpath ${WRKSRC}/src/main/java
	@cd ${WRKSRC}/src/main/java && ${FIND} com -name "*class" | \
		${XARGS} \
		${JAR} -cf ${PORTNAME}.jar

do-install:
	${INSTALL_DATA} ${JAR_FILE} ${STAGEDIR}/${JAVAJARDIR}/${PORTNAME}.jar

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}/${DOCSDIR}
.for file in ChangeLog LICENSE.txt README
	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}/${DOCSDIR}
.endfor

do-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}/${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/example/* ${STAGEDIR}/${EXAMPLESDIR}

.include <bsd.port.mk>