mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 01:30:07 +02:00
libpaper: new recipe for version 2
This commit is contained in:
88
app-text/libpaper/libpaper2-2.2.5.recipe
Normal file
88
app-text/libpaper/libpaper2-2.2.5.recipe
Normal file
@@ -0,0 +1,88 @@
|
||||
SUMMARY="Library for handling paper characteristics"
|
||||
DESCRIPTION="The libpaper paper-handling library automates recognition of many different \
|
||||
paper types and sizes for programs that need to deal with printed output."
|
||||
HOMEPAGE="https://github.com/rrthomas/libpaper"
|
||||
COPYRIGHT="1996 Yves Arrouye
|
||||
2000 Adrian Bunk
|
||||
2013-2024 Reuben Thomas"
|
||||
LICENSE="GNU LGPL v2.1
|
||||
GNU GPL v2
|
||||
GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/rrthomas/libpaper/releases/download/v$portVersion/libpaper-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="7be50974ce0df0c74e7587f10b04272cd53fd675cb6a1273ae1cc5c9cc9cab09"
|
||||
SOURCE_DIR="libpaper-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libpaper2$secondaryArchSuffix = $portVersion
|
||||
cmd:paper = $portVersion
|
||||
cmd:paperconf = $portVersion
|
||||
lib:libpaper$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libpaper2${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libpaper$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libpaper2$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
CONFLICTS_devel="
|
||||
libpaper${secondaryArchSuffix}_devel
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
settings/paperspecs auto-merge
|
||||
"
|
||||
|
||||
defineDebugInfoPackage libpaper2$secondaryArchSuffix \
|
||||
$prefix/bin/paper \
|
||||
$prefix/bin/paperconf \
|
||||
$libDir/libpaper.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure --omit-dirs "binDir" ./configure \
|
||||
--bindir=$prefix/bin \
|
||||
--disable-static \
|
||||
--enable-relocatable
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# remove libtool file
|
||||
rm $libDir/libpaper.la
|
||||
|
||||
prepareInstalledDevelLib libpaper
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user