diff options
author | garga <garga@FreeBSD.org> | 2012-07-03 06:19:47 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2012-07-03 06:19:47 +0800 |
commit | a0ac694620bc0b421c14d3178d360f82e06e231a (patch) | |
tree | bb2cfc9f6a817b91b0b96239ef2db915e1d7e61b /www | |
parent | c37f3c4558eb57d56ce056ac7c706b5abb3a3301 (diff) | |
download | freebsd-ports-gnome-a0ac694620bc0b421c14d3178d360f82e06e231a.tar.gz freebsd-ports-gnome-a0ac694620bc0b421c14d3178d360f82e06e231a.tar.zst freebsd-ports-gnome-a0ac694620bc0b421c14d3178d360f82e06e231a.zip |
Move to OPTIONSng
Diffstat (limited to 'www')
-rw-r--r-- | www/dotproject/Makefile | 5 | ||||
-rw-r--r-- | www/sarg/Makefile | 27 |
2 files changed, 18 insertions, 14 deletions
diff --git a/www/dotproject/Makefile b/www/dotproject/Makefile index 8a16eb111377..127bba4faf43 100644 --- a/www/dotproject/Makefile +++ b/www/dotproject/Makefile @@ -22,11 +22,12 @@ USE_APACHE= 20+ SUB_FILES= pkg-message -OPTIONS= LDAP "Enable ldap support" On +OPTIONS_DEFINE= LDAP +OPTIONS_DEFAULT=LDAP .include <bsd.port.pre.mk> -.if defined(WITH_LDAP) +.if ${PORT_OPTIONS:MLDAP} USE_PHP+= ldap xml .endif diff --git a/www/sarg/Makefile b/www/sarg/Makefile index cd654c3424f5..2df58e773b8c 100644 --- a/www/sarg/Makefile +++ b/www/sarg/Makefile @@ -17,8 +17,11 @@ COMMENT= Squid log analyzer and HTML report generator LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -OPTIONS= GD "Enable GD support" on\ - PHP "Install PHP for reporting generating" on +OPTIONS_DEFINE= GD PHP +OPTIONS_DEFAULT=GD PHP + +GD_DESC= Enable GD support +PHP_DESC= Install PHP for reporting generating USE_AUTOTOOLS= autoconf aclocal USE_GMAKE= yes @@ -33,24 +36,24 @@ MAN1= sarg.1 .include <bsd.port.pre.mk> -.if defined(WITHOUT_NLS) -PLIST_SUB+= NLS="@comment " -CONFIGURE_ARGS+= --disable-nls -.else +.if ${PORT_OPTIONS:MNLS} PLIST_SUB+= NLS="" USE_GETTEXT= yes USE_ICONV= yes +.else +PLIST_SUB+= NLS="@comment " +CONFIGURE_ARGS+=--disable-nls .endif -.if !defined(WITHOUT_GD) -LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd +.if ${PORT_OPTIONS:MGD} +LIB_DEPENDS+= gd:${PORTSDIR}/graphics/gd .endif -.if !defined(WITHOUT_PHP) -CONFIGURE_ARGS+= --enable-sargphp="${ETCDIR}" +.if ${PORT_OPTIONS:MPHP} +CONFIGURE_ARGS+=--enable-sargphp="${ETCDIR}" PLIST_SUB+= PHP="" .else -CONFIGURE_ARGS+= --disable-sargphp +CONFIGURE_ARGS+=--disable-sargphp PLIST_SUB+= PHP="@comment " .endif @@ -59,7 +62,7 @@ post-extract: @${CHMOD} 0755 ${WRKSRC}/configure post-patch: -.if !defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} @${REINPLACE_CMD} -e '/^LIBS/ s/$$/ -lintl/' ${WRKSRC}/Makefile.in .endif |