mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Recipes for new versions of gphoto2 and libgphoto2
This commit is contained in:
55
media-gfx/gphoto2/gphoto2-2.5.9.recipe
Normal file
55
media-gfx/gphoto2/gphoto2-2.5.9.recipe
Normal file
@@ -0,0 +1,55 @@
|
||||
SUMMARY="A command-line frontend to libgphoto2"
|
||||
DESCRIPTION="gphoto2 is a command line client to for the libgphoto2. It allows \
|
||||
to use gPhoto software from a terminal or from a script shell to perform any \
|
||||
camera operation that can be done. This is the main user interface.
|
||||
|
||||
gphoto2 also provide convenient debugging features for camera driver \
|
||||
developers."
|
||||
HOMEPAGE="http://www.gphoto.org/"
|
||||
COPYRIGHT="The gphoto2 team"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://sourceforge.net/projects/gphoto/files/gphoto/$portVersion/gphoto2-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="cdb0e8e3a93417eb25892c4b03e64c07e93488ce05072edb62e1b70ff3291f32"
|
||||
|
||||
ARCHITECTURES="?x86 ?x86_64"
|
||||
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
gphoto$secondaryArchSuffix = $portVersion
|
||||
cmd:gphoto2$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libgphoto2$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libpopt$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
# devel:libexif$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libgphoto2$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libpopt$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:libtoolize
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
}
|
||||
76
media-libs/libgphoto2/libgphoto2-2.5.9.recipe
Normal file
76
media-libs/libgphoto2/libgphoto2-2.5.9.recipe
Normal file
@@ -0,0 +1,76 @@
|
||||
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="http://sourceforge.net/projects/gphoto/files/libgphoto2-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="cdb0e8e3a93417eb25892c4b03e64c07e93488ce05072edb62e1b70ff3291f32"
|
||||
|
||||
ARCHITECTURES="?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
libgphoto2$secondaryArchSuffix = $portVersion
|
||||
lib:libgphoto2$secondaryArchSuffix = $portVersion
|
||||
lib:libgphoto2_port$secondaryArchSuffix = $portVersion
|
||||
cmd:gphoto2_config$secondaryArchSuffix = $portVersion
|
||||
cmd:gphoto2_port_config$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libltdl$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libgphoto2${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libgphoto2$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
libgphoto2$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libltdl$secondaryArchSuffix
|
||||
devel:libusb_1.0$secondaryArchSuffix
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autom4te
|
||||
cmd:gettext$secondaryArchSuffix
|
||||
cmd:libtoolize
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize --force --copy --install
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
prepareInstalledDevelLibs \
|
||||
libgphoto2
|
||||
find $libDir -name '*.la' -delete
|
||||
rm $developLibDir/*.la
|
||||
fixPkgconfig
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
Reference in New Issue
Block a user