mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
sane_backends: Add recipe for version 1.0.25
This commit is contained in:
122
media-gfx/sane_backends/sane_backends-1.0.25.recipe
Normal file
122
media-gfx/sane_backends/sane_backends-1.0.25.recipe
Normal file
@@ -0,0 +1,122 @@
|
||||
SUMMARY="Scanner Access Now Easy (SANE)"
|
||||
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 the command line frontend scanimage, the saned server \
|
||||
and the sane-find-scanner utility, along with their documentation.
|
||||
"
|
||||
|
||||
HOMEPAGE="http://www.sane-project.org"
|
||||
LICENSE="GNU LGPL v2"
|
||||
COPYRIGHT="David Mosberger-Tang, Andy Beck"
|
||||
SOURCE_URI="https://alioth.debian.org/frs/download.php/file/4146/sane-backends-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="a4d7ba8d62b2dea702ce76be85699940992daf3f44823ddc128812da33dc6e2c"
|
||||
SOURCE_DIR="sane-backends-$portVersion"
|
||||
REVISION="1"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
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
|
||||
cmd:saned$secondaryArchSuffix = $portVersion
|
||||
cmd:scanimage$secondaryArchSuffix = $portVersion
|
||||
lib:libsane$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
lib:libusb_1.0$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libtiff$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libz$secondaryArchSuffix
|
||||
devel:libusb_1.0$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libtiff$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:libtoolize
|
||||
cmd:awk
|
||||
cmd:find
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PATCHES="sane_backends-$portVersion.patchset"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
automake
|
||||
|
||||
runConfigure configure \
|
||||
--prefix=$prefix \
|
||||
--bindir=$binDir \
|
||||
--sbindir=$binDir \
|
||||
--libdir=$libDir \
|
||||
--includedir=$includeDir \
|
||||
--datadir=$dataDir \
|
||||
--with-docdir=$docDir \
|
||||
--enable-pthread \
|
||||
--disable-latex \
|
||||
--disable-translations \
|
||||
--enable-libusb_1_0 \
|
||||
--enable-rpath \
|
||||
LIBS=-lnetwork
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# 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
|
||||
|
||||
}
|
||||
|
||||
# ----- devel package -------------------------------------------------------
|
||||
|
||||
PROVIDES_devel="
|
||||
sane_backends${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libsane$secondaryArchSuffix = portVersion compat >= 0
|
||||
"
|
||||
REQUIRES_devel="
|
||||
sane_backends$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
Reference in New Issue
Block a user