mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
libgphoto2: bump to 2.5.19, add TEST.
This commit is contained in:
101
media-libs/libgphoto2/libgphoto2-2.5.19.recipe
Normal file
101
media-libs/libgphoto2/libgphoto2-2.5.19.recipe
Normal file
@@ -0,0 +1,101 @@
|
||||
SUMMARY="A library that implements support for numerous digital cameras"
|
||||
DESCRIPTION="libgphoto2 is the core library designed to allow access to \
|
||||
digital camera by external programs. It abstracts communication ports and \
|
||||
camera protocol, to allow a complete modularity. To support a new \
|
||||
communication physical layer (like IEEE1394), just add a new port to \
|
||||
libgphoto2_port. To support a new kind a digital camera, just provide \
|
||||
a new camlib with the required callbacks. All of this will be transparent \
|
||||
to client (programs that call libgphoto2)."
|
||||
HOMEPAGE="http://www.gphoto.org/"
|
||||
COPYRIGHT="The gphoto2 team"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://downloads.sourceforge.net/gphoto/libgphoto2-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="62523e52e3b8542301e072635b518387f2bd0948347775cf10cb2da9a6612c63"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libgphoto2Version="6.1.0"
|
||||
libgphoto2_portVersion="12.0.0"
|
||||
libgphoto2VersionCompat="$libgphoto2Version compat >= 6"
|
||||
libgphoto2_portVersionCompat="$libgphoto2_portVersion compat >= 12"
|
||||
|
||||
PROVIDES="
|
||||
libgphoto2$secondaryArchSuffix = $portVersion
|
||||
lib:libgphoto2$secondaryArchSuffix = $libgphoto2VersionCompat
|
||||
lib:libgphoto2_port$secondaryArchSuffix = $libgphoto2_portVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libexif$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libltdl$secondaryArchSuffix
|
||||
lib:libusb_1.0$secondaryArchSuffix
|
||||
lib:libxml2$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libgphoto2${secondaryArchSuffix}_devel = $portVersion
|
||||
cmd:gphoto2_config$secondaryArchSuffix = $portVersion
|
||||
cmd:gphoto2_port_config$secondaryArchSuffix = $portVersion
|
||||
devel:libgphoto2$secondaryArchSuffix = $libgphoto2VersionCompat
|
||||
devel:libgphoto2_port$secondaryArchSuffix = $libgphoto2_portVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libgphoto2$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libexif$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libltdl$secondaryArchSuffix
|
||||
devel:libusb_1.0$secondaryArchSuffix
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gettext$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
defineDebugInfoPackage libgphoto2$secondaryArchSuffix \
|
||||
"$libDir"/libgphoto2.so.$libgphoto2Version \
|
||||
"$libDir"/libgphoto2_port.so.$libgphoto2_portVersion \
|
||||
"$libDir"/libgphoto2/print-camera-list
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
find $libDir -name '*.la' -delete
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libgphoto2 libgphoto2_port
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
"$developDir" \
|
||||
"$binDir" \
|
||||
"$manDir"
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user