mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
@@ -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 \
|
data. Included in this software is a library, libtiff, for reading and writing \
|
||||||
TIFF.
|
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"
|
SRC_URI="ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.2.tar.gz"
|
||||||
CHECKSUM_SHA256="aa29f1f5bfe3f443c3eb4dac472ebde15adc8ff0464b83376f35e3b2fef935da"
|
CHECKSUM_SHA256="aa29f1f5bfe3f443c3eb4dac472ebde15adc8ff0464b83376f35e3b2fef935da"
|
||||||
REVISION="1"
|
REVISION="1"
|
||||||
@@ -12,21 +12,25 @@ LICENSE="MIT"
|
|||||||
COPYRIGHT="1988-1997 Sam Leffler
|
COPYRIGHT="1988-1997 Sam Leffler
|
||||||
1991-1997 Silicon Graphics, Inc."
|
1991-1997 Silicon Graphics, Inc."
|
||||||
|
|
||||||
REVISION="1"
|
REVISION="3"
|
||||||
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
|
||||||
SECONDARY_ARCHITECTURES="!x86_gcc2 ?x86"
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||||
|
|
||||||
PROVIDES="
|
PROVIDES="
|
||||||
tiff$secondaryArchSuffix = $portVersion compat >= 4
|
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="
|
REQUIRES="
|
||||||
haiku$secondaryArchSuffix >= $haikuVersion
|
haiku$secondaryArchSuffix >= $haikuVersion
|
||||||
lib:libGL
|
lib:libGL$secondaryArchSuffix
|
||||||
lib:libjpeg
|
lib:libjpeg$secondaryArchSuffix
|
||||||
lib:libz
|
lib:libz$secondaryArchSuffix
|
||||||
"
|
"
|
||||||
BUILD_REQUIRES="
|
BUILD_REQUIRES="
|
||||||
|
devel:libGL$secondaryArchSuffix
|
||||||
|
devel:libjpeg$secondaryArchSuffix
|
||||||
|
devel:libz$secondaryArchSuffix
|
||||||
"
|
"
|
||||||
BUILD_PREREQUIRES="
|
BUILD_PREREQUIRES="
|
||||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||||
@@ -39,6 +43,14 @@ BUILD_PREREQUIRES="
|
|||||||
cmd:make
|
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()
|
BUILD()
|
||||||
{
|
{
|
||||||
aclocal
|
aclocal
|
||||||
@@ -46,7 +58,7 @@ BUILD()
|
|||||||
automake --add-missing
|
automake --add-missing
|
||||||
autoconf
|
autoconf
|
||||||
autoheader
|
autoheader
|
||||||
runConfigure ./configure
|
runConfigure ./configure --with-docdir=$documentationDir/$portName
|
||||||
# --enable-shared
|
# --enable-shared
|
||||||
make $jobArgs
|
make $jobArgs
|
||||||
}
|
}
|
||||||
@@ -55,7 +67,8 @@ INSTALL()
|
|||||||
{
|
{
|
||||||
make install
|
make install
|
||||||
|
|
||||||
prepareInstalledDevelLibs libtiff
|
prepareInstalledDevelLibs libtiff libtiffxx
|
||||||
|
fixPkgconfig
|
||||||
|
|
||||||
# devel package
|
# devel package
|
||||||
packageEntries devel \
|
packageEntries devel \
|
||||||
@@ -79,7 +92,8 @@ INSTALL()
|
|||||||
|
|
||||||
PROVIDES_devel="
|
PROVIDES_devel="
|
||||||
tiff${secondaryArchSuffix}_devel = $portVersion compat >= 4
|
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="
|
REQUIRES_devel="
|
||||||
tiff$secondaryArchSuffix == $portVersion base
|
tiff$secondaryArchSuffix == $portVersion base
|
||||||
@@ -90,33 +104,35 @@ REQUIRES_devel="
|
|||||||
if [ -z "$secondaryArchSuffix" ]; then
|
if [ -z "$secondaryArchSuffix" ]; then
|
||||||
SUMMARY_tools="The TIFF tools"
|
SUMMARY_tools="The TIFF tools"
|
||||||
PROVIDES_tools="
|
PROVIDES_tools="
|
||||||
tiff_tools = $portVersion compat >= 4
|
tiff_tools = $portVersion
|
||||||
cmd:bmp2tiff = $portVersion compat >= 4
|
cmd:bmp2tiff
|
||||||
cmd:fax2ps = $portVersion compat >= 4
|
cmd:fax2ps
|
||||||
cmd:fax2tiff = $portVersion compat >= 4
|
cmd:fax2tiff
|
||||||
cmd:gif2tiff = $portVersion compat >= 4
|
cmd:gif2tiff
|
||||||
cmd:pal2rgb = $portVersion compat >= 4
|
cmd:pal2rgb
|
||||||
cmd:ppm2tiff = $portVersion compat >= 4
|
cmd:ppm2tiff
|
||||||
cmd:ras2tiff = $portVersion compat >= 4
|
cmd:ras2tiff
|
||||||
cmd:raw2tiff = $portVersion compat >= 4
|
cmd:raw2tiff
|
||||||
cmd:rgb2ycbcr = $portVersion compat >= 4
|
cmd:rgb2ycbcr
|
||||||
cmd:thumbnail = $portVersion compat >= 4
|
cmd:thumbnail
|
||||||
cmd:tiff2bw = $portVersion compat >= 4
|
cmd:tiff2bw
|
||||||
cmd:tiff2pdf = $portVersion compat >= 4
|
cmd:tiff2pdf
|
||||||
cmd:tiff2ps = $portVersion compat >= 4
|
cmd:tiff2ps
|
||||||
cmd:tiff2rgba = $portVersion compat >= 4
|
cmd:tiff2rgba
|
||||||
cmd:tiffcmp = $portVersion compat >= 4
|
cmd:tiffcmp
|
||||||
cmd:tiffcp = $portVersion compat >= 4
|
cmd:tiffcp
|
||||||
cmd:tiffcrop = $portVersion compat >= 4
|
cmd:tiffcrop
|
||||||
cmd:tiffdither = $portVersion compat >= 4
|
cmd:tiffdither
|
||||||
cmd:tiffdump = $portVersion compat >= 4
|
cmd:tiffdump
|
||||||
cmd:tiffinfo = $portVersion compat >= 4
|
cmd:tiffinfo
|
||||||
cmd:tiffmedian = $portVersion compat >= 4
|
cmd:tiffmedian
|
||||||
cmd:tiffset = $portVersion compat >= 4
|
cmd:tiffset
|
||||||
cmd:tiffsplit = $portVersion compat >= 4
|
cmd:tiffsplit
|
||||||
"
|
"
|
||||||
REQUIRES_tools="
|
REQUIRES_tools="
|
||||||
haiku >= $haikuVersion
|
haiku >= $haikuVersion
|
||||||
tiff == $portVersion base
|
tiff == $portVersion base
|
||||||
|
lib:libjpeg
|
||||||
|
lib:libz
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
|
|||||||
104
media-libs/vigra/vigra-1.10.0.recipe
Normal file
104
media-libs/vigra/vigra-1.10.0.recipe
Normal 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
|
||||||
|
"
|
||||||
@@ -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"
|
|
||||||
@@ -21,15 +21,15 @@ COPYRIGHT="
|
|||||||
2003, 2007-2011 Matteo Frigo
|
2003, 2007-2011 Matteo Frigo
|
||||||
2003, 2007-2011 Massachusetts Institute of Technology
|
2003, 2007-2011 Massachusetts Institute of Technology
|
||||||
"
|
"
|
||||||
REVISION="1"
|
REVISION="3"
|
||||||
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
||||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||||
|
|
||||||
PROVIDES="
|
PROVIDES="
|
||||||
libfftw$secondaryArchSuffix = $portVersion compat >= 3
|
libfftw$secondaryArchSuffix = $portVersion compat >= 3
|
||||||
lib:libfftw$secondaryArchSuffix = $portVersion compat >= 3
|
lib:libfftw$secondaryArchSuffix = $portVersion compat >= 3
|
||||||
cmd:fftw_wisdom
|
cmd:fftw_wisdom$secondaryArchSuffix
|
||||||
cmd:fftw_wisdom_to_conf
|
cmd:fftw_wisdom_to_conf$secondaryArchSuffix
|
||||||
"
|
"
|
||||||
|
|
||||||
REQUIRES="
|
REQUIRES="
|
||||||
@@ -58,12 +58,14 @@ INSTALL()
|
|||||||
{
|
{
|
||||||
make install
|
make install
|
||||||
prepareInstalledDevelLib libfftw3
|
prepareInstalledDevelLib libfftw3
|
||||||
|
fixPkgconfig
|
||||||
packageEntries devel $developDir
|
packageEntries devel $developDir
|
||||||
}
|
}
|
||||||
|
|
||||||
PROVIDES_devel="
|
PROVIDES_devel="
|
||||||
libfftw${secondaryArchSuffix}_devel = $portVersion compat >= 3
|
libfftw${secondaryArchSuffix}_devel = $portVersion compat >= 3
|
||||||
devel:libfftw${secondaryArchSuffix} = $portVersion compat >= 3
|
devel:libfftw$secondaryArchSuffix = $portVersion compat >= 3
|
||||||
|
devel:libfftw3$secondaryArchSuffix = $portVersion compat >= 3
|
||||||
"
|
"
|
||||||
REQUIRES_devel="
|
REQUIRES_devel="
|
||||||
libfftw$secondaryArchSuffix == $portVersion base
|
libfftw$secondaryArchSuffix == $portVersion base
|
||||||
|
|||||||
Reference in New Issue
Block a user