blob: 83ac687de1e7dc69031c8c584bbff25fffe98e8c (
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# New ports collection makefile for: yii
# Date created: 2009-03-27
# Whom: Yi-Jheng Lin <yzlin@cs.nctu.edu.tw>
#
# $FreeBSD$
#
PORTNAME= yii
PORTVERSION= 1.1.5
DISTVERSIONSUFFIX= .r2654
CATEGORIES= www
MASTER_SITES= GOOGLE_CODE \
SF
MAINTAINER= yzlin@FreeBSD.org
COMMENT= A high-performance component-based PHP framework
NO_BUILD= yes
USE_PHP= pcre spl
WANT_PHP_WEB= yes
IGNORE_WITH_PHP= 4
LICENSE= BSD
SUB_FILES= pkg-message
OPTIONS= MYSQL "Install MySQL PDO support" Off \
PGSQL "Install PostgreSQL PDO support" Off \
SQLITE "Install SQLite v3 PDO support" Off \
REQPHP "Install PHP dependencies required by plugins" On
PORTDOCS= CHANGELOG LICENSE README UPGRADE
INSTALL_DIRS= framework
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_REQPHP)
USE_PHP+= apc dom gd mcrypt memcache pdo soap
.endif
.if defined(WITH_MYSQL)
USE_PHP+= pdo_mysql
.endif
.if defined(WITH_PGSQL)
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_pgsql.so:${PORTSDIR}/databases/php5-pdo_pgsql
.endif
.if defined(WITH_SQLITE)
USE_PHP+= pdo_sqlite
.endif
post-patch:
@${SED} -i "" -e "s,dirname(__FILE__),'${DATADIR}/framework'," ${WRKSRC}/framework/yiic
do-install:
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "${INSTALL_DIRS}" ${DATADIR})
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DATADIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
${DATADIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
@${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${ECHO_CMD} '@exec ${FIND} ${DATADIR} -type f -print0 | \
${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
@${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@${ECHO_CMD} '@exec ${FIND} ${DATADIR} -type d -print0 | \
${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}
@${INSTALL_SCRIPT} ${WRKSRC}/framework/yiic ${PREFIX}/bin
.if !defined(NOPORTEXAMPLES)
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "demos requirements" ${EXAMPLESDIR})
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EXAMPLESDIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
${EXAMPLESDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
@${FIND} ${EXAMPLESDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${ECHO_CMD} '@exec ${FIND} ${EXAMPLESDIR} -type f -print0 | \
${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
@${FIND} ${EXAMPLESDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@${ECHO_CMD} '@exec ${FIND} ${EXAMPLESDIR} -type d -print0 | \
${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|