aboutsummaryrefslogtreecommitdiff
path: root/www/jericho-html/Makefile
blob: c18bf670e3b5b75b6a24de06a26ca0920d96017d (plain) (blame)
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
44
45
46
47
48
49
50
51
52
# New ports collection makefile for:	jerichohtml
# Date created:		2008-06-17
# Whom:			Marcin Cieslak <saper@SYSTEM.PL>
#
# $FreeBSD$
#

PORTNAME=	jericho-html
PORTVERSION=	2.6
CATEGORIES=	www java
MASTER_SITES=	SF
MASTER_SITE_SUBDIR=	${PORTNAME:S,-,,}

MAINTAINER=	saper@SYSTEM.PL
COMMENT=	A java library to analyse and manipulate HTML

USE_ZIP=	yes
USE_JAVA=	1.3+

INTERFACES:=	"compile-time-dependencies/slf4j-api-1.5.2.jar:\
		compile-time-dependencies/commons-logging-api-1.1.1.jar:\
		compile-time-dependencies/log4j-api-1.2.15.jar"

PORTDOCS=	api
PLIST_FILES+=	%%JAVAJARDIR%%/${PORTNAME}.jar

do-build:
	(cd ${WRKSRC} &&  ${RM} -rf classes/* && ${JAVAC}         \
		-classpath ${INTERFACES:S, ,,g}                   \
		-d classes src/java/au/id/jericho/lib/html/*.java \
		src/java/au/id/jericho/lib/html/nodoc/*.java)
	${JAR} -cf ${WRKSRC}/lib/${PORTNAME}.jar                  \
		 -C ${WRKSRC}/classes .
.if !defined(NOPORTDOCS)
	(cd ${WRKSRC} && ${RM} -rf doc/* && ${JAVADOC} -quiet     \
		-windowtitle "Jericho HTML Parser ${PORTVERSION}" \
		-classpath ${INTERFACES:S, ,,g}:src/java:classes  \
		-use -d ${WRKSRC}/doc/api                         \
		-subpackages au.id.jericho.lib.html               \
		-exclude au.id.jericho.lib.html.nodoc             \
		-noqualifier au.id.jericho.lib.html               \
		-group "Core package" au.id.jericho.lib.html)
.endif

do-install:
	${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}.jar ${JAVAJARDIR}
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	(cd ${WRKSRC}/doc && ${FIND} api | ${CPIO} -pdmu ${DOCSDIR})
.endif

.include <bsd.port.mk>