aboutsummaryrefslogtreecommitdiff
path: root/devel/flexjson/Makefile
blob: edd6ef6405fa33f76848984fbf09b97c95ba4c71 (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
# Ports collection makefile for:	FlexJson
# Date created:			20 Apr 2006
# Whom:				Nemo Liu <nemoliu@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	flexjson
PORTVERSION=	1.0
CATEGORIES=	devel java
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTNAME=	${PORTNAME}

MAINTAINER=	nemoliu@gmail.com
COMMENT=	A lightweight Java library to write JSON

USE_JAVA=	yes
JAVA_VERSION=	1.5+
NO_BUILD=	yes
USE_ZIP=	yes

PLIST_FILES=	%%JAVAJARDIR%%/${PORTNAME}.jar

.if !defined(NOPORTDOCS)
PORTDOCS=	LICENSE-2.0.txt docs
.endif

do-install:
	@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
	@${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.jar \
		${JAVAJARDIR}/${PORTNAME}.jar

	@${ECHO_MSG} " [DONE]"
.if !defined(NOPORTDOCS)
	@${ECHO_MSG} -n ">> Installing documentation..."
	@${MKDIR} ${DOCSDIR}/docs/
	@cd ${WRKDIR}/docs \
	  && ${INSTALL_DATA} example_object_model.jpg ${DOCSDIR}/docs/. \
	  && ${INSTALL_DATA} index.html ${DOCSDIR}/docs/.
	@${INSTALL_DATA} ${WRKDIR}/LICENSE-2.0.txt ${DOCSDIR}/
	@${ECHO_MSG} " [DONE]"
.endif

.include <bsd.port.mk>