mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
87 lines
2.0 KiB
Bash
87 lines
2.0 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="https://weechat.org/"
|
|
COPYRIGHT="2003-2019 Sébastien Helleu"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/weechat/weechat/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="869d7e8eddb01cb7f2f47ab12c7ae708fe31192b23cee5b25de6754cf1d54eeb"
|
|
PATCHES="weechat-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
fi
|
|
|
|
PROVIDES="
|
|
weechat$secondaryArchSuffix = $portVersion
|
|
cmd:weechat
|
|
cmd:weechat_curses
|
|
cmd:weechat_headless
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libgcrypt$secondaryArchSuffix
|
|
lib:libgnutls$secondaryArchSuffix
|
|
lib:libgpg_error$secondaryArchSuffix # for libgcrypt
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:liblua$secondaryArchSuffix >= 5.3
|
|
lib:libncurses$secondaryArchSuffix
|
|
lib:libz$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:libintl$secondaryArchSuffix
|
|
devel:liblua$secondaryArchSuffix >= 5.3
|
|
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 \
|
|
-DLIBDIR=$libDir \
|
|
-DINCLUDEDIR=$includeDir \
|
|
-DWEECHAT_HOME=~/config/settings/weechat \
|
|
-DSHAREDIR=$dataDir \
|
|
..
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
|
|
make install
|
|
|
|
rm -rf "$dataDir"/icons
|
|
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|