freebsd-ports/archivers/jzlib/Makefile
Baptiste Daroussin 7c354b1913 Decommissioning java 1.5 (EOLed since October 2009):
suppress any reference to JAVA_VERSION=	1.5+ (part2)
2012-12-10 13:18:28 +00:00

64 lines
1.4 KiB
Makefile

# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$
PORTNAME= jzlib
PORTVERSION= 1.1.0
CATEGORIES= archivers java
MASTER_SITES= http://www.jcraft.com/jzlib/
MAINTAINER= ports@FreeBSD.org
COMMENT= A re-implementation of zlib in pure Java
USE_JAVA= yes
JAVA_VERSION= 1.6+
JAR_FILE= ${WRKSRC}/src/main/java/${PORTNAME}.jar
DOC_FILES= \
ChangeLog \
LICENSE.txt \
README
PORTDOCS= ${DOC_FILES}
EXAMPLE_FILES= \
README \
test_deflate_inflate.java \
test_dict_deflate_inflate.java \
test_flush_sync.java \
test_gzip_deflate_inflate.java \
test_gzip_inflate.java \
test_large_deflate_inflate.java \
test_stream_deflate_inflate.java
PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}.jar
.for file in ${EXAMPLE_FILES}
PLIST_FILES+= %%EXAMPLESDIR%%/${file}
.endfor
PLIST_DIRS+= \
%%EXAMPLESDIR%%
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:
# docs
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
. for file in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
. endfor
.endif
# examples
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/example/* ${EXAMPLESDIR}
# jar
@${INSTALL_DATA} ${JAR_FILE} ${JAVAJARDIR}/${PORTNAME}.jar
.include <bsd.port.mk>