Index: Makefile =================================================================== --- Makefile (revision 380441) +++ Makefile (working copy) @@ -16,9 +16,18 @@ libcurl.so:${PORTSDIR}/ftp/curl \ libotr.so:${PORTSDIR}/security/libotr3 -USES= ncurses pkgconfig +OPTIONS_DEFINE=NOTIFY +OPTIONS_DEFAULT=NOTIFY +USES= ncurses pkgconfig autoreconf GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-otr CONFIGURE_ENV= LIBS="${CFLAGS} -lcrypto" +.include + +.if ${PORT_OPTIONS:MNOTIFY} +LIB_DEPENDS+= libnotify.so:${PORTSDIR}/devel/libnotify +CONFIGURE_ARGS+= --enable-notifications +.endif + .include Index: files/patch-configure.ac =================================================================== --- files/patch-configure.ac (revision 0) +++ files/patch-configure.ac (working copy) @@ -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 Property changes on: files/patch-configure.ac ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property