blob: ff60102ec7ca62b925d3ea48404f9db04a2b55c8 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# New ports collection makefile for: extjs
# Date created: 2010-01-28
# Whom: Joe Horn <joehorn@gmail.com>
#
# $FreeBSD$
#
PORTNAME= extjs
PORTVERSION= 3.2.1
CATEGORIES= www
MASTER_SITES= http://extjs.cachefly.net/ \
http://mirror.joehorn.idv.tw/
DISTNAME= ext-${PORTVERSION}
MAINTAINER= joehorn@gmail.com
COMMENT= A JavaScript platform for rapid development of cross-browser web apps
WRKSRC= ${WRKDIR}/${DISTNAME}
USE_ZIP= yes
NO_BUILD= yes
OPTIONS= DOC "Install with documents" on \
EXAMPLE "Install with examples" on
WWW_SUB= "INCLUDE_ORDER.txt adapter ext-all-debug-w-comments.js \
ext-all-debug.js ext-all.js ext.jsb2 gpl-3.0.txt index.html \
license.txt pkgs resources src test welcome"
.include <bsd.port.pre.mk>
SUB_FILES+= pkg-message
.if !defined(WITH_DOC)
NOPORTDOCS= YES
SUB_LIST+= COMMENTDOCS="\# "
.else
SUB_LIST+= COMMENTDOCS=
.endif
.if !defined(WITH_EXAMPLE)
NOPORTEXAMPLES= YES
SUB_LIST+= COMMENTEXAMPLES="\# "
.else
SUB_LIST+= COMMENTEXAMPLES=
.endif
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} ${WWW_SUB} ${WWWDIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
${WWWDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
@${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type f -print0 | \
${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
@${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type d -print0 | \
${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|