Merged in KapiX/haikuports/vigra (pull request #169)

vigra 1.10.0
This commit is contained in:
Jerome Duval
2014-04-30 09:13:18 +02:00
4 changed files with 161 additions and 62 deletions

View File

@@ -4,7 +4,7 @@ TIFF the Tag Image File Format, is a widely used format for storing image \
data. Included in this software is a library, libtiff, for reading and writing \
TIFF.
"
HOMEPAGE="http://www.libtiff.org"
HOMEPAGE="http://www.libtiff.org"
SRC_URI="ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.2.tar.gz"
CHECKSUM_SHA256="aa29f1f5bfe3f443c3eb4dac472ebde15adc8ff0464b83376f35e3b2fef935da"
REVISION="1"
@@ -12,21 +12,25 @@ LICENSE="MIT"
COPYRIGHT="1988-1997 Sam Leffler
1991-1997 Silicon Graphics, Inc."
REVISION="1"
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 ?x86"
REVISION="3"
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
tiff$secondaryArchSuffix = $portVersion compat >= 4
lib:libtiff$secondaryArchSuffix = $portVersion compat >= 4
lib:libtiff$secondaryArchSuffix = 5.1.0 compat >= 5
lib:libtiffxx$secondaryArchSuffix = 5.1.0 compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libGL
lib:libjpeg
lib:libz
lib:libGL$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libGL$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
@@ -39,6 +43,14 @@ BUILD_PREREQUIRES="
cmd:make
"
PATCH()
{
if [ $effectiveTargetArchitecture == x86_gcc2 ]; then
sed -i 's/ios::pos_type/streampos/g' libtiff/tif_stream.cxx
sed -i 's/ios::off_type/streamoff/g' libtiff/tif_stream.cxx
fi
}
BUILD()
{
aclocal
@@ -46,7 +58,7 @@ BUILD()
automake --add-missing
autoconf
autoheader
runConfigure ./configure
runConfigure ./configure --with-docdir=$documentationDir/$portName
# --enable-shared
make $jobArgs
}
@@ -55,7 +67,8 @@ INSTALL()
{
make install
prepareInstalledDevelLibs libtiff
prepareInstalledDevelLibs libtiff libtiffxx
fixPkgconfig
# devel package
packageEntries devel \
@@ -79,7 +92,8 @@ INSTALL()
PROVIDES_devel="
tiff${secondaryArchSuffix}_devel = $portVersion compat >= 4
devel:libtiff$secondaryArchSuffix = $portVersion compat >= 4
devel:libtiff$secondaryArchSuffix = 5.1.0 compat >= 5
devel:libtiffxx$secondaryArchSuffix = 5.1.0 compat >= 5
"
REQUIRES_devel="
tiff$secondaryArchSuffix == $portVersion base
@@ -90,33 +104,35 @@ REQUIRES_devel="
if [ -z "$secondaryArchSuffix" ]; then
SUMMARY_tools="The TIFF tools"
PROVIDES_tools="
tiff_tools = $portVersion compat >= 4
cmd:bmp2tiff = $portVersion compat >= 4
cmd:fax2ps = $portVersion compat >= 4
cmd:fax2tiff = $portVersion compat >= 4
cmd:gif2tiff = $portVersion compat >= 4
cmd:pal2rgb = $portVersion compat >= 4
cmd:ppm2tiff = $portVersion compat >= 4
cmd:ras2tiff = $portVersion compat >= 4
cmd:raw2tiff = $portVersion compat >= 4
cmd:rgb2ycbcr = $portVersion compat >= 4
cmd:thumbnail = $portVersion compat >= 4
cmd:tiff2bw = $portVersion compat >= 4
cmd:tiff2pdf = $portVersion compat >= 4
cmd:tiff2ps = $portVersion compat >= 4
cmd:tiff2rgba = $portVersion compat >= 4
cmd:tiffcmp = $portVersion compat >= 4
cmd:tiffcp = $portVersion compat >= 4
cmd:tiffcrop = $portVersion compat >= 4
cmd:tiffdither = $portVersion compat >= 4
cmd:tiffdump = $portVersion compat >= 4
cmd:tiffinfo = $portVersion compat >= 4
cmd:tiffmedian = $portVersion compat >= 4
cmd:tiffset = $portVersion compat >= 4
cmd:tiffsplit = $portVersion compat >= 4
tiff_tools = $portVersion
cmd:bmp2tiff
cmd:fax2ps
cmd:fax2tiff
cmd:gif2tiff
cmd:pal2rgb
cmd:ppm2tiff
cmd:ras2tiff
cmd:raw2tiff
cmd:rgb2ycbcr
cmd:thumbnail
cmd:tiff2bw
cmd:tiff2pdf
cmd:tiff2ps
cmd:tiff2rgba
cmd:tiffcmp
cmd:tiffcp
cmd:tiffcrop
cmd:tiffdither
cmd:tiffdump
cmd:tiffinfo
cmd:tiffmedian
cmd:tiffset
cmd:tiffsplit
"
REQUIRES_tools="
haiku >= $haikuVersion
tiff == $portVersion base
lib:libjpeg
lib:libz
"
fi

View File

@@ -0,0 +1,104 @@
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"
SRC_FILENAME="$portVersionedName.tar.gz"
CHECKSUM_SHA256="406f6fcbcea2e92f681a7b844487c29049d338f5b2b25f8145e67bcb518c7ef8"
REVISION="2"
ARCHITECTURES="x86 ?x86_gcc2 ?x86_64"
SECONDARY_ARCHITECTURES="x86 ?x86_gcc2"
SOURCE_DIR="vigra-Version-1-10-0"
PROVIDES="
vigra$secondaryArchSuffix = $portVersion
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 bin/vigra-config
}
TEST()
{
# FIXME: these tests fail, probably due to wrong paths
cd build
make test
}
PROVIDES_devel="
vigra${secondaryArchSuffix}_devel = $portVersion
cmd:vigra_config$secondaryArchSuffix
cmd:python # vigra-config is python script
devel:libvigraimpex$secondaryArchSuffix = 5.1.10.0 compat >= 5
"
REQUIRES_devel="
vigra$secondaryArchSuffix == $portVersion base
"

View File

@@ -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"