aboutsummaryrefslogtreecommitdiffstats
path: root/www/dojo-shrinksafe/Makefile
blob: 63807d6cf087db8a422aa44731580762cc98039e (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
# New ports collection makefile for:    dojo-shrinksafe
# Date created:     2008-05-01
# Whom:         Greg Larkin <glarkin@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=       shrinksafe
PORTVERSION=        1.4.2
CATEGORIES=     www java
MASTER_SITES=       http://download.dojotoolkit.org/release-${PORTVERSION}/ \
            LOCAL/glarkin
PKGNAMEPREFIX=      dojo-
DISTNAME=       ${PKGNAMEPREFIX}release-${PORTVERSION}-${PORTNAME}

MAINTAINER=     glarkin@FreeBSD.org
COMMENT=        A Javascript code compressor

USE_JAVA=   yes
JAVA_VERSION=   1.5+
NO_BUILD=   yes

PLIST_FILES=    bin/${PKGNAMEPREFIX}${PORTNAME} %%DATADIR%%/shrinksafe.jar \
        %%DATADIR%%/js.jar
PLIST_DIRS= %%DATADIR%%
SUB_FILES=  ${PKGNAMEPREFIX}${PORTNAME}

.include <bsd.port.pre.mk>

do-install:
    @${INSTALL} -d ${DATADIR}
    @${INSTALL_DATA} ${WRKSRC}/shrinksafe.jar ${DATADIR}
    @${INSTALL_DATA} ${WRKSRC}/js.jar ${DATADIR}
    @${INSTALL_SCRIPT} ${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME} ${PREFIX}/bin
    @${CAT} pkg-message

.include <bsd.port.post.mk>