diff options
author | rene <rene@FreeBSD.org> | 2012-12-20 00:45:09 +0800 |
---|---|---|
committer | rene <rene@FreeBSD.org> | 2012-12-20 00:45:09 +0800 |
commit | 10faf629e2a9d6855267a1bbc3d54d48ea64e733 (patch) | |
tree | 300ebff6b857226863b9f01795b10a0a12318f9b /www/hastymail2 | |
parent | 9782949d60756cae96b9cfed27c3fdc004b482b3 (diff) | |
download | freebsd-ports-gnome-10faf629e2a9d6855267a1bbc3d54d48ea64e733.tar.gz freebsd-ports-gnome-10faf629e2a9d6855267a1bbc3d54d48ea64e733.tar.zst freebsd-ports-gnome-10faf629e2a9d6855267a1bbc3d54d48ea64e733.zip |
- Convert to optionsNG
- Strip Makefile header
Diffstat (limited to 'www/hastymail2')
-rw-r--r-- | www/hastymail2/Makefile | 35 |
1 files changed, 15 insertions, 20 deletions
diff --git a/www/hastymail2/Makefile b/www/hastymail2/Makefile index cec9a187f441..950f407c46a7 100644 --- a/www/hastymail2/Makefile +++ b/www/hastymail2/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: hastymail -# Date created: 2006-11-04 -# Whom: Bartlomiej Rutkowski <r@robakdesign.com> -# +# Created by: Bartlomiej Rutkowski <r@robakdesign.com> # $FreeBSD$ -# PORTNAME= hastymail2 PORTVERSION= 1.1 @@ -21,7 +17,7 @@ LICENSE= GPLv2 NO_BUILD= yes SUB_FILES= pkg-message -CONFLICTS= hastymail-* hastymail2-devel-* +CONFLICTS= hastymail-* hastymail2-devel-* PLIST= ${WRKDIR}/pkg-plist @@ -33,37 +29,36 @@ 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 \ - ICONV "Support character set conversion" off \ - MBSTRING "Support multi-byte character sets" off +OPTIONS_DEFINE= PGSQL MYSQL DB ICONV MBSTRING -.include <bsd.port.pre.mk> +DB_DESC= Use older pear DB (instead of MDB2) +MBSTRING_DESC= Support multi-byte character sets -.if defined(WITH_MYSQL) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MMYSQL} USE_MYSQL= yes -.if !defined(WITH_DB) +.if ! ${PORT_OPTIONS:MDB} RUN_DEPENDS+= ${LOCALBASE}/share/pear/MDB2/Driver/mysql.php:${PORTSDIR}/databases/pear-MDB2_Driver_mysql .endif .endif -.if defined(WITH_PGSQL) +.if ${PORT_OPTIONS:MPGSQL} USE_PGSQL= yes -.if !defined(WITH_DB) +.if ! ${PORT_OPTIONS:MDB} 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)) +.if ${PORT_OPTIONS:MDB} && (${PORT_OPTIONS:MMYSQL} || ${PORT_OPTIONS:MPGSQL}) RUN_DEPENDS+= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB .endif -.if defined(WITH_ICONV) +.if ${PORT_OPTIONS:MICONV} USE_PHP+= iconv .endif -.if defined(WITH_MBSTRING) +.if ${PORT_OPTIONS:MMBSTRING} USE_PHP+= mbstring .endif @@ -93,4 +88,4 @@ do-install: post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |