From ae32faecdf3e325ba86c2fcd674aa31132c0038f Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Wed, 20 Feb 2013 18:20:52 +0000 Subject: Convert to new options framework --- ftp/gwget/Makefile | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'ftp') diff --git a/ftp/gwget/Makefile b/ftp/gwget/Makefile index 604e60a2c4f0..034b27c4738e 100644 --- a/ftp/gwget/Makefile +++ b/ftp/gwget/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: gwget -# Date created: 1 November 2004 -# Whom: Radek Kozlowski -# +# Created by: Radek Kozlowski # $FreeBSD$ -# PORTNAME= gwget PORTVERSION= 1.0.4 @@ -18,8 +14,9 @@ COMMENT= GNOME wget front-end LIB_DEPENDS= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget -OPTIONS= LIBNOTIFY "Enable libnotify support" on \ - EPIPHANY "Enable Epiphany extension" on +OPTIONS_DEFINE= NOTIFY EPIPHANY +OPTIONS_DEFAULT= NOTIFY EPIPHANY +EPIPHANY_DESC= Epiphany extension USE_BZIP2= yes USE_GMAKE= yes @@ -33,16 +30,16 @@ LDFLAGS+= -L${LOCALBASE}/lib GCONF_SCHEMAS= ${PORTNAME}.schemas -.include +.include -.if !defined(WITHOUT_LIBNOTIFY) +.if ${PORT_OPTIONS:MNOFITY} LIB_DEPENDS+= notify.4:${PORTSDIR}/devel/libnotify RUN_DEPENDS+= ${LOCALBASE}/libexec/notification-daemon:${PORTSDIR}/deskutils/notification-daemon .else CONFIGURE_ARGS+= --disable-libnotify .endif -.if defined(WITH_EPIPHANY) +.if ${PORT_OPTIONS:MEPIPHANY} BUILD_DEPENDS+= epiphany:${PORTSDIR}/www/epiphany RUN_DEPENDS+= epiphany:${PORTSDIR}/www/epiphany CONFIGURE_ARGS+= --enable-epiphany-extension @@ -55,4 +52,4 @@ PLIST_SUB+= EPIPHANY="@comment " post-install: @-update-desktop-database -.include +.include -- cgit v1.2.3