1SUMMARY="IRC to IM gateway that support multiple IM protocols" 2DESCRIPTION="BitlBee brings IM (instant messaging) to IRC clients. It's a \ 3great solution for people who have an IRC client running all the time and \ 4don't want to run an additional MSN/AIM/whatever client. 5BitlBee currently supports the following IM networks/protocols: XMPP/Jabber \ 6(including Google Talk and Hipchat), MSN/Skype, Yahoo! Messenger, AIM and \ 7ICQ, the Twitter microblogging network (plus all other Twitter API \ 8compatible services like status.net)" 9HOMEPAGE="https://www.bitlbee.org/" 10COPYRIGHT="2002-2017 Wilmer van der Gaast and others" 11LICENSE="GNU GPL v2 12 BSD (2-clause) 13 GNU LGPL v2.1 14 GNU FDL v1.1" 15REVISION="3" 16SOURCE_URI="https://github.com/bitlbee/bitlbee/archive/$portVersion.tar.gz" 17CHECKSUM_SHA256="741c139ed65c92227401bed344a03c8674536426cd4fdfc12e6406b8622a7c29" 18SOURCE_FILENAME="bitlbee-$portVersion.tar.gz" 19PATCHES="bitlbee-$portVersion.patchset" 20 21ARCHITECTURES="all !x86_gcc2" 22SECONDARY_ARCHITECTURES="x86" 23 24# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/. 25commandSuffix=$secondaryArchSuffix 26commandBinDir=$binDir 27if [ "$targetArchitecture" = x86_gcc2 ]; then 28 commandSuffix= 29 commandBinDir=$prefix/bin 30fi 31 32PROVIDES=" 33 bitlbee$secondaryArchSuffix = $portVersion 34 cmd:bitlbee$commandSuffix = $portVersion 35 " 36REQUIRES=" 37 haiku$secondaryArchSuffix 38 lib:libgcrypt$secondaryArchSuffix 39 lib:libglib_2.0$secondaryArchSuffix 40 lib:libgmodule_2.0$secondaryArchSuffix 41 lib:libgnutls$secondaryArchSuffix 42 lib:libgpg_error$secondaryArchSuffix 43 lib:libintl$secondaryArchSuffix 44 lib:libldap$secondaryArchSuffix 45 lib:libpam$secondaryArchSuffix 46 lib:libpurple$secondaryArchSuffix 47 " 48 49PROVIDES_devel=" 50 bitlbee${secondaryArchSuffix}_devel = $portVersion 51 " 52REQUIRES_devel=" 53 bitlbee$secondaryArchSuffix == $portVersion base 54 " 55 56BUILD_REQUIRES=" 57 haiku${secondaryArchSuffix}_devel 58 devel:libgcrypt$secondaryArchSuffix 59 devel:libglib_2.0$secondaryArchSuffix 60 devel:libgmodule_2.0$secondaryArchSuffix 61 devel:libgnutls$secondaryArchSuffix 62 devel:libgpg_error$secondaryArchSuffix 63 devel:libintl$secondaryArchSuffix 64 devel:libldap$secondaryArchSuffix 65 devel:libpam$secondaryArchSuffix 66 devel:libpurple$secondaryArchSuffix 67 " 68BUILD_PREREQUIRES=" 69 cmd:gcc$secondaryArchSuffix 70 cmd:make 71 cmd:pkg_config$secondaryArchSuffix 72 cmd:python3 73 " 74 75GLOBAL_WRITABLE_FILES=" 76 settings/bitlbee/bitlbee.conf keep-old 77 settings/bitlbee/motd.txt keep-old 78 " 79 80defineDebugInfoPackage bitlbee$secondaryArchSuffix \ 81 $commandBinDir/bitlbee 82 83BUILD() 84{ 85 export CFLAGS="-D_BSD_SOURCE -DB_USE_POSITIVE_POSIX_ERRORS" 86 export LDFLAGS="-lnetwork -lposix_error_mapper -lbsd" 87 export PYTHON="python3" 88 runConfigure --omit-dirs "binDir sbinDir" ./configure \ 89 --bindir=$commandBinDir \ 90 --sbindir=$commandBinDir \ 91 --etcdir=$sysconfDir/bitlbee \ 92 --config=$sharedStateDir/bitlbee \ 93 --pidfile=$localStateDir/bitlbee.pid \ 94 --pcdir=$libDir/pkgconfig \ 95 --plugindir=$addOnsDir/bitlbee \ 96 --purple=1 \ 97 --doc=1 \ 98 --debug=1 \ 99 --strip=0 \ 100 --plugins=1 \ 101 --otr=auto \ 102 --pam=1 \ 103 --ldap=1 104 105 make $jobArgs 106} 107 108INSTALL() 109{ 110 make install 111 make install-etc 112 make install-dev 113 114 # prepare develop/lib 115 fixPkgconfig 116 117 # clean empty libDir 118 rmdir $libDir 119 120 # devel package 121 packageEntries devel \ 122 $developDir 123} 124 125TEST() 126{ 127 make check 128} 129