mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
EiskaltDC: correct version, fix REQUIRES
This commit is contained in:
96
net-p2p/eiskaltdcpp/eiskaltdcpp-2.3.0~git.recipe
Normal file
96
net-p2p/eiskaltdcpp/eiskaltdcpp-2.3.0~git.recipe
Normal file
@@ -0,0 +1,96 @@
|
||||
SUMMARY="A cross-platform program that uses the Direct Connect and ADC \
|
||||
protocols"
|
||||
DESCRIPTION="EiskaltDC++ is a cross-platform program that uses the Direct \
|
||||
Connect and ADC protocols. It is compatible with DC++, FlylinkDC++, LinuxDC++ \
|
||||
and other DC clients. EiskaltDC++ also interoperates with all common DC hub \
|
||||
software."
|
||||
HOMEPAGE="https://sourceforge.net/projects/eiskaltdcpp/"
|
||||
COPYRIGHT="EiskaltDC++ team"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
COMMIT="ab7838fe3636ff54d59e2968150fda18e00f9728"
|
||||
SOURCE_URI="https://github.com/eiskaltdcpp/eiskaltdcpp/archive/$COMMIT.tar.gz"
|
||||
CHECKSUM_SHA256="6ede2c0a5474a908e670738448c5ad0b539760f2150a128fe980e59b461b0b6d"
|
||||
SOURCE_DIR="eiskaltdcpp-$COMMIT"
|
||||
PATCHES="eiskaltdcpp-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="eiskaltdcpp.rdef.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="!x86_gcc2 ?x86"
|
||||
|
||||
PROVIDES="
|
||||
eiskaltdcpp$secondaryArchSuffix = $portVersion
|
||||
app:EiskaltDC++ = $portVersion
|
||||
lib:libeiskaltdcpp$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libboost_system$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Concurrent$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Multimedia$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
lib:libQt5Xml$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libboost_system$secondaryArchSuffix
|
||||
devel:libbz2$secondaryArchSuffix
|
||||
devel:libgl$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libidn$secondaryArchSuffix
|
||||
devel:libintl$secondaryArchSuffix
|
||||
devel:libQt5Concurrent$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Network$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
devel:libQt5Xml$secondaryArchSuffix
|
||||
devel:libssl$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release $cmakeDirArgs
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir/Eiskaltdcpp/{translations,lib}
|
||||
cp build/eiskaltdcpp-qt/eiskaltdcpp-qt $appsDir/Eiskaltdcpp/EiskaltDC++
|
||||
cp build/dcpp/libeiskaltdcpp.so* $appsDir/Eiskaltdcpp/lib
|
||||
cp build/eiskaltdcpp-qt/translations/*.qm $appsDir/Eiskaltdcpp/translations
|
||||
|
||||
cp -r eiskaltdcpp-qt/icons/* $appsDir/Eiskaltdcpp
|
||||
cp -r data/emoticons $appsDir/Eiskaltdcpp
|
||||
cp -r data/sounds $appsDir/Eiskaltdcpp
|
||||
|
||||
MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
# MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
MINOR="10"
|
||||
sed \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
$portDir/additional-files/eiskaltdcpp.rdef.in > eiskaltdcpp.rdef
|
||||
|
||||
addResourcesToBinaries eiskaltdcpp.rdef $appsDir/Eiskaltdcpp/EiskaltDC++
|
||||
|
||||
addAppDeskbarSymlink $appsDir/Eiskaltdcpp/EiskaltDC++
|
||||
}
|
||||
Reference in New Issue
Block a user