mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
committed by
Augustin Cavalier
parent
ebab482438
commit
017e92fbc3
66
net-irc/irssi/irssi-0.8.19_git.recipe
Normal file
66
net-irc/irssi/irssi-0.8.19_git.recipe
Normal file
@@ -0,0 +1,66 @@
|
||||
SUMMARY="A text-based IRC client"
|
||||
DESCRIPTION="Irssi is an IRC client written in the C programming language.\
|
||||
It uses a text-mode user interface. Numerous Perl scripts have been \
|
||||
made available for Irssi to customise how it looks and operates. Plugins \
|
||||
are available which add encryption and protocols such as ICQ and XMPP."
|
||||
HOMEPAGE="https://irssi.org/"
|
||||
COPYRIGHT="1999-2016 Timo Sirainen"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
srcGitRev="1cfec5f63d4adf32117f68638fb35802146e2784"
|
||||
SOURCE_URI="https://github.com/irssi/irssi/archive/$srcGitRev.tar.gz"
|
||||
CHECKSUM_SHA256="e4118fedeee70133b4aab70406c30be107cc0078c4d5c509e2b068277284d88a"
|
||||
SOURCE_DIR="irssi-$srcGitRev"
|
||||
PATCHES="irssi-ncurses.patch"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
irssi$secondaryArchSuffix = $portVersion
|
||||
cmd:irssi$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libncurses$secondaryArchSuffix
|
||||
lib:libperl$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libncurses$secondaryArchSuffix
|
||||
devel:libssl$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
cmd:aclocal
|
||||
cmd:autoreconf
|
||||
cmd:chmod
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:git
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:links
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
settings/irssi.conf keep-old
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
chmod +x autogen.sh irssi-version.sh file2header.sh
|
||||
./autogen.sh $configureDirArgs --with-perl --with-socks --with-proxy \
|
||||
--enable-true-color
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install-strip
|
||||
}
|
||||
49
net-irc/irssi/patches/irssi-ncurses.patch
Normal file
49
net-irc/irssi/patches/irssi-ncurses.patch
Normal file
@@ -0,0 +1,49 @@
|
||||
From dadf80f3802ad275f3efa30418490efcac63148e Mon Sep 17 00:00:00 2001
|
||||
From: pisculichi <pisculichi@openmailbox.com>
|
||||
Date: Fri, 8 Apr 2016 16:13:24 +0000
|
||||
Subject: [PATCH] Fix search ncurses in haiku
|
||||
|
||||
---
|
||||
m4/curses.m4 | 20 +++++++++++++++++++-
|
||||
1 file changed, 19 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/m4/curses.m4 b/m4/curses.m4
|
||||
index 41c0e6c..00039d0 100644
|
||||
--- a/m4/curses.m4
|
||||
+++ b/m4/curses.m4
|
||||
@@ -57,7 +57,7 @@ dnl
|
||||
dnl /*=== Curses version detection defines ===*/
|
||||
dnl /* Found some version of curses that we're going to use */
|
||||
dnl #undef HAS_CURSES
|
||||
-dnl
|
||||
+dnl
|
||||
dnl /* Use SunOS SysV curses? */
|
||||
dnl #undef USE_SUNOS_CURSES
|
||||
dnl
|
||||
@@ -246,6 +246,24 @@ AC_DEFUN([AC_SEARCH_NCURSES], [
|
||||
[renamed ncurses in /usr/include/ncurses])
|
||||
|
||||
dnl
|
||||
+ dnl Try Haiku ncurses
|
||||
+ dnl Depending if we are building for the primary or secondary arch
|
||||
+ dnl it can be installed at different locations
|
||||
+ dnl
|
||||
+ if $search_ncurses
|
||||
+ then
|
||||
+ if test -d /system/develop/headers
|
||||
+ then
|
||||
+ haiku_arch=`getarch`
|
||||
+ for haiku_h in `findpaths -a $haiku_arch B_FIND_PATH_HEADERS_DIRECTORY`
|
||||
+ do
|
||||
+ AC_NCURSES($haiku_h, ncurses.h, -lncurses,,
|
||||
+ [ncurses in $haiku_h])
|
||||
+ done
|
||||
+ fi
|
||||
+ fi
|
||||
+
|
||||
+ dnl
|
||||
dnl We couldn't find ncurses, try SysV curses
|
||||
dnl
|
||||
if $search_ncurses
|
||||
--
|
||||
2.2.2
|
||||
Reference in New Issue
Block a user