mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
90 lines
2.1 KiB
Makefile
90 lines
2.1 KiB
Makefile
# Created by: Gerrit Beine <tux@pinguru.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= typo3
|
|
PORTVERSION= 6.1.7
|
|
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
|
|
|
|
PORTSCOUT= limit:^6\.1\.
|
|
|
|
NO_BUILD= yes
|
|
USE_PHP= ctype filter json mysqli pcre session xml
|
|
WANT_PHP_WEB= yes
|
|
IGNORE_WITH_PHP=52
|
|
|
|
TYPO3WWW= www
|
|
TYPO3RELEASE=
|
|
TYPO3SITE= ${TYPO3WWW}/${PORTNAME}
|
|
TYPO3PKG= ${PORTNAME}-${PORTVERSION}
|
|
TYPO3SRC= ${PORTNAME}_src-${PORTVERSION}
|
|
TYPO3DUMMY= dummy-${PORTVERSION}
|
|
|
|
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
|
|
|
|
DISTFILES+= ${TYPO3SRC}${EXTRACT_SUFX} ${TYPO3DUMMY}${EXTRACT_SUFX}
|
|
|
|
OPTIONS_DEFINE= APC CURL GD IMAGICK MBSTRING MYSQL ZLIB
|
|
APC_DESC= Alternative PHP Cache
|
|
GD_DESC= GDlib/freetype support
|
|
IMAGICK_DESC= ${IMAGEMAGICK_DESC}
|
|
MBSTRING_DESC= ${MULTIBYTE_DESC}
|
|
MYSQL_DESC= Install MySQL Server
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MAPC}
|
|
USE_PHP+= apc
|
|
.endif
|
|
|
|
.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:MMYSQL}
|
|
USE_MYSQL= server
|
|
IGNORE_WITH_MYSQL= 50
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MZLIB}
|
|
USE_PHP+= zlib
|
|
.endif
|
|
|
|
pre-install:
|
|
@if [ -f ${WRKDIR}/${TYPO3DUMMY}/typo3conf/LocalConfiguration.php ]; then \
|
|
${MV} ${WRKDIR}/${TYPO3DUMMY}/typo3conf/LocalConfiguration.php \
|
|
${WRKDIR}/${TYPO3DUMMY}/typo3conf/LocalConfiguration.php.dist; \
|
|
fi
|
|
|
|
do-install:
|
|
${CP} -R ${WRKDIR}/${TYPO3DUMMY}/ ${STAGEDIR}${PREFIX}/${TYPO3SITE}
|
|
${CP} -R ${WRKDIR}/${TYPO3SRC} ${STAGEDIR}${PREFIX}/${TYPO3WWW}
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${TYPO3SITE}
|
|
${RM} ${STAGEDIR}${PREFIX}/${TYPO3SITE}/typo3_src && \
|
|
cd ${STAGEDIR}${PREFIX}/${TYPO3SITE} && \
|
|
${LN} -s ../${TYPO3SRC} typo3_src
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${TYPO3WWW}/${TYPO3SRC}
|
|
|
|
.include <bsd.port.mk>
|