Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Mar 2015 14:27:58 +0000 (UTC)
From:      Tilman Keskinoz <arved@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r380850 - in head/net-im/profanity: . files
Message-ID:  <201503091427.t29ERwTE043104@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arved
Date: Mon Mar  9 14:27:57 2015
New Revision: 380850
URL: https://svnweb.freebsd.org/changeset/ports/380850
QAT: https://qat.redports.org/buildarchive/r380850/

Log:
  Add an option for libnotify support
  
  Submitted by: Denis D <stdedjub@googlemail.com> (Makefile changes)

Added:
  head/net-im/profanity/files/
  head/net-im/profanity/files/patch-configure.ac   (contents, props changed)
Modified:
  head/net-im/profanity/Makefile

Modified: head/net-im/profanity/Makefile
==============================================================================
--- head/net-im/profanity/Makefile	Mon Mar  9 14:26:34 2015	(r380849)
+++ head/net-im/profanity/Makefile	Mon Mar  9 14:27:57 2015	(r380850)
@@ -16,9 +16,17 @@ LIB_DEPENDS=	libstrophe.so:${PORTSDIR}/n
 		libcurl.so:${PORTSDIR}/ftp/curl \
 		libotr.so:${PORTSDIR}/security/libotr3
 
-USES=		ncurses pkgconfig
+OPTIONS_DEFINE=NOTIFY
+USES=		ncurses pkgconfig autoreconf
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--enable-otr
 CONFIGURE_ENV=	LIBS="${CFLAGS} -lcrypto"
 
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNOTIFY}
+LIB_DEPENDS+=	libnotify.so:${PORTSDIR}/devel/libnotify
+CONFIGURE_ARGS+=	--enable-notifications
+.endif
+
 .include <bsd.port.mk>

Added: head/net-im/profanity/files/patch-configure.ac
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-im/profanity/files/patch-configure.ac	Mon Mar  9 14:27:57 2015	(r380850)
@@ -0,0 +1,32 @@
+--- configure.ac.orig	2015-03-09 09:51:22.000000000 +0100
++++ configure.ac	2015-03-09 09:56:17.000000000 +0100
+@@ -141,22 +141,21 @@
+ ### Windows uses native OS calls
+ ### OSX requires terminal-notifier
+ 
+-AS_IF([test "x$PLATFORM" = xosx],
+-        [AS_IF([test "x$enable_notifications" != xno],
++AS_IF([test "x$enable_notifications" != xno],
+             [NOTIFIER_PATH="no"
+             AC_PATH_PROG(NOTIFIER_PATH, terminal-notifier, no)
+             AS_IF([test "x$NOTIFIER_PATH" = xno],
+                 [AS_IF([test "x$enable_notifications" = xyes],
+-                    [AC_MSG_ERROR([terminal-notifier not found, required for desktop notifications.])],
++                    [AC_MSG_WARN([terminal-notifier not found, required for desktop notifications on OS X.])],
+                     [AC_MSG_NOTICE([Desktop notifications not supported.])])],
+-                [AC_DEFINE([HAVE_OSXNOTIFY], [1], [terminal notifier])])])],
+-    [test "x$PLATFORM" = xnix],
+-        [AS_IF([test "x$enable_notifications" != xno],
++                [AC_DEFINE([HAVE_OSXNOTIFY], [1], [terminal notifier])])])
++
++AS_IF([test "x$enable_notifications" != xno],
+             [PKG_CHECK_MODULES([libnotify], [libnotify],
+                 [AC_DEFINE([HAVE_LIBNOTIFY], [1], [libnotify module])],
+                 [AS_IF([test "x$enable_notifications" = xyes],
+-                    [AC_MSG_ERROR([libnotify is required but does not exist])],
+-                    [AC_MSG_NOTICE([libnotify support will be disabled])])])])])
++                    [AC_MSG_WARN([libnotify is required but does not exist])],
++                    [AC_MSG_NOTICE([libnotify support will be disabled])])])])
+ 
+ # TODO: rewrite this
+ if test "x$with_xscreensaver" = xyes; then



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503091427.t29ERwTE043104>