1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/www/tikiwiki/Makefile
Baptiste Daroussin 6df39ec064 Do not show colored output for pkg-message this is wrong because
1/ the code will depend on the terminal running it
2/ pkgng does not like it at all (this bug should be fixed in pkgng anyway)

Reported by:	antoine
2014-01-06 23:28:42 +00:00

52 lines
1.4 KiB
Makefile

# Created by: Babak Farrokhi <babak@farrokhi.net>
# $FreeBSD$
PORTNAME= tikiwiki
PORTVERSION= 11.0
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/Tiki_11.x_Vega/${PORTVERSION}/
DISTNAME= tiki-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Powerful PHP based Wiki/CMS/Groupware
LICENSE= LGPL20
USE_PHP= gettext pcre posix session xml zlib
WANT_PHP_WEB= yes
NO_BUILD= yes
TIKIWIKI_DIR?= www/${PORTNAME}-${PORTVERSION}
PLIST_SUB= TIKIWIKI_DIR=${TIKIWIKI_DIR}
TEMP_PLIST= ${WRKDIR}/temp-pkg-plist
SUB_FILES= pkg-message
SUB_LIST+= PORTNAME=${PORTNAME} TIKIWIKI_DIR=${TIKIWIKI_DIR}
WRKSRC= ${WRKDIR}/${DISTNAME}
# This target is only meant to be used by the port maintainer.
# Stolen from dokuwiki sorry :)
x-generate-plist: extract
@cd ${WRKSRC} && ${FIND} -s . -type f | \
${SED} -e 's|^./||;s|^|%%TIKIWIKI_DIR%%/|' > ${TEMP_PLIST} \
&& ${FIND} -s -d * -type d | \
${SED} -e 's|^|@dirrm %%TIKIWIKI_DIR%%/|' >> ${TEMP_PLIST} \
&& ${ECHO_CMD} "@dirrmtry %%TIKIWIKI_DIR%%" >> ${TEMP_PLIST}
NO_STAGE= yes
do-extract:
${MKDIR} ${WRKDIR}
${TAR} -yxf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} -C ${WRKDIR}
@${FIND} ${WRKSRC} -name '.DS_Store' -delete
do-install:
-${MKDIR} ${PREFIX}/${TIKIWIKI_DIR}
@${CP} -R ${WRKSRC}/ ${PREFIX}/${TIKIWIKI_DIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${TIKIWIKI_DIR}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>