From f4aa1de2de9c5ff78c144d2b71b12156d4419a43 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sun, 11 Apr 2021 18:06:42 +0200 Subject: games-puzzle/enigma: Detect net-libs/enet correctly Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: David Seifert --- games-puzzle/enigma/files/enigma-1.21-build.patch | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'games-puzzle/enigma') diff --git a/games-puzzle/enigma/files/enigma-1.21-build.patch b/games-puzzle/enigma/files/enigma-1.21-build.patch index 1e9e44f9b95e..421ac8b7ae75 100644 --- a/games-puzzle/enigma/files/enigma-1.21-build.patch +++ b/games-puzzle/enigma/files/enigma-1.21-build.patch @@ -16,6 +16,31 @@ AC_MSG_RESULT(no) fi +@@ -421,14 +421,17 @@ + dnl ---------------------------------------------------------- + + AC_MSG_CHECKING(whether to use system enet) +-AC_ARG_WITH(system-enet, +- AS_HELP_STRING(--with-system-enet, Use system enet), system_enet=$withval, +- system_enet=no +-) ++AC_ARG_WITH([system-enet], [ ++ AS_HELP_STRING([--with-system-enet], [Use system enet])], [ ++ system_enet=$withval], [ ++ system_enet=no]) ++AC_MSG_RESULT([${system_enet}]) ++ + AM_CONDITIONAL([SYSTEM_ENET], [test "x$system_enet" = xyes]) +-AM_COND_IF([SYSTEM_ENET], +- PKG_CHECK_MODULES(LIBENET, [libenet], ,AC_MSG_ERROR([libenet not found!])), +- AC_CONFIG_SUBDIRS([lib-src/enet])) ++AM_COND_IF([SYSTEM_ENET], [ ++ PKG_CHECK_MODULES([LIBENET], [libenet])], [ ++ AC_CONFIG_SUBDIRS([lib-src/enet]) ++]) + + + --- a/etc/enigma.desktop +++ b/etc/enigma.desktop @@ -1,5 +1,5 @@ -- cgit v1.2.3-65-gdbad