1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/archivers/jzlib/Makefile
Danilo Egea Gondolfo 5e011489a2 - Change maintainer email to @FreeBSD.org
- Add staging support
- Add the pkg-plist file

Approved by:	wg (mentor)
2013-09-25 21:15:17 +00:00

38 lines
991 B
Makefile

# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$
PORTNAME= jzlib
PORTVERSION= 1.1.1
CATEGORIES= archivers java
MASTER_SITES= http://www.jcraft.com/jzlib/
MAINTAINER= danilo@FreeBSD.org
COMMENT= Reimplementation of zlib in pure Java
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
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:
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
.for file in ChangeLog LICENSE.txt README
@${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}/${DOCSDIR}
.endfor
@${MKDIR} ${STAGEDIR}/${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/example/* ${STAGEDIR}/${EXAMPLESDIR}
${INSTALL_DATA} ${JAR_FILE} ${STAGEDIR}/${JAVAJARDIR}/${PORTNAME}.jar
.include <bsd.port.mk>