2d33704f82
Patch provided by snow flurry in PR pkg/55673
61 lines
3 KiB
Text
61 lines
3 KiB
Text
$NetBSD: patch-configure.ac,v 1.3 2021/01/14 12:50:25 nia Exp $
|
|
|
|
- Add NetBSD as a non-libdl platform.
|
|
- Fix == usage.
|
|
- Remove hardcoded homebrew path on macOS.
|
|
- Add NetBSD as a libnotify platform.
|
|
|
|
--- configure.ac.orig 2020-09-19 01:06:20.595094431 +0000
|
|
+++ configure.ac
|
|
@@ -22,6 +22,7 @@ AC_CANONICAL_HOST
|
|
PLATFORM="unknown"
|
|
AS_CASE([$host_os],
|
|
[freebsd*], [PLATFORM="freebsd"],
|
|
+ [netbsd*], [PLATFORM="netbsd"],
|
|
[openbsd*], [PLATFORM="openbsd"],
|
|
[darwin*], [PLATFORM="osx"],
|
|
[cygwin], [PLATFORM="cygwin"],
|
|
@@ -81,7 +82,7 @@ elif test "x$enable_python_plugins" != x
|
|
rm -f Python.framework
|
|
ln -s $PYTHON_FRAMEWORK Python.framework ])
|
|
AC_CHECK_PROG(PYTHON_CONFIG_EXISTS, python-config, yes, no)
|
|
- if test "$PYTHON_CONFIG_EXISTS" == "yes"; then
|
|
+ if test "$PYTHON_CONFIG_EXISTS" = "yes"; then
|
|
AX_PYTHON_DEVEL
|
|
AM_CONDITIONAL([BUILD_PYTHON_API], [true])
|
|
AC_DEFINE([HAVE_PYTHON], [1], [Python support])
|
|
@@ -108,7 +109,7 @@ else
|
|
elif test "x$enable_c_plugins" != xno; then
|
|
# libdl doesn't exist as a separate library in OpenBSD/FreeBSD and is
|
|
# provided in the standard libraries.
|
|
- AS_IF([test "x$PLATFORM" = xopenbsd -o "x$PLATFORM" = xfreebsd],
|
|
+ AS_IF([test "x$PLATFORM" = xopenbsd -o "x$PLATFORM" = xfreebsd -o "x$PLATFORM" = xnetbsd],
|
|
[AM_CONDITIONAL([BUILD_C_API], [true]) AC_DEFINE([HAVE_C], [1], [C support])],
|
|
[AC_CHECK_LIB([dl], [main],
|
|
[AM_CONDITIONAL([BUILD_C_API], [true]) LIBS="$LIBS -ldl" AC_DEFINE([HAVE_C], [1], [C support])],
|
|
@@ -214,15 +215,7 @@ AS_IF([test "x$enable_icons_and_clipboar
|
|
[AC_MSG_ERROR([gtk+-2.0 or higher is required for icons])],
|
|
[AC_MSG_NOTICE([gtk+-2.0 not found, icons and clipboard not enabled])])])])
|
|
|
|
-AS_IF([test "x$PLATFORM" = xosx],
|
|
- [AC_CHECK_FILE([/usr/local/opt/readline/lib],
|
|
- [LIBS="-lreadline $LIBS"
|
|
- AM_CPPFLAGS="-I/usr/local/opt/readline/include $AM_CPPFLAGS"
|
|
- AM_LDFLAGS="-L/usr/local/opt/readline/lib $AM_LDFLAGS"
|
|
- AC_SUBST(AM_LDFLAGS)],
|
|
- [AC_MSG_ERROR([libreadline is required for profanity])])],
|
|
-
|
|
- [test "x$PLATFORM" = xopenbsd],
|
|
+AS_IF([test "x$PLATFORM" = xopenbsd],
|
|
[AC_CHECK_FILE([/usr/local/include/ereadline],
|
|
[LIBS="-lereadline $LIBS"
|
|
AM_CPPFLAGS="-I/usr/local/include/ereadline $AM_CPPFLAGS"
|
|
@@ -246,7 +239,7 @@ AS_IF([test "x$PLATFORM" = xosx],
|
|
[AC_MSG_ERROR([terminal-notifier not found, required for desktop notifications.])],
|
|
[AC_MSG_NOTICE([Desktop notifications not supported.])])],
|
|
[AC_DEFINE([HAVE_OSXNOTIFY], [1], [terminal notifier])])])],
|
|
- [test "x$PLATFORM" = xnix -o "x$PLATFORM" = xfreebsd],
|
|
+ [test "x$PLATFORM" = xnix -o "x$PLATFORM" = xfreebsd -o "x$PLATFORM" = xnetbsd],
|
|
[AS_IF([test "x$enable_notifications" != xno],
|
|
[PKG_CHECK_MODULES([libnotify], [libnotify],
|
|
[AC_DEFINE([HAVE_LIBNOTIFY], [1], [libnotify module])],
|