mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
80 lines
1.8 KiB
Bash
80 lines
1.8 KiB
Bash
SUMMARY="Portable and multi-interface IRC client"
|
|
DESCRIPTION="WeeChat (Wee Enhanced Environment for Chat) is a free chat \
|
|
client, fast and light, designed for many operating systems. \
|
|
It is highly customizable and extensible with scripts."
|
|
HOMEPAGE="http://weechat.org"
|
|
COPYRIGHT="2003-2016 Sébastien Helleu"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="https://weechat.org/files/src/weechat-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="326e27c4f0548a7c6f21302516356f1e9e3541262b31058e37181f95205c8c58"
|
|
PATCHES="weechat-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
weechat${secondaryArchSuffix} = $portVersion
|
|
cmd:weechat
|
|
cmd:weechat_curses
|
|
"
|
|
REQUIRES="
|
|
haiku${secondaryArchSuffix}
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libgcrypt$secondaryArchSuffix
|
|
lib:libgnutls$secondaryArchSuffix
|
|
lib:libncurses$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
# for libgcrypt
|
|
lib:libgpg_error$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
weechat${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
weechat$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libgcrypt$secondaryArchSuffix
|
|
devel:libgnutls$secondaryArchSuffix
|
|
devel:libncurses$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++${secondaryArchSuffix}
|
|
cmd:make
|
|
cmd:pkg_config${secondaryArchSuffix}
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build
|
|
cd build
|
|
cmake -DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DWEECHAT_HOME=~/config/settings/weechat \
|
|
-DSHAREDIR=$dataDir \
|
|
..
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
|
|
make install
|
|
|
|
mkdir -p $(dirname $includeDir)
|
|
mv $prefix/include $includeDir
|
|
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|