summaryrefslogtreecommitdiffhomepage
path: root/patches
diff options
context:
space:
mode:
authorØrjan Malde <red@foxi.me>2022-10-14 14:43:12 +0200
committerØrjan Malde <red@foxi.me>2022-10-14 14:43:12 +0200
commit678ef0abb5348306d26c574eca61c65bb0115ff9 (patch)
tree7cad2d80e7e8affa783e8e70667e4173c3f6f6e8 /patches
parent941e53c45a1879ed3b2514ac8fb65c6db94784fe (diff)
downloadmidipix_build-678ef0abb5348306d26c574eca61c65bb0115ff9.tar.bz2
midipix_build-678ef0abb5348306d26c574eca61c65bb0115ff9.tar.xz
groups/241.native_packages_inet.group: weechat: build w/ perl
Signed-off-by: Ørjan Malde <red@foxi.me>
Diffstat (limited to 'patches')
-rw-r--r--patches/weechat-3.6_pre.local.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/patches/weechat-3.6_pre.local.patch b/patches/weechat-3.6_pre.local.patch
index 1144a869..dd37cde4 100644
--- a/patches/weechat-3.6_pre.local.patch
+++ b/patches/weechat-3.6_pre.local.patch
@@ -20,6 +20,59 @@ diff -ru weechat-2.9.orig/configure.ac weechat-2.9/configure.ac
# dynamic loader
# ------------------------------------------------------------------------------
+@@ -398,52 +398,6 @@
+
+ # ---------------------------------- perl --------------------------------------
+
+-PERL_VERSION=
+-
+-if test "x$enable_perl" = "xyes" ; then
+- AC_PATH_PROGS(PERL, perl perl5)
+- if test -z $PERL ; then
+- AC_MSG_WARN([
+-*** Perl must be installed on your system but perl interpreter couldn't be found in path.
+-*** Please check that perl is in path, or install it with your software package manager.
+-*** WeeChat will be built without Perl support.])
+- enable_perl="no"
+- not_found="$not_found perl"
+- else
+- PERL_VERSION=`perl -V:version | sed "s/version='\(.*\)';/\1/"`
+- AC_MSG_CHECKING(for Perl headers files)
+-
+- PERL_HEADER_TEST=`PT=perltest.c ; echo "#include <EXTERN.h>" > $PT; echo "#include <perl.h>" >> $PT; echo "#include <XSUB.h>" >> $PT ; echo "int main() { return 0; }" >> $PT ; $CC -Wall $PT -o $PT.out $($PERL -MExtUtils::Embed -e ccopts -e ldopts) 1>/dev/null 2>&1; echo $?; rm -f $PT $PT.out 1>/dev/null 2>&1`
+-
+- if test "x$PERL_HEADER_TEST" = "x0" ; then
+- PERL_CFLAGS=`$PERL -MExtUtils::Embed -e ccopts`
+- AC_MSG_RESULT(found)
+- AC_MSG_CHECKING(for Perl library)
+- PERL_LIB_TEST=`PT=perltest.c ; echo "int main() { return 0; }" > $PT ; $CC -Wall $PT -o $PT.out $($PERL -MExtUtils::Embed -e ldopts) 1>/dev/null 2>&1; echo $?; rm -f $PT $PT.out 1>/dev/null 2>&1`
+- if test "x$PERL_LIB_TEST" = "x0" ; then
+- PERL_LFLAGS=`$PERL -MExtUtils::Embed -e ldopts`
+- AC_MSG_RESULT(found)
+- else
+- AC_MSG_WARN([
+-*** Perl library couldn't be found on your system.
+-*** Try to install it with your software package manager.
+-*** WeeChat will be built without Perl support.])
+- enable_perl="no"
+- not_found="$not_found perl"
+- fi
+- else
+- AC_MSG_WARN([
+-*** Perl headers couldn't be found on your system.
+-*** Try to install it with your software package manager.
+-*** WeeChat will be built without Perl support.])
+- enable_perl="no"
+- not_found="$not_found perl"
+- fi
+- fi
+-else
+- not_asked="$not_asked perl"
+-fi
+-
+ if test "x$enable_perl" = "xyes" ; then
+ AC_SUBST(PERL_CFLAGS)
+ AC_SUBST(PERL_LFLAGS)
@@ -1049,8 +1037,8 @@
*** or try to install it with your software package manager.])
else