diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2012-09-09 07:02:40 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2012-09-09 07:02:40 +0800 |
commit | 0d4feaf4981ebabbcec2fed42522da51bb7a743c (patch) | |
tree | 312b10a4257a0a4aa45e86154edea4424d35de76 /deskutils | |
parent | 498d06967d69fbc7cf5813393f03acffc7d4b7e6 (diff) | |
download | freebsd-ports-gnome-0d4feaf4981ebabbcec2fed42522da51bb7a743c.tar.gz freebsd-ports-gnome-0d4feaf4981ebabbcec2fed42522da51bb7a743c.tar.zst freebsd-ports-gnome-0d4feaf4981ebabbcec2fed42522da51bb7a743c.zip |
- Use OPTIONSng
- Remove deprecated header information
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/xfce4-notification-daemon/Makefile | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/deskutils/xfce4-notification-daemon/Makefile b/deskutils/xfce4-notification-daemon/Makefile index 4870f17775e9..5b71efea3f20 100644 --- a/deskutils/xfce4-notification-daemon/Makefile +++ b/deskutils/xfce4-notification-daemon/Makefile @@ -1,9 +1,4 @@ -# New ports collection makefile for: notification-daemon -# Date created: 16 Nov 2007 -# Whom: Emanuel Haupt <ehaupt@FreeBSD.org> -# # $FreeBSD$ -# PORTNAME= notification-daemon PORTVERSION= 0.3.7 @@ -20,8 +15,8 @@ COMMENT= Port of Gnome's notification-daemon for the Xfce desktop LICENSE= GPLv2 BUILD_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser -LIB_DEPENDS= sexy.2:${PORTSDIR}/x11-toolkits/libsexy \ - dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib +LIB_DEPENDS= sexy:${PORTSDIR}/x11-toolkits/libsexy \ + dbus-glib:${PORTSDIR}/devel/dbus-glib RUN_DEPENDS= dbus-daemon:${PORTSDIR}/devel/dbus GNU_CONFIGURE= yes @@ -39,24 +34,27 @@ CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/xfce4 \ CONFLICTS= notification-daemon-[0-9]* xfce4-notifyd-[0-9]* notify-osd-[0-9]* -OPTIONS= GRADIENT "Show a gradient look in the default theme" off \ - CLOSE "Show the close button in the default theme" on \ - NLS "Enable Native Language Support" on +OPTIONS_DEFINE= GRADIENT CLOSE NLS -.include <bsd.port.pre.mk> +GRADIENT_DESC= Show a gradient look in the default theme +CLOSE_DESC= Show the close button in the default theme -.if !defined(WITHOUT_NLS) +OPTIONS_DEFAULT=CLOSE NLS + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} USE_GETTEXT= yes PLIST_SUB+= NLS="" .else PLIST_SUB+= NLS="@comment " .endif -.if defined(WITH_GRADIENT) +.if ${PORT_OPTIONS:MGRADIENT} CONFIGURE_ARGS+= --enable-gradient-look .endif -.if defined(WITHOUT_CLOSE) +.if ${PORT_OPTIONS:MCLOSE} CONFIGURE_ARGS+= --disable-close-button .endif @@ -68,8 +66,8 @@ post-patch: ${WRKSRC}/src/themes/bubble/Makefile.in \ ${WRKSRC}/src/themes/standard/Makefile.am \ ${WRKSRC}/src/themes/standard/Makefile.in -.if defined(WITHOUT_NLS) +.if empty(PORT_OPTIONS:MNLS) @${REINPLACE_CMD} -e 's|\(USE_NLS=\)yes|\1no|' ${WRKSRC}/configure .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |