Files
haikuports/media-libs/libass/libass-0.14.0.recipe
2017-11-04 00:20:26 +01:00

107 lines
2.7 KiB
Bash

SUMMARY="Library for SSA/ASS subtitles rendering"
DESCRIPTION="Libass is a portable subtitle renderer for the ASS/SSA (Advanced \
Substation Alpha/Substation Alpha) subtitle format."
HOMEPAGE="http://github.com/libass/libass"
COPYRIGHT="2006-2017 libass contributors
2006 Evgeniy Stepanov
2011 Grigori Goronzy
2011-2014 Yu Zhuohuang
2013 Rodger Combs"
LICENSE="ISC"
REVISION="1"
SOURCE_URI="https://github.com/libass/libass/releases/download/$portVersion/libass-$portVersion.tar.xz"
CHECKSUM_SHA256="881f2382af48aead75b7a0e02e65d88c5ebd369fe46bc77d9270a94aa8fd38a2"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libass$secondaryArchSuffix = $portVersion compat >= 0.11
lib:libass$secondaryArchSuffix = 9.0.2 compat >= 9
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libenca$secondaryArchSuffix
lib:libfontconfig$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libfribidi$secondaryArchSuffix
lib:libharfbuzz$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
# required by fontconfig
lib:libxml2$secondaryArchSuffix
# required by freetype
lib:libbz2$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libz$secondaryArchSuffix
# required by harfbuzz
lib:libglib_2.0$secondaryArchSuffix
lib:libgraphite2$secondaryArchSuffix
"
PROVIDES_devel="
libass${secondaryArchSuffix}_devel = $portVersion compat >= 0.11
devel:libass$secondaryArchSuffix = 9.0.2 compat >= 9
"
REQUIRES_devel="
libass$secondaryArchSuffix == $portVersion base
devel:libfontconfig$secondaryArchSuffix
devel:libfribidi$secondaryArchSuffix
devel:libharfbuzz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libenca$secondaryArchSuffix
devel:libfontconfig$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libfribidi$secondaryArchSuffix
devel:libharfbuzz$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
# required by fontconfig
devel:libxml2$secondaryArchSuffix
# required by freetype
devel:libbz2$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libz$secondaryArchSuffix
# required by harfbuzz
devel:libglib_2.0$secondaryArchSuffix
devel:libgraphite2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
#cmd:yasm #yasm outputs invalid files here
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -fi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libass.la
prepareInstalledDevelLibs libass
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
make check
}