mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
libmypaint: new recipe (#5935)
This commit is contained in:
83
media-libs/libmypaint/libmypaint-1.6.1.recipe
Normal file
83
media-libs/libmypaint/libmypaint-1.6.1.recipe
Normal file
@@ -0,0 +1,83 @@
|
||||
SUMMARY="A library for making brush strokes"
|
||||
DESCRIPTION="Libmypaint is the brush library used by MyPaint and a \
|
||||
number of other painting programs."
|
||||
HOMEPAGE="https://github.com/mypaint/libmypaint"
|
||||
COPYRIGHT="2008-2011 Martin Renold and contributors"
|
||||
LICENSE="ISC"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/mypaint/libmypaint/archive/refs/tags/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="9d888a0f13deeba06f2d63949426f4a5e4656f451b9052e4d8f7fd372a6f274e"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="0.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libmypaint$secondaryArchSuffix = $portVersion
|
||||
lib:libmypaint$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
# lib:libgirepository_1.0$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libjson_c$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libmypaint${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libmypaint$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libmypaint$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
# devel:libgirepository_1.0$secondaryArchSuffix
|
||||
devel:libjson_c$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:intltool_update
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python3.7
|
||||
"
|
||||
|
||||
defineDebugInfoPackage libmypaint$secondaryArchSuffix \
|
||||
$libDir/libmypaint.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
./autogen.sh
|
||||
runConfigure ./configure --disable-introspection
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm -f $libDir/libmypaint.la
|
||||
|
||||
# prepare devel/lib
|
||||
prepareInstalledDevelLib libmypaint
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
14
media-libs/libmypaint/licenses/ISC
Normal file
14
media-libs/libmypaint/licenses/ISC
Normal file
@@ -0,0 +1,14 @@
|
||||
libmypaint - The MyPaint Brush Library
|
||||
Copyright (C) 2008-2011 Martin Renold and contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
Reference in New Issue
Block a user