aboutsummaryrefslogtreecommitdiff
path: root/java/netty/Makefile
blob: 0f6fc251856a8980212f05288b53ad471a383f2c (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
# Created by: Mikhail T. <michael@fun-box.ru>
# $FreeBSD$

PORTNAME=	netty
PORTVERSION=	3.9.2
DISTVERSIONSUFFIX=	.Final-dist
CATEGORIES=	java devel
MASTER_SITES=	http://dl.bintray.com/netty/downloads/

MAINTAINER=	m.tsatsenko@gmail.com
COMMENT=	Java NIO client server framework

LICENSE=	APACHE20

USE_JAVA=	yes
USES=		cpe tar:bzip2
CPE_VENDOR=	netty_project
JAVA_VERSION=	1.6+
NO_BUILD=	yes
DATADIR=	${PREFIX}/share/${UNIQUENAME}
DOCSDIR=	${PREFIX}/share/doc/${UNIQUENAME}
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}.Final

PLIST_FILES=	%%JAVAJARDIR%%/netty-${PORTVERSION}.jar \
		%%JAVAJARDIR%%/netty.jar

PORTDATA=	*
PORTDOCS=	*

OPTIONS_DEFINE=	DOCS

do-install:
	@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
	${INSTALL_DATA} ${WRKSRC}/jar/netty-${PORTVERSION}.Final.jar ${STAGEDIR}${JAVAJARDIR}/netty-${PORTVERSION}.jar
	cd ${WRKSRC} && ${COPYTREE_SHARE} src ${STAGEDIR}${DATADIR}
	cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
	${LN} -nfs netty-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/netty.jar

.include <bsd.port.mk>