From 9bc9312cf92dd647d45c459ff09391e836b0cd12 Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Mon, 14 Oct 2024 11:53:24 -0500 Subject: [PATCH] eggdrop: fix cross --- srcpkgs/eggdrop/patches/fix-cross.patch | 59 +++++++++++++++++++++++++ srcpkgs/eggdrop/template | 6 ++- 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/eggdrop/patches/fix-cross.patch diff --git a/srcpkgs/eggdrop/patches/fix-cross.patch b/srcpkgs/eggdrop/patches/fix-cross.patch new file mode 100644 index 00000000000..07a781ab395 --- /dev/null +++ b/srcpkgs/eggdrop/patches/fix-cross.patch @@ -0,0 +1,59 @@ +--- a/aclocal.m4 ++++ b/aclocal.m4 +@@ -315,51 +315,11 @@ + [ + # https://raw.githubusercontent.com/tmux/tmux/2dd9a4fb9cd73987bdca5b8b2f85ca8b1a6e4e73/configure.ac + +- # Check for b64_ntop. If we have b64_ntop, we assume b64_pton as well. +- AC_MSG_CHECKING(for b64_ntop) +- AC_RUN_IFELSE([AC_LANG_PROGRAM([[ +- #include +- #include +- #include +- ]], [[b64_ntop(NULL, 0, NULL, 0);]])],[found_b64_ntop=yes],[found_b64_ntop=no +- ]) +- if test "x$found_b64_ntop" = xno; then +- AC_MSG_RESULT(no) +- +- AC_MSG_CHECKING(for b64_ntop with -lresolv) +- OLD_LIBS="$LIBS" +- LIBS="$LIBS -lresolv" +- AC_RUN_IFELSE([AC_LANG_PROGRAM([[ +- #include +- #include +- #include +- ]], [[b64_ntop(NULL, 0, NULL, 0);]])],[found_b64_ntop=yes],[found_b64_ntop=no +- ]) +- if test "x$found_b64_ntop" = xno; then +- LIBS="$OLD_LIBS" +- AC_MSG_RESULT(no) +- +- AC_MSG_CHECKING(for b64_ntop with -lnetwork) +- OLD_LIBS="$LIBS" +- LIBS="-lnetwork" +- AC_RUN_IFELSE([AC_LANG_PROGRAM([[ +- #include +- #include +- #include +- ]], [[b64_ntop(NULL, 0, NULL, 0);]])],[found_b64_ntop=yes],[found_b64_ntop=no +- ]) +- if test "x$found_b64_ntop" = xno; then +- LIBS="$OLD_LIBS" +- AC_MSG_RESULT(no) +- fi +- fi +- fi +- if test "x$found_b64_ntop" = xyes; then +- AC_DEFINE([HAVE_BASE64], [1], [Define if b64_ntop exists.]) +- AC_MSG_RESULT(yes) +- else +- AC_LIBOBJ(base64) +- fi ++ AC_MSG_CHECKING(for b64_ntop with -lresolv) ++ OLD_LIBS="$LIBS" ++ LIBS="$LIBS -lresolv" ++ AC_DEFINE([HAVE_BASE64], [1], [Define if b64_ntop exists.]) ++ AC_MSG_RESULT(yes) + ]) + + diff --git a/srcpkgs/eggdrop/template b/srcpkgs/eggdrop/template index 5add8d706de..f20b998c9ec 100644 --- a/srcpkgs/eggdrop/template +++ b/srcpkgs/eggdrop/template @@ -3,7 +3,7 @@ pkgname=eggdrop version=1.10.0 revision=1 build_style=gnu-configure -hostmakedepends="tcl-devel" +hostmakedepends="tcl-devel automake" makedepends="tcl-devel openssl-devel zlib-devel" short_desc="Internet relay chat (IRC) bot" maintainer="Andrew Benson " @@ -13,6 +13,10 @@ distfiles="https://ftp.eggheads.org/pub/eggdrop/source/${version%.*}/eggdrop-${v checksum=1f1707eb5023df8e0bcaa53c937e7ce5282fa1f85dc37e11d6ce4aa9d438d752 conf_files="/etc/eggdrop/text/banner /etc/eggdrop/text/motd" +pre_configure() { + autoreconf -fi +} + pre_build() { make config }