mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
39c64c2a7c
- Add NO_ARCH
92 lines
2.0 KiB
Makefile
92 lines
2.0 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= WebCalendar
|
|
PORTVERSION= 1.2.7
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME:tl}%201.2/${PORTVERSION}/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Web-based calendar application
|
|
|
|
LICENSE= GPLv2
|
|
|
|
PORTSCOUT= limit:^1\.2\. skipb:1
|
|
USE_PHP= pcre session
|
|
WANT_PHP_WEB= yes
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
|
|
USES= cpe
|
|
CPE_VENDOR= craig_knudsen
|
|
WWWDIR= ${PREFIX}/www/${PORTNAME:tl}
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:tl}
|
|
DEFAULT_VERSIONS+= php=5
|
|
WITH_PHP_CGI?= /cgi-bin/php
|
|
SUB_LIST+= PHPCGI=${WITH_PHP_CGI}
|
|
PLIST_SUB+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
|
|
|
PORTDOCS= WebCalendar-SysAdmin.html \
|
|
newwin.gif
|
|
|
|
OPTIONS_DEFINE= APACHE LDAP GRADIENTBG REMINDERS PALM DOCS
|
|
OPTIONS_DEFAULT= MYSQL REMINDERS
|
|
OPTIONS_MULTI= DB
|
|
OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE MSSQL DBASE ODBC ORACLE
|
|
OPTIONS_SUB= yes
|
|
GRADIENTBG_DESC= Gradient background image support
|
|
REMINDERS_DESC= Email reminder support
|
|
PALM_DESC= Palm export support
|
|
|
|
APACHE_USE= APACHE_RUN=22+
|
|
DBASE_USE= PHP=dbase
|
|
GRADIENTBG_USE= PHP=gd
|
|
LDAP_USE= PHP=ldap
|
|
MSSQL_USE= PHP=mssql
|
|
MYSQL_USE= PHP=mysql
|
|
ODBC_USE= PHP=odbc
|
|
ORACLE_USE= PHP=oracle
|
|
PALM_RUN_DEPENDS= pilot-xfer:${PORTSDIR}/palm/pilot-link
|
|
PGSQL_USE= PHP=pgsql
|
|
SQLITE_USE= PHP=sqlite3
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PORT_OPTIONS:MAPACHE}
|
|
PLIST_SUB+= CONFDIR=${CONFDIR_REL}
|
|
CONFDIR= ${PREFIX}/${CONFDIR_REL}
|
|
CONFDIR_REL= ${APACHEETCDIR}/Includes
|
|
SUB_FILES= pkg-message
|
|
.endif
|
|
|
|
.if ${PHP_SAPI:Mcgi} == "cgi" && ${PHP_SAPI:Mmod} == ""
|
|
CGI_EXT= -cgi
|
|
.else
|
|
CGI_EXT=
|
|
.endif
|
|
CONF= webcalendar${CGI_EXT}.conf
|
|
SUB_FILES+= ${CONF}
|
|
PLIST_SUB+= CONFFILE=${CONF}
|
|
|
|
.if ${PORT_OPTIONS:MREMINDERS}
|
|
WANT_PHP_CLI= yes
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
SUB_LIST+= HASHMARK=
|
|
.else
|
|
SUB_LIST+= HASHMARK=\#
|
|
.endif
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${WWWDIR}
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/${CONF} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.post.mk>
|