mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
96a38c7c3a
minor COMMENT typos and surrounding whitespace fixes. A few Makefiles where not included as they contain Latin-1 characters that break the Phabricator workflow. Category W. CR: D510 Approved by: portmgr (bapt)
99 lines
2.3 KiB
Makefile
99 lines
2.3 KiB
Makefile
# Created by: glarkin
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= WebCalendar
|
|
PORTVERSION= 1.0.5
|
|
PORTREVISION= 2
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME:tl}%201.0/${PORTVERSION}
|
|
PORTSCOUT= limit:^1\.0\.
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Web-based calendar application
|
|
|
|
USE_PHP= pcre session
|
|
WANT_PHP_WEB= yes
|
|
NO_BUILD= yes
|
|
CONFLICTS= WebCalendar-devel-[0-9]*
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
WCURL?= webcalendar
|
|
WCDIR?= www/${WCURL}
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= WCURL=${WCURL} WCDIR=${WCDIR}
|
|
|
|
OPTIONS_DEFINE= LDAP DOCS
|
|
OPTIONS_MULTI= DB
|
|
OPTIONS_MULTI_DB= MYSQL PGSQL MSSQL DBASE ODBC ORACLE
|
|
OPTIONS_DEFAULT= MYSQL
|
|
DB_DESC= Database backend
|
|
DBASE_DESC= DBase database support
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:tl}
|
|
PORTDOCS= README \
|
|
WebCalendar-Database.html \
|
|
WebCalendar-DeveloperGuide.html \
|
|
WebCalendar-Styling.html \
|
|
WebCalendar-SysAdmin.html \
|
|
newwin.gif
|
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
|
USE_PHP+= mysql
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
|
USE_PHP+= pgsql
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMSSQL}
|
|
USE_PHP+= mssql
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDBASE}
|
|
USE_PHP+= dbase
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MODBC}
|
|
USE_PHP+= odbc
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MORACLE}
|
|
USE_PHP+= oracle
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
|
USE_PHP+= ldap
|
|
.endif
|
|
|
|
pre-install:
|
|
@cd ${WRKSRC} && ${FIND} -s * -type f | \
|
|
${SED} -e 's|^|${WCDIR}/|' > ${PLIST} \
|
|
&& ${FIND} -d * -type d | \
|
|
${SED} -e 's|^|@dirrm ${WCDIR}/|' >> ${PLIST} \
|
|
&& ${ECHO_CMD} @dirrm ${WCDIR} >> ${PLIST}
|
|
@${ECHO_CMD} @dirrmtry www/data-dist >> ${PLIST}
|
|
@${ECHO_CMD} @dirrmtry www/data >> ${PLIST}
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${WCDIR}
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${WCDIR}
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${WCDIR}
|
|
@${FIND} ${STAGEDIR}${PREFIX}/${WCDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
|
|
${WCDIR:S|^|%D/|}' >> ${TMPPLIST}
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/www/data \
|
|
${STAGEDIR}${PREFIX}/www/data-dist
|
|
@${ECHO_CMD} '@dirrmtry www/data' >> ${TMPPLIST}
|
|
@${ECHO_CMD} '@dirrmtry www/data-dist' >> ${TMPPLIST}
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
@cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|