aboutsummaryrefslogtreecommitdiff
path: root/www/yuicompressor/Makefile
blob: 4c4f516072cc27cf29c941aeedc0bb8d932ad559 (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
# Created by: Sergey Skvortsov <skv@protey.ru>
# $FreeBSD$

PORTNAME=	yuicompressor
PORTVERSION=	2.4.7
CATEGORIES=	www java
MASTER_SITES=	http://yui.zenfs.com/releases/yuicompressor/

MAINTAINER=	skv@FreeBSD.org
COMMENT=	The Yahoo! JavaScript and CSS Compressor

USE_ZIP=	yes
USE_JAVA=	yes
JAVA_VERSION=	1.6+
NO_BUILD=	yes

PLIST_FILES=	bin/yuicompressor %%DATADIR%%/yuicompressor.jar
PLIST_DIRS=	%%DATADIR%%
SUB_FILES=	yuicompressor

PORTDOCS=	README

.include <bsd.port.pre.mk>

do-install:
	@${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/build/yuicompressor-${PORTVERSION}.jar ${DATADIR}/yuicompressor.jar
	${INSTALL_SCRIPT} ${WRKDIR}/yuicompressor ${PREFIX}/bin

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/README ${DOCSDIR}
.endif

.include <bsd.port.post.mk>