2005-02-08 21:02:48 +00:00
|
|
|
# New ports collection makefile for: www/typo3
|
|
|
|
# Date created: February 6th 2005
|
|
|
|
# Whom: Gerrit Beine <tux@pinguru.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= typo3
|
2008-06-16 20:19:47 +00:00
|
|
|
PORTVERSION= 4.2.1
|
2005-02-08 21:02:48 +00:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTNAME= ${PORTNAME}_src-${PORTVERSION}
|
|
|
|
|
2006-02-27 16:37:35 +00:00
|
|
|
MAINTAINER= gerrit.beine@gmx.de
|
2005-02-08 21:02:48 +00:00
|
|
|
COMMENT= The typo3 content management system
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
2006-02-27 16:37:35 +00:00
|
|
|
USE_PHP= mysql pcre xml session ctype
|
2005-02-08 21:02:48 +00:00
|
|
|
WANT_PHP_WEB= yes
|
2008-04-27 08:16:48 +00:00
|
|
|
IGNORE_WITH_PHP= 4
|
2005-02-08 21:02:48 +00:00
|
|
|
|
|
|
|
TYPO3DIR= www/${DISTNAME}
|
|
|
|
SITEDIR?= www/typo3
|
|
|
|
SITESRC= ${WRKDIR}/${EDITION}-${PORTVERSION}
|
|
|
|
|
2006-02-27 16:37:35 +00:00
|
|
|
EDITION= dummy
|
2005-02-08 21:02:48 +00:00
|
|
|
|
|
|
|
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} ${EDITION}-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
OPTIONS= GD "Configure with GDlib/freetype support" off \
|
|
|
|
ZLIB "Configure with zlib support" off \
|
|
|
|
IMAGICK "Configure with ImageMagick support" off
|
|
|
|
|
2006-01-11 11:33:25 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2005-02-08 21:02:48 +00:00
|
|
|
|
|
|
|
.if defined(WITH_GD)
|
|
|
|
USE_PHP+= gd
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ZLIB)
|
|
|
|
USE_PHP+= zlib
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_IMAGICK)
|
2008-04-22 10:56:45 +00:00
|
|
|
LIB_DEPENDS+= MagickWand.1:${PORTSDIR}/graphics/ImageMagick
|
2005-02-08 21:02:48 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${CP} -R ${WRKSRC} ${PREFIX}/${TYPO3DIR}
|
|
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${TYPO3DIR}
|
|
|
|
${CP} -R ${SITESRC} ${PREFIX}/${SITEDIR}
|
|
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${SITEDIR}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${FIND} ${PREFIX}/${TYPO3DIR} -not -type d \
|
|
|
|
| ${SED} -ne 's,^${PREFIX}/,,p' >> ${TMPPLIST}
|
|
|
|
@${FIND} -d ${PREFIX}/${TYPO3DIR} -type d \
|
|
|
|
| ${SED} -ne 's,^${PREFIX}/${TYPO3DIR},@dirrm ${TYPO3DIR},p' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${PREFIX}/${SITEDIR} -not -type d \
|
|
|
|
| ${SED} -ne 's,^${PREFIX}/,,p' >> ${TMPPLIST}
|
|
|
|
@${FIND} -d ${PREFIX}/${SITEDIR} -type d \
|
|
|
|
| ${SED} -ne 's,^${PREFIX}/${SITEDIR},@dirrm ${SITEDIR},p' >> ${TMPPLIST}
|
|
|
|
|
2006-01-11 11:33:25 +00:00
|
|
|
.include <bsd.port.post.mk>
|