diff options
author | miwi <miwi@FreeBSD.org> | 2012-05-29 22:59:39 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2012-05-29 22:59:39 +0800 |
commit | b61aa894e6ce610111e6ce967af6667e0c9ccf2f (patch) | |
tree | 26f4658f014b95c5c2fda6df2de3943bda55a42e /www/serendipity | |
parent | 3b498c7e61886bca4c5aa540da1df8d41926d7d4 (diff) | |
download | freebsd-ports-gnome-b61aa894e6ce610111e6ce967af6667e0c9ccf2f.tar.gz freebsd-ports-gnome-b61aa894e6ce610111e6ce967af6667e0c9ccf2f.tar.zst freebsd-ports-gnome-b61aa894e6ce610111e6ce967af6667e0c9ccf2f.zip |
- Convert to new options framework
- Add shared MAGICK, MYSQL, PGSQL and SQLITE descriptions
Reviewed by: bapt
Diffstat (limited to 'www/serendipity')
-rw-r--r-- | www/serendipity/Makefile | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/www/serendipity/Makefile b/www/serendipity/Makefile index 535e7c2b9d9d..1002740ff8dd 100644 --- a/www/serendipity/Makefile +++ b/www/serendipity/Makefile @@ -24,26 +24,24 @@ SUB_LIST+= SERENDIPITY=${SERENDIPITY} SUB_FILES= pkg-message USE_BZIP2= YES -OPTIONS= MYSQL "Use MySQL backend" on \ - PGSQL "Use PostgreSQL backend" off \ - SQLITE "Use SQLite backend (php5 only)" off \ - MAGICK "Use ImageMagick Library" on +OPTIONS_DEFINE= MYSQL PGSQL SQLITE MAGICK +OPTIONS_DEFAULT= MYSQL MAGICK -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if !defined(WITHOUT_MYSQL) +.if ${PORT_OPTIONS:MMYSQL} USE_PHP+= mysql . endif -.if defined(WITH_PGSQL) +.if ${PORT_OPTIONS:MPGSQL} USE_PHP+= pgsql .endif -.if defined(WITH_SQLITE) +.if ${PORT_OPTIONS:MSQLITE} USE_PHP+= sqlite .endif -.if !defined(WITHOUT_MAGICK) +.if ${PORT_OPTIONS:MMAGICK} RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick .endif @@ -56,4 +54,4 @@ do-install: post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |