aboutsummaryrefslogtreecommitdiffstats
path: root/www/typo3/Makefile
blob: 095a30ec0af176c2ed2b5dbed98b6fb20a9b1e84 (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
# Created by: Gerrit Beine <tux@pinguru.net>
# $FreeBSD$

PORTNAME=   typo3
PORTVERSION=    8.5.1
CATEGORIES= www
MASTER_SITES=   SF/${PORTNAME}/TYPO3%20Source%20and%20Dummy/TYPO3%20${PORTVERSION}

MAINTAINER= freebsd-ports@charlieroot.de
COMMENT=    Typo3 content management system

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/LICENSE.txt

IGNORE_WITH_PHP=    56
PHP_VER=    70

PORTSCOUT=  limit:^8\.5\.

USES=       cpe php:web shebangfix
SHEBANG_FILES=  vendor/doctrine/instantiator/.travis.install.sh \
        typo3/sysext/core/Build/Scripts/cglFixMyCommit.sh \
        typo3/sysext/core/Build/Scripts/splitFunctionalTests.sh \
        typo3/sysext/core/Build/Scripts/validateRstFiles.sh \
        typo3/sysext/core/Build/Scripts/duplicateExceptionCodeCheck.sh \
        typo3/sysext/core/Build/Scripts/checkFilePermissions.sh \
        typo3/sysext/core/Build/Scripts/xlfcheck.sh
NO_BUILD=   yes
NO_ARCH=    yes
USE_PHP=    ctype fileinfo filter hash json mysqli openssl pcre session soap xml zip simplexml
WRKSRC=     ${WRKDIR}/${TYPO3SRC}

TYPO3WWW=   www
TYPO3SRC=   ${PORTNAME}_src-${PORTVERSION}
TYPO3DIR=   ${PORTNAME}

USERS=      ${WWWOWN}
GROUPS=     ${WWWGRP}

DISTFILES+= ${TYPO3SRC}${EXTRACT_SUFX}

OPTIONS_DEFINE= CURL GD GMP IMAGICK MBSTRING MYSQL ZLIB
OPTIONS_DEFAULT=
GD_DESC=    GDlib/freetype support
IMAGICK_DESC=   ${IMAGEMAGICK_DESC}
MBSTRING_DESC=  ${MULTIBYTE_DESC}
MYSQL_DESC= Install MySQL Server

CURL_USE=   PHP=curl
GD_USE=     PHP=gd
GMP_USE=    PHP=gmp
MBSTRING_USE=   PHP=mbstring
MYSQL_USE=  MYSQL=server
ZLIB_USE=   PHP=zlib

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MIMAGICK}
.if ${PORT_OPTIONS:MX11}
RUN_DEPENDS+=   convert:graphics/ImageMagick
.else
RUN_DEPENDS+=   convert:graphics/ImageMagick-nox11
.endif
.endif

do-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/${TYPO3WWW}/${TYPO3DIR}
    ${CP} -R ${WRKDIR}/${TYPO3SRC} ${STAGEDIR}${PREFIX}/${TYPO3WWW}/
    ${LN} -fs ../${TYPO3SRC} ${STAGEDIR}${PREFIX}/${TYPO3WWW}/${TYPO3DIR}/typo3_src
    ${LN} -fs typo3_src/index.php ${STAGEDIR}${PREFIX}/${TYPO3WWW}/${TYPO3DIR}/index.php
    ${LN} -fs typo3_src/typo3 ${STAGEDIR}${PREFIX}/${TYPO3WWW}/${TYPO3DIR}/typo3
    ${CP} ${WRKDIR}/${TYPO3SRC}/_.htaccess ${STAGEDIR}${PREFIX}/${TYPO3WWW}/${TYPO3DIR}/.htaccess

post-install:
    @cd ${STAGEDIR}${PREFIX}; \
        ${FIND} * \( -type f -or -type l \) -path "${TYPO3WWW}/${TYPO3DIR}/*" | \
        ${SORT} >> ${TMPPLIST}
    @cd ${STAGEDIR}${PREFIX}; \
        ${FIND} * \( -type f -or -type l \) -path "${TYPO3WWW}/${TYPO3SRC}/*" | \
        ${SORT} >> ${TMPPLIST}

    @${ECHO} "@dir ${TYPO3WWW}/${TYPO3SRC}/vendor/doctrine/common/lib/vendor/doctrine-build-common" >> ${TMPPLIST}
    @${ECHO} "@dir ${TYPO3WWW}/${TYPO3SRC}/vendor/doctrine/dbal/lib/vendor/Symfony/Component/Console" >> ${TMPPLIST}
    @${ECHO} "@dir ${TYPO3WWW}/${TYPO3SRC}/vendor/doctrine/dbal/lib/vendor/doctrine-build-common" >> ${TMPPLIST}
    @${ECHO} "@dir ${TYPO3WWW}/${TYPO3SRC}/vendor/doctrine/dbal/lib/vendor/doctrine-common" >> ${TMPPLIST}
    @${ECHO} "@dir ${TYPO3WWW}/${TYPO3SRC}/vendor/guzzlehttp/guzzle/build" >> ${TMPPLIST}

.include <bsd.port.mk>