mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
libspectre: add recipe
This commit is contained in:
78
app-text/libspectre/libspectre-0.2.12.recipe
Normal file
78
app-text/libspectre/libspectre-0.2.12.recipe
Normal file
@@ -0,0 +1,78 @@
|
||||
SUMMARY="Library for rendering Postscript documents"
|
||||
DESCRIPTION="libspectre is a small library for rendering Postscript documents. It provides a \
|
||||
convenient easy to use API for handling and rendering Postscript documents."
|
||||
HOMEPAGE="https://www.freedesktop.org/wiki/Software/libspectre/"
|
||||
COPYRIGHT="Albert Astals Cid
|
||||
Carlos Garcia Campos"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://libspectre.freedesktop.org/releases/libspectre-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="55a7517cd3572bd2565df0cf450944a04d5273b279ebb369a895391957f0f960"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="1.1.12"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libspectre$secondaryArchSuffix = $portVersion
|
||||
lib:libspectre$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libgs$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libspectre${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libspectre$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libspectre$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libgs$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:autoheader
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoheader
|
||||
automake -a -c --foreign
|
||||
autoconf
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm -f $libDir/{libspectre.a,libspectre.la}
|
||||
|
||||
prepareInstalledDevelLib libspectre
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user