aboutsummaryrefslogtreecommitdiffstats
path: root/www/webcalendar/Makefile
diff options
context:
space:
mode:
authormnag <mnag@FreeBSD.org>2006-04-24 11:52:02 +0800
committermnag <mnag@FreeBSD.org>2006-04-24 11:52:02 +0800
commitba3242558da941186e6f72824d548531172d9e13 (patch)
tree12df611fc2b521080b2a67a9d60d3f34ae9dc848 /www/webcalendar/Makefile
parentb57de7a22226d22e8765e91ad480c1a14f687dd8 (diff)
downloadfreebsd-ports-gnome-ba3242558da941186e6f72824d548531172d9e13.tar.gz
freebsd-ports-gnome-ba3242558da941186e6f72824d548531172d9e13.tar.zst
freebsd-ports-gnome-ba3242558da941186e6f72824d548531172d9e13.zip
- Update port 1.0.3
- Use OPTIONS - portlint(1) PR: 96053 Submitted by: maintainer
Diffstat (limited to 'www/webcalendar/Makefile')
-rw-r--r--www/webcalendar/Makefile66
1 files changed, 58 insertions, 8 deletions
diff --git a/www/webcalendar/Makefile b/www/webcalendar/Makefile
index 0d15a0e14f0a..8061a132706c 100644
--- a/www/webcalendar/Makefile
+++ b/www/webcalendar/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= WebCalendar
-DISTVERSION= 1.0.2
+DISTVERSION= 1.0.3
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= webcalendar
@@ -15,7 +15,8 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= glarkin@sourcehosting.net
COMMENT= A web-based calendar application
-USE_PHP= yes
+USE_PHP= pcre session ldap
+USE_APACHE= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/WebCalendar-${DISTVERSION}
@@ -30,25 +31,74 @@ DOCS= docs/README \
docs/WebCalendar-SysAdmin.html \
docs/newwin.gif
+OPTIONS= MYSQL "Use MySQL database backend (default)" On \
+ PGSQL "Use PostgreSQL database backend" Off \
+ MSSQL "Use MSSQL database backend" Off \
+ DBASE "Use DBase database backend" Off \
+ ODBC "Use ODBC database backend" Off \
+ ORACLE "Use Oracle database backend" Off
+
+.include <bsd.port.pre.mk>
+
+DB_DEFINED= no
+
+.if !defined(WITHOUT_MYSQL)
+USE_PHP+= mysql
+DB_DEFINED= yes
+.endif
+
+.if defined(WITH_PGSQL)
+USE_PHP+= pgsql
+DB_DEFINED= yes
+.endif
+
+.if defined(WITH_MSSQL)
+USE_PHP+= mssql
+DB_DEFINED= yes
+.endif
+
+.if defined(WITH_DBASE)
+USE_PHP+= dbase
+DB_DEFINED= yes
+.endif
+
+.if defined(WITH_ODBC)
+USE_PHP+= odbc
+DB_DEFINED= yes
+.endif
+
+.if defined(WITH_ORACLE)
+USE_PHP+= oracle
+DB_DEFINED= yes
+.endif
+
+.if ${DB_DEFINED} == "no"
+IGNORE= please, choose database backend running 'make config'
+.endif
+
+# Fix USE_PHP after bsd.port.pre.mk
+.include "${PORTSDIR}/Mk/bsd.php.mk"
+
pre-install:
cd ${WRKSRC} && ${FIND} -s * -type f | \
${SED} -e 's|^|${WEBWCDIR}/|' > ${PLIST} \
&& ${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm ${WEBWCDIR}/|' >> ${PLIST} \
&& ${ECHO_CMD} @dirrm ${WEBWCDIR} >> ${PLIST}
- ${CAT} pkg-plist >> ${PLIST}
+ @${CAT} pkg-plist >> ${PLIST}
do-install:
- ${MKDIR} ${PREFIX}/${WEBWCDIR}
+ @${MKDIR} ${PREFIX}/${WEBWCDIR}
${CP} -R ${WRKSRC}/* ${PREFIX}/${WEBWCDIR}
${CHOWN} -R www:www ${PREFIX}/${WEBWCDIR}
${FIND} ${PREFIX}/${WEBWCDIR} -type f | ${XARGS} ${CHMOD} 644
post-install:
- ${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${DOCSDIR}
.for i in ${DOCS}
- @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
- @${CAT} ${PKGMESSAGE} | ${SED} -e 's|%%PREFIX%%|${PREFIX}|g' -e 's|%%WEBWCDIR%%|${WEBWCDIR}|g' -e 's|%%DOCSDIR%%|${DOCSDIR}|g'
+ @${CAT} ${PKGMESSAGE} | ${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
+ -e 's|%%WEBWCDIR%%|${WEBWCDIR}|g' -e 's|%%DOCSDIR%%|${DOCSDIR}|g'
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>