blob: dee93f44e8e3260fad5122c41916d37feb32954d (
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
|
# Created by: Gerrit Beine <tux@pinguru.net>
# $FreeBSD$
PORTNAME= typo3
PORTVERSION= 4.5.27
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/TYPO3%20Source%20and%20Dummy/TYPO3%20${PORTVERSION}
MAINTAINER= freebsd-ports@charlieroot.de
COMMENT= The typo3 content management system
LICENSE= GPLv2
NO_LATEST_LINK= yes
NO_BUILD= yes
USE_PHP= ctype filter json mysql pcre session xml
WANT_PHP_WEB= yes
IGNORE_WITH_PHP=4
TYPO3WWW= www
TYPO3RELEASE= 45
TYPO3SITE= ${TYPO3WWW}/${PORTNAME}-${TYPO3RELEASE}
TYPO3PKG= ${PORTNAME}-${PORTVERSION}
TYPO3SRC= ${PORTNAME}_src-${PORTVERSION}
TYPO3DUMMY= dummy-${PORTVERSION}
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
DISTFILES+= ${TYPO3SRC}${EXTRACT_SUFX} ${TYPO3DUMMY}${EXTRACT_SUFX}
OPTIONS_DEFINE= CURL GD IMAGICK MBSTRING ZLIB
IMAGICK_DESC= ${IMAGEMAGICK_DESC}
MBSTRING_DESC= ${MULTIBYTE_DESC}
GD_DESC= GDlib/freetype support
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MCURL}
USE_PHP+= curl
.endif
.if ${PORT_OPTIONS:MGD}
USE_PHP+= gd
.endif
.if ${PORT_OPTIONS:MIMAGICK}
.if ${PORT_OPTIONS:MX11}
RUN_DEPENDS+= ${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick
.else
RUN_DEPENDS+= ${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick-nox11
.endif
.endif
.if ${PORT_OPTIONS:MMBSTRING}
USE_PHP+= mbstring
.endif
.if ${PORT_OPTIONS:MZLIB}
USE_PHP+= zlib
.endif
pre-install:
${MV} ${WRKDIR}/${TYPO3DUMMY}/typo3conf/localconf.php ${WRKDIR}/${TYPO3DUMMY}/typo3conf/localconf.php.dist
do-install:
${CP} -R ${WRKDIR}/${TYPO3DUMMY}/ ${PREFIX}/${TYPO3SITE}
${CP} -R ${WRKDIR}/${TYPO3SRC} ${PREFIX}/${TYPO3WWW}
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${TYPO3SITE}
${RM} ${PREFIX}/${TYPO3SITE}/typo3_src && \
cd ${PREFIX}/${TYPO3SITE} && \
${LN} -s ../${TYPO3SRC} typo3_src
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${TYPO3WWW}/${TYPO3SRC}
.include <bsd.port.post.mk>
|