diff options
author | crees <crees@FreeBSD.org> | 2011-06-23 00:01:24 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2011-06-23 00:01:24 +0800 |
commit | 1de92f2dbd42b2e65d9ea9cf90aba129c0500788 (patch) | |
tree | b08c5bdf4eabf50683dc94c284944f3a6f35e4c7 /www/hastymail2 | |
parent | d3914bd36ad8875e0bab1d561adedf205664b4cf (diff) | |
download | freebsd-ports-gnome-1de92f2dbd42b2e65d9ea9cf90aba129c0500788.tar.gz freebsd-ports-gnome-1de92f2dbd42b2e65d9ea9cf90aba129c0500788.tar.zst freebsd-ports-gnome-1de92f2dbd42b2e65d9ea9cf90aba129c0500788.zip |
- Add OPTIONS for database dependencies
- Remove redundant and incorrect WRKSRC line
- Correct typo in LICENSE
- Use redist version in DISTNAME
PR: ports/153379
Submitted by: Aldis Berjoza <aldis@bsdroot.lv>
Approved by: rene (mentor)
Diffstat (limited to 'www/hastymail2')
-rw-r--r-- | www/hastymail2/Makefile | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/www/hastymail2/Makefile b/www/hastymail2/Makefile index a323e6cb0c14..a7d52ee274f1 100644 --- a/www/hastymail2/Makefile +++ b/www/hastymail2/Makefile @@ -7,22 +7,22 @@ PORTNAME= hastymail2 PORTVERSION= 1.1 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= www mail MASTER_SITES= SF/hastymail/Hastymail2%20Stable%20Releases/Hastymail2%201.01/ -DISTNAME= hastymail2_1_01 +DISTNAME= hastymail2_${WIKEDVERSION} MAINTAINER= aldis@bsdroot.lv COMMENT= Small, fast and secure yet powerful IMAP webmail -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} NO_BUILD= yes SUB_FILES= pkg-message -LICSENSE= GPLv2 +LICENSE= GPLv2 INSTALL_DIR?= www/${PORTNAME} -PLIST= ${WRKDIR}/pkg-plist +PLIST= ${WRKDIR}/pkg-plist WANT_PHP_WEB= yes USE_PHP= session imap pcre @@ -32,8 +32,30 @@ WRKSRC= ${WRKDIR}/${PORTNAME}_${WIKEDVERSION} NO_BUILD= yes FIND_SKIP_OPTS= -not -name hastymail2.conf.example -not -name '*.orig' +OPTIONS= PGSQL "Use PostgreSQL" off \ + MYSQL "Use MySQL" off \ + DB "Use older pear DB (instead of MDB2)" off + .include <bsd.port.pre.mk> +.if defined(WITH_MYSQL) +USE_MYSQL= yes +.if !defined(WITH_DB) +RUN_DEPENDS+= ${LOCALBASE}/share/pear/MDB2/Driver/mysql.php:${PORTSDIR}/databases/pear-MDB2_Driver_mysql +.endif +.endif + +.if defined(WITH_PGSQL) +USE_PGSQL= yes +.if !defined(WITH_DB) +RUN_DEPENDS+= ${LOCALBASE}/share/pear/MDB2/Driver/pgsql.php:${PORTSDIR}/databases/pear-MDB2_Driver_pgsql +.endif +.endif + +.if defined(WITH_DB) && (defined(WITH_MYSQL) || defined(WITH_PGSQL)) +RUN_DEPENDS+= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB +.endif + post-patch: @${SED} -I.orig -e "s#'/etc/hastymail2/hastymail2.rc'#'${PREFIX}/etc/hastymail2/hastymail2.rc'#" \ ${WRKSRC}/index.php |