mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-19 10:10:06 +02:00
115 lines
2.8 KiB
Bash
115 lines
2.8 KiB
Bash
SUMMARY="Library for reading and processing of RAW digicam images"
|
|
DESCRIPTION="
|
|
LibRaw is a library for reading RAW files from digital photo cameras \
|
|
(CRW/CR2, NEF, RAF, DNG, MOS, KDC, DCR, etc, virtually all RAW formats are \
|
|
supported).
|
|
It pays special attention to correct retrieval of data required for subsequent \
|
|
RAW conversion.
|
|
The library is intended for embedding in RAW converters, data analyzers, and \
|
|
other programs using RAW files as the initial data.
|
|
"
|
|
HOMEPAGE="http://www.libraw.org"
|
|
COPYRIGHT="
|
|
2008-2013 LibRaw LLC
|
|
"
|
|
LICENSE="
|
|
GNU LGPL v2.1
|
|
CDDL v1"
|
|
REVISION="1"
|
|
SOURCE_URI="http://www.libraw.org/data/LibRaw-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="fa2a7d14d9dfaf6b368f958a76d79266b3f58c2bc367bebab56e11baa94da178"
|
|
SOURCE_DIR="LibRaw-$portVersion"
|
|
PATCHES="libraw-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libraw$secondaryArchSuffix = $portVersion compat >= 0
|
|
lib:libraw$secondaryArchSuffix = 16.0.0 compat >= 16
|
|
lib:libraw_r$secondaryArchSuffix = 16.0.0 compat >= 16
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgomp$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:liblcms2$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libraw${secondaryArchSuffix}_devel = $portVersion compat >= 0
|
|
devel:libraw$secondaryArchSuffix = 16.0.0 compat >= 16
|
|
devel:libraw_r$secondaryArchSuffix = 16.0.0 compat >= 16
|
|
"
|
|
REQUIRES_devel="
|
|
libraw$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
SUMMARY_tools="The libraw tools"
|
|
PROVIDES_tools="
|
|
libraw_tools$secondaryArchSuffix = $portVersion
|
|
cmd:4channels$secondaryArchSuffix
|
|
cmd:dcraw_emu$secondaryArchSuffix
|
|
cmd:dcraw_half$secondaryArchSuffix
|
|
cmd:half_mt$secondaryArchSuffix
|
|
cmd:mem_image$secondaryArchSuffix
|
|
cmd:multirender_test$secondaryArchSuffix
|
|
cmd:postprocessing_benchmark$secondaryArchSuffix
|
|
cmd:raw_identify$secondaryArchSuffix
|
|
cmd:simple_dcraw$secondaryArchSuffix
|
|
cmd:unprocessed_raw$secondaryArchSuffix
|
|
"
|
|
REQUIRES_tools="
|
|
libraw$secondaryArchSuffix == $portVersion base
|
|
haiku$secondaryArchSuffix
|
|
lib:libgomp$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:liblcms2$secondaryArchSuffix
|
|
"
|
|
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
|
REQUIRES_tools+="
|
|
"
|
|
fi
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:liblcms2$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:find
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/lib*.la
|
|
|
|
prepareInstalledDevelLibs libraw libraw_r
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
|
|
# tools package
|
|
packageEntries tools \
|
|
$binDir
|
|
|
|
}
|