Skip to content

Commit

Permalink
games-puzzle/enigma: Detect net-libs/enet correctly
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: David Seifert <[email protected]>
  • Loading branch information
SoapGentoo committed Apr 11, 2021
1 parent a76ae28 commit f4aa1de
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions games-puzzle/enigma/files/enigma-1.21-build.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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 @@
Expand Down

0 comments on commit f4aa1de

Please sign in to comment.