mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 20:20:06 +02:00
Vacuum-im: add recipe for version 1.2.5
This commit is contained in:
33
net-im/vacuum/additional-files/vacuum.rdef
Normal file
33
net-im/vacuum/additional-files/vacuum.rdef
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
resource app_signature "application/x-vnd.vacuum";
|
||||
|
||||
|
||||
resource app_version {
|
||||
major = 1,
|
||||
middle = 2,
|
||||
minor = 5,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
|
||||
short_info = "XMPP client",
|
||||
long_info = "Vacuum is a free instant messaging application designed for the XMPP network."
|
||||
};
|
||||
|
||||
resource app_flags B_SINGLE_LAUNCH | B_ARGV_ONLY;
|
||||
|
||||
resource vector_icon {
|
||||
$"6E63696602050005FF030A0820BFBF201F401F601F60BFBF606040602060020E"
|
||||
$"C343C1FDC086C6E9C6D8BB8FC71FB9C4C71F34C71FB84BC4A8B869C5B1B782C4"
|
||||
$"0BB8F0C43ABBC3C401B945C45ABD24C40CBE41C451BD9BC393BF65424CC0B64C"
|
||||
$"C0794CBE8FBFB3BF94C25BBCCEBB1EBB2EB7FCBB6DB7F9BB1EB7FCB92DB88ABA"
|
||||
$"37B83CB7E2B8EBB739B96BB743B932B72DB9A7B78EB9A3B744B9B6B843B974B9"
|
||||
$"D7BB8EB921BA2EBA36BC46BCC7C27DBB88BF64BEB4C748BF7255BF1A55BFC655"
|
||||
$"020EC343C1FDC086C6E9C6D8BB8FC71FB9C4C71F34C71FB84BC4A8B869C5B1B7"
|
||||
$"82C40BB8F0C43ABBC3C401B945C45ABD24C40CBE41C451BD9BC393BF65424CC0"
|
||||
$"B64CC0794CBE8FBFB3BF94C25BBCCEBB1EBB2EB7FCBB6DB7F9BB1EB7FCB92DB8"
|
||||
$"8ABA37B83CB7E2B8EBB739B96BB743B932B72DB9A7B78EB9A3B744B9B6B843B9"
|
||||
$"74B9D7BB8EB921BA2EBA36BC46BCC7C27DBB88BF64BEB4C748BF7255BF1A55BF"
|
||||
$"C655030A000100000A010101000A01010200"
|
||||
};
|
||||
|
||||
72
net-im/vacuum/vacuum-1.2.5.recipe
Normal file
72
net-im/vacuum/vacuum-1.2.5.recipe
Normal file
@@ -0,0 +1,72 @@
|
||||
SUMMARY="Crossplatform Jabber/XMPP client"
|
||||
DESCRIPTION="Vacuum IM is a free/libre cross-platform Qt4-based Jabber client."
|
||||
HOMEPAGE="http://www.vacuum-im.org"
|
||||
SOURCE_URI="https://github.com/Vacuum-IM/vacuum-im/archive/$portVersion.tar.gz"
|
||||
SOURCE_FILENAME="vacuum-im-$portVersion.tar.gz"
|
||||
SOURCE_DIR="vacuum-im-$portVersion"
|
||||
CHECKSUM_SHA256="3237933f68884fb5b3422ad0fc97083b40a7aae9d8c105a23720c09599ffe5da"
|
||||
REVISION="1"
|
||||
LICENSE="GNU GPL v3"
|
||||
COPYRIGHT="2008-2015 Vacuum Team"
|
||||
|
||||
ARCHITECTURES="x86"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||
# for a different secondary architecture.
|
||||
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||||
fi
|
||||
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
vacuum$secondaryArchSuffix = $portVersion
|
||||
app:Vacuum$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku${secondaryArchSuffix}
|
||||
libqt4${secondaryArchSuffix} >= 4.8
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:g++${secondaryArchSuffix}
|
||||
cmd:cmake
|
||||
cmd:make
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
libqt4${secondaryArchSuffix}_devel >= 4.8
|
||||
devel:libz${secondaryArchSuffix}
|
||||
"
|
||||
PATCH()
|
||||
{
|
||||
sed -i 's/#ifdef __FreeBSD__/#if defined(__FreeBSD__) || defined(__HAIKU__)/g' \
|
||||
src/thirdparty/minizip/ioapi.h
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
# TODO: Force usage of external libraries
|
||||
#rm -rf src/thirdparty/{idn,minizip,zlib}
|
||||
cmake -DINSTALL_APP_DIR=$appsDir/Vacuum-IM -DINSTALL_LIB_DIR=$appsDir/Vacuum-IM/lib \
|
||||
-DINSTALL_SDK=ON -DLANGS="de pl ru uk" \
|
||||
-DINSTALL_DOCS=OFF #-DFORCE_BUNDLED_MINIZIP=OFF
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
# TODO: fix make install
|
||||
mkdir -p $appsDir/Vacuum-IM/lib
|
||||
|
||||
cp vacuum $appsDir/Vacuum-IM/Vacuum
|
||||
cp -r resources plugins $appsDir/Vacuum-IM
|
||||
cp -r src/libs/*.so* $appsDir/Vacuum-IM/lib
|
||||
cp -r src/translations $appsDir/Vacuum-IM
|
||||
rm -rf $appsDir/Vacuum-IM/translations/{ts*,.tx}
|
||||
|
||||
addResourcesToBinaries $portDir/additional-files/vacuum.rdef $appsDir/Vacuum-IM/Vacuum
|
||||
# For some reason attributes are missing without mimeset
|
||||
mimeset -f $appsDir/Vacuum-IM/Vacuum
|
||||
addAppDeskbarSymlink $appsDir/Vacuum-IM/Vacuum
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user