mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
Add recipe for gphotofs 1.0git
Doesn't link on x86_gcc2 due to missing x86 userlandfs_fuse package.
This commit is contained in:
63
sys-fs/gphotofs/gphotofs-1.0git.recipe
Normal file
63
sys-fs/gphotofs/gphotofs-1.0git.recipe
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
SUMMARY="A command-line frontend to libgphoto2"
|
||||||
|
DESCRIPTION="gGPhotoFS is a filesystem client based on libgphoto2 that \
|
||||||
|
exposes supported cameras as filesystems; while some cameras implement the \
|
||||||
|
USB Mass Storage class and already appear as filesystems (making \
|
||||||
|
this program redundant), many use the Picture Transfer Protocol (PTP) \
|
||||||
|
or some other custom protocol. But as long as the camera is supported \
|
||||||
|
by libgphoto2, it can be mounted as a filesystem using this program.
|
||||||
|
|
||||||
|
As libgphoto2 is a userspace library for interacting with cameras, \
|
||||||
|
it is natural that if one is to build a filesystem ontop of it, one \
|
||||||
|
should use FUSE, and that is what I have done."
|
||||||
|
HOMEPAGE="http://www.gphoto.org/"
|
||||||
|
COPYRIGHT="The gphoto2 team"
|
||||||
|
LICENSE="GNU GPL v2"
|
||||||
|
SOURCE_URI="git+https://github.com/gphoto/gphotofs.git#5f85be3"
|
||||||
|
REVISION="1"
|
||||||
|
|
||||||
|
ARCHITECTURES="?x86 ?x86_64"
|
||||||
|
SECONDARY_ARCHITECTURES="!x86"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
gphotofs$secondaryArchSuffix = $portVersion
|
||||||
|
"
|
||||||
|
REQUIRES="
|
||||||
|
haiku$secondaryArchSuffix
|
||||||
|
lib:libgphoto2$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
haiku${secondaryArchSuffix}_devel
|
||||||
|
userland_fs
|
||||||
|
devel:libglib_2.0$secondaryArchSuffix >= 0.38
|
||||||
|
devel:libiconv$secondaryArchSuffix
|
||||||
|
devel:libgphoto2$secondaryArchSuffix
|
||||||
|
devel:libjpeg$secondaryArchSuffix
|
||||||
|
devel:libpopt$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
BUILD_PREREQUIRES="
|
||||||
|
cmd:aclocal
|
||||||
|
cmd:autoreconf
|
||||||
|
cmd:libtoolize
|
||||||
|
cmd:make
|
||||||
|
cmd:gcc$secondaryArchSuffix
|
||||||
|
cmd:pkg_config$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD()
|
||||||
|
{
|
||||||
|
sed -i 's/FUSE_USE_VERSION=22/FUSE_USE_VERSION=25/' Makefile.am
|
||||||
|
libtoolize --copy --force
|
||||||
|
autoreconf -i -f
|
||||||
|
export FUSE_CFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS -I/system/develop/headers/x86/gphoto2 -I/system/develop/headers/userlandfs/fuse -I/system/develop/headers/x86/glib-2.0 -I/system/develop/lib/x86/glib-2.0/include -D_FILE_OFFSET_BITS=64"
|
||||||
|
# export FUSE_LIBS="-lbsd -lposix_error_mapper -luserlandfs_fuse -lglib-2.0 -lgthread-2.0"
|
||||||
|
export FUSE_LIBS="-luserlandfs_fuse -lglib-2.0"
|
||||||
|
runConfigure configure
|
||||||
|
make $jobArgs
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL()
|
||||||
|
{
|
||||||
|
mkdir -p $prefix/add-ons/userlandfs
|
||||||
|
cp gphotofs $prefix/add-ons/userlandfs
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user