freebsd-ports/www/jericho-html/Makefile
Greg Lewis 9060f2f6c3 . Update to 3.2. This also fixes building with openjdk6.
PR:		164813
Approved by:	Maintainer timeout
2012-02-25 18:19:36 +00:00

42 lines
1.1 KiB
Makefile

# New ports collection makefile for: jerichohtml
# Date created: 2008-06-17
# Whom: Marcin Cieslak <saper@SYSTEM.PL>
#
# $FreeBSD$
#
PORTNAME= jericho-html
PORTVERSION= 3.2
CATEGORIES= www java
MASTER_SITES= SF/jerichohtml/${PORTNAME}/${PORTVERSION}
MAINTAINER= saper@saper.info
COMMENT= A java library to analyse and manipulate HTML
USE_ZIP= yes
USE_JAVA= 1.5+
INTERFACES:= "compile-time-dependencies/slf4j-api-1.6.1.jar:\
compile-time-dependencies/commons-logging-api-1.1.1.jar:\
compile-time-dependencies/log4j-1.2.16.jar"
PORTDOCS= *
PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}.jar
do-build:
(cd ${WRKSRC} && ${RM} -rf classes/* && ${JAVAC} \
-classpath ${INTERFACES:S, ,,g} \
-d classes src/java/net/htmlparser/jericho/*.java \
src/java/net/htmlparser/jericho/nodoc/*.java)
${MKDIR} ${WRKSRC}/lib
${JAR} -cf ${WRKSRC}/lib/${PORTNAME}.jar \
-C ${WRKSRC}/classes .
do-install:
${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}.jar ${JAVAJARDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR})
.endif
.include <bsd.port.mk>