mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
lensfun: add recipe for version 0.2.8
This commit is contained in:
90
media-libs/lensfun/lensfun-0.2.8.recipe
Normal file
90
media-libs/lensfun/lensfun-0.2.8.recipe
Normal file
@@ -0,0 +1,90 @@
|
||||
SUMMARY="Library to access a database of photographic lenses"
|
||||
DESCRIPTION="
|
||||
The lensfun library not only provides a way to read the database \
|
||||
and search for specific things in it, but also provides a set of \
|
||||
algorithms for correcting images based on detailed knowledge of \
|
||||
lens properties. Right now lensfun is designed to correct \
|
||||
distortion, transversal (also known as lateral) chromatic aberrations, \
|
||||
vignetting and colour contribution of the lens (e.g. when sometimes \
|
||||
people says one lens gives "yellowish" images and another, say, "bluish").
|
||||
"
|
||||
HOMEPAGE="http://lensfun.sourceforge.net"
|
||||
COPYRIGHT="
|
||||
2007-2008 Andrew Zabolotny
|
||||
"
|
||||
LICENSE="GNU LGPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://sourceforge.net/projects/lensfun/files/$portVersion/lensfun-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="fc02350ea8572ec3a7e9a94c6c1fce7598dbfed22573a5b01f7abe2c9e5232a4"
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PATCHES="lensfun-$portVersion.patchset"
|
||||
|
||||
PROVIDES="
|
||||
lensfun$secondaryArchSuffix = $portVersion compat >= 0.2
|
||||
lib:liblensfun$secondaryArchSuffix = $portVersion compat >= 0
|
||||
lib:libauxfun$secondaryArchSuffix = $portVersion compat >= 0
|
||||
"
|
||||
PROVIDES_devel="
|
||||
lensfun${secondaryArchSuffix}_devel = $portVersion compat >= 0.2
|
||||
cmd:tfun$secondaryArchSuffix
|
||||
cmd:tmod$secondaryArchSuffix
|
||||
cmd:trwxml$secondaryArchSuffix
|
||||
devel:liblensfun$secondaryArchSuffix = $portVersion compat >= 0
|
||||
devel:libauxfun$secondaryArchSuffix = $portVersion compat >= 0
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
lib:libglib_2.0${secondaryArchSuffix}
|
||||
"
|
||||
REQUIRES_devel="
|
||||
lensfun$secondaryArchSuffix == $portVersion base
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libglib_2.0${secondaryArchSuffix}
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
devel:libglib_2.0${secondaryArchSuffix}
|
||||
devel:libintl$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:cmake
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p cmake_build
|
||||
cd cmake_build
|
||||
cmake -DCMAKE_INSTALL_PREFIX=$prefix -DDOCDIR=$docDir \
|
||||
-DBUILD_AUXFUN=ON -DINCLUDEDIR=$includeDir -DDATADIR=$dataDir/lensfun ..
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd cmake_build
|
||||
make install
|
||||
|
||||
rm -f $binDir/example
|
||||
|
||||
prepareInstalledDevelLibs liblensfun libauxfun
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$binDir \
|
||||
$developDir
|
||||
}
|
||||
24
media-libs/lensfun/patches/lensfun-0.2.8.patchset
Normal file
24
media-libs/lensfun/patches/lensfun-0.2.8.patchset
Normal file
@@ -0,0 +1,24 @@
|
||||
From 557f20507a99d69dda73ea72ae15e04590b73265 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Tue, 10 Nov 2015 15:18:26 +0000
|
||||
Subject: we set these variables ourselves
|
||||
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index eddb819..4a26c08 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -75,8 +75,8 @@ ENDIF()
|
||||
# define destination dirs (relative to prefix)
|
||||
SET(BINDIR bin CACHE PATH "Directory for library example programs")
|
||||
SET(LIBDIR lib${LIB_SUFFIX} CACHE PATH "Directory for library itself")
|
||||
-SET(INCLUDEDIR include CACHE PATH "Directory for library header files")
|
||||
-SET(DATADIR share/lensfun CACHE PATH "Directory for library data files")
|
||||
+#SET(INCLUDEDIR include CACHE PATH "Directory for library header files")
|
||||
+#SET(DATADIR share/lensfun CACHE PATH "Directory for library data files")
|
||||
|
||||
IF(BUILD_DOC)
|
||||
SET(DOCDIR share/doc/lensfun-${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_MICRO}.${VERSION_BUGFIX} CACHE PATH "Directory to put library documentation in")
|
||||
--
|
||||
2.2.2
|
||||
|
||||
Reference in New Issue
Block a user