eggdrop: fix cross
This commit is contained in:
parent
cbffb7b9f7
commit
9bc9312cf9
|
@ -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 <sys/types.h>
|
||||
- #include <netinet/in.h>
|
||||
- #include <resolv.h>
|
||||
- ]], [[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 <sys/types.h>
|
||||
- #include <netinet/in.h>
|
||||
- #include <resolv.h>
|
||||
- ]], [[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 <sys/types.h>
|
||||
- #include <netinet/in.h>
|
||||
- #include <resolv.h>
|
||||
- ]], [[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)
|
||||
])
|
||||
|
||||
|
|
@ -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 <abenson+void@gmail.com>"
|
||||
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue