mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
vigra: turn bep into recipe and update version
This commit is contained in:
102
media-libs/vigra/vigra-1.10.0.recipe
Normal file
102
media-libs/vigra/vigra-1.10.0.recipe
Normal file
@@ -0,0 +1,102 @@
|
||||
SUMMARY="Vision with Generic Algorithms"
|
||||
DESCRIPTION="
|
||||
C++ computer vision library with emphasize on customizable \
|
||||
algorithms and data structures.
|
||||
"
|
||||
LICENSE="MIT"
|
||||
COPYRIGHT="1998-2013 by Ullrich Koethe"
|
||||
HOMEPAGE="http://ukoethe.github.io/vigra/"
|
||||
SRC_URI="https://github.com/ukoethe/vigra/archive/Version-1-10-0.tar.gz"
|
||||
CHECKSUM_SHA256="406f6fcbcea2e92f681a7b844487c29049d338f5b2b25f8145e67bcb518c7ef8"
|
||||
REVISION="1"
|
||||
|
||||
ARCHITECTURES="x86 ?x86_gcc2 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86 ?x86_gcc2"
|
||||
|
||||
SOURCE_DIR="vigra-Version-1-10-0"
|
||||
|
||||
PROVIDES="
|
||||
vigra$secondaryArchSuffix = $portVersion
|
||||
cmd:vigra_config$secondaryArchSuffix
|
||||
lib:libvigraimpex$secondaryArchSuffix = 5.1.10.0 compat >= 5
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libpng$secondaryArchSuffix
|
||||
lib:libtiff$secondaryArchSuffix
|
||||
lib:libHalf$secondaryArchSuffix
|
||||
lib:libIex_2_1$secondaryArchSuffix
|
||||
lib:libImath_2_1$secondaryArchSuffix
|
||||
lib:libIlmImf_Imf_2_1$secondaryArchSuffix
|
||||
lib:libIlmThread_2_1$secondaryArchSuffix
|
||||
lib:libfftw$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libtiff$secondaryArchSuffix
|
||||
devel:libHalf$secondaryArchSuffix
|
||||
devel:libIex$secondaryArchSuffix
|
||||
devel:libImath$secondaryArchSuffix
|
||||
devel:libIlmImf$secondaryArchSuffix
|
||||
devel:libfftw$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
cmd:cmake
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX=$prefix -DWITH_HDF5=0 -DWITH_VIGRANUMPY=0 \
|
||||
-DWITH_OPENEXR=1 ../
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
# we did not generate documentation
|
||||
rm -rf $prefix/doc
|
||||
|
||||
# move headers
|
||||
mkdir -p $includeDir
|
||||
mv $prefix/include/* $includeDir
|
||||
|
||||
rm -rf $prefix/include
|
||||
|
||||
prepareInstalledDevelLib libvigraimpex
|
||||
|
||||
# move CMake scripts...
|
||||
# FIXME: ...which probably won't work
|
||||
mv $libDir/$portName $developLibDir
|
||||
sed -i "s#/include/#/$relativeIncludeDir/#g" \
|
||||
$developLibDir/$portName/VigraConfig.cmake
|
||||
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
# FIXME: these tests fail, probably due to wrong paths
|
||||
cd build
|
||||
make test
|
||||
}
|
||||
|
||||
PROVIDES_devel="
|
||||
vigra${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libvigraimpex$secondaryArchSuffix = 5.1.10.0 compat >= 5
|
||||
"
|
||||
REQUIRES_devel="
|
||||
vigra$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
@@ -1,23 +0,0 @@
|
||||
DESCRIPTION="C++ computer vision library with emphasize on customizable algorithms and data structures. "
|
||||
HOMEPAGE="http://hci.iwr.uni-heidelberg.de/vigra/"
|
||||
SRC_URI="http://hci.iwr.uni-heidelberg.de/vigra/vigra-1.8.0-src.tar.gz"
|
||||
CHECKSUM_MD5="15c5544448e529ee60020758ab6be264"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
MESSAGE="The port only builds with gcc4. Use 'setgcc gcc4' before building."
|
||||
DEPEND="cmake"
|
||||
BUILD()
|
||||
{
|
||||
cd vigra-1.8.0
|
||||
cmake CMakelists.txt
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd vigra-1.8.0
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="MIT"
|
||||
COPYRIGHT="1998-2010 by Ullrich Koethe"
|
||||
Reference in New Issue
Block a user