0
0
Fork 0
haikuports/media-gfx/sane_backends/sane_backends-1.0.32.recipe

129 lines
3.4 KiB
Bash
Raw Permalink Normal View History

SUMMARY="Scanner Access Now Easy (SANE)"
2017-10-24 12:46:26 +00:00
DESCRIPTION="SANE stands for \"Scanner Access Now Easy\" and is an \
application programming interface (API) that provides standardized access to \
any raster image scanner hardware (flatbed scanner, hand-held scanner, video- \
and still-cameras, frame-grabbers, etc.).
The SANE standard is free and its discussion and development \
are open to everybody. The current source code is written to support several \
operating systems, including GNU/Linux, OS/2, Win32 and various Unices and is \
available under the GNU General Public License (commercial applications and \
backends are welcome, too, however).
This package includes scanners backends, the command line frontend scanimage, \
the saned server and the sane-find-scanner utility, along with their \
2017-10-24 12:46:26 +00:00
documentation."
HOMEPAGE="http://www.sane-project.org"
COPYRIGHT="David Mosberger-Tang, Andy Beck"
LICENSE="GNU LGPL v2"
2020-05-11 17:03:02 +00:00
REVISION="1"
2021-03-06 07:41:35 +00:00
SOURCE_URI="https://gitlab.com/sane-project/backends/uploads/104f09c07d35519cc8e72e604f11643f/sane-backends-$portVersion.tar.gz"
CHECKSUM_SHA256="3a28c237c0a72767086202379f6dc92dbb63ec08dfbab22312cba80e238bb114"
2020-05-11 17:03:02 +00:00
SOURCE_DIR="sane-backends-$portVersion"
PATCHES="sane_backends-$portVersion.patchset"
ARCHITECTURES="all ?x86_gcc2"
2020-05-11 17:03:02 +00:00
SECONDARY_ARCHITECTURES="x86"
2018-08-03 12:05:37 +00:00
GLOBAL_WRITABLE_FILES="
settings/sane.d directory keep-old
"
PROVIDES="
sane_backends$secondaryArchSuffix = $portVersion
cmd:gamma4scanimage$secondaryArchSuffix = $portVersion
cmd:sane_config$secondaryArchSuffix = $portVersion
cmd:sane_find_scanner$secondaryArchSuffix = $portVersion
2020-05-11 17:03:02 +00:00
cmd:saned$secondaryArchSuffix = $portVersion
cmd:scanimage$secondaryArchSuffix = $portVersion
cmd:umax_pp$secondaryArchSuffix
lib:libsane$secondaryArchSuffix = $portVersion compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix
2020-05-11 17:03:02 +00:00
lib:libcurl$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
2020-05-11 17:03:02 +00:00
lib:libpng16$secondaryArchSuffix
lib:libtiff$secondaryArchSuffix
2018-08-09 07:04:20 +00:00
lib:libusb_1.0$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
2018-08-09 07:04:20 +00:00
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
sane_backends${secondaryArchSuffix}_devel = $portVersion
devel:libsane$secondaryArchSuffix = $portVersion compat >= 1
"
REQUIRES_devel="
sane_backends$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
2020-05-11 17:03:02 +00:00
devel:libcurl$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
2020-05-11 17:03:02 +00:00
devel:libpng16$secondaryArchSuffix
devel:libtiff$secondaryArchSuffix
2018-08-09 07:04:20 +00:00
devel:libusb_1.0$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
2018-08-09 07:04:20 +00:00
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:aclocal
cmd:autoconf
cmd:automake
2020-05-11 17:03:02 +00:00
cmd:autoreconf
cmd:autopoint
cmd:awk
cmd:find
cmd:gcc$secondaryArchSuffix
2018-08-09 07:04:20 +00:00
cmd:libtoolize
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
export LIBS="-lnetwork"
runConfigure configure \
--prefix=$prefix \
--bindir=$binDir \
--sbindir=$binDir \
--libdir=$libDir \
--includedir=$includeDir \
--datadir=$dataDir \
2020-05-11 17:03:02 +00:00
--docdir=$docDir \
--with-libcurl \
--enable-pthread \
2020-05-11 17:03:02 +00:00
--without-api-spec \
--disable-locking \
--with-usb \
--enable-rpath \
--enable-pnm-backend
make
}
INSTALL()
{
make install-strip
rm $libDir/libsane.la
# prepare develop/lib
prepareInstalledDevelLibs libsane
fixPkgconfig
# hack for old BeOS apps (Sanity)
ln -s $libDir/libsane.so.1 $libDir/libsane.so
# devel package
packageEntries devel \
$developDir
}
2020-05-11 17:03:02 +00:00
TEST()
{
make check $jobArgs
}