1SUMMARY="Library for SSA/ASS subtitles rendering" 2DESCRIPTION="Libass is a portable subtitle renderer for the ASS/SSA (Advanced \ 3Substation Alpha/Substation Alpha) subtitle format." 4HOMEPAGE="https://github.com/libass/libass" 5COPYRIGHT="2006-2021 libass contributors 6 2006 Evgeniy Stepanov 7 2011-2014 Yu Zhuohuang 8 2013 Rodger Combs 9 2015 Grigori Goronzy 10 2016 Oleg Oshmyan 11 2016 Vabishchevich Nikolay" 12LICENSE="ISC" 13REVISION="1" 14SOURCE_URI="https://github.com/libass/libass/releases/download/$portVersion/libass-$portVersion.tar.xz" 15CHECKSUM_SHA256="f0da0bbfba476c16ae3e1cfd862256d30915911f7abaa1b16ce62ee653192784" 16 17ARCHITECTURES="all !x86_gcc2" 18SECONDARY_ARCHITECTURES="x86" 19 20libVersion="9.2.1" 21libVersionCompat="$libVersion compat >= ${libVersion%%.*}" 22 23PROVIDES=" 24 libass$secondaryArchSuffix = $portVersion compat >= 0.11 25 lib:libass$secondaryArchSuffix = $libVersionCompat 26 " 27REQUIRES=" 28 haiku$secondaryArchSuffix 29 lib:libbz2$secondaryArchSuffix # required by freetype 30 lib:libfontconfig$secondaryArchSuffix 31 lib:libfreetype$secondaryArchSuffix 32 lib:libfribidi$secondaryArchSuffix 33 lib:libgraphite2$secondaryArchSuffix # required by harfbuzz 34 lib:libharfbuzz$secondaryArchSuffix 35 lib:libiconv$secondaryArchSuffix 36 lib:libintl$secondaryArchSuffix # required by fontconfig 37 lib:libpng16$secondaryArchSuffix # required by freetype 38 lib:libxml2$secondaryArchSuffix # required by fontconfig 39 lib:libz$secondaryArchSuffix # required by freetype 40 " 41 42PROVIDES_devel=" 43 libass${secondaryArchSuffix}_devel = $portVersion compat >= 0.11 44 devel:libass$secondaryArchSuffix = $libVersionCompat 45 " 46REQUIRES_devel=" 47 libass$secondaryArchSuffix == $portVersion base 48 devel:libfontconfig$secondaryArchSuffix 49 devel:libfribidi$secondaryArchSuffix 50 devel:libharfbuzz$secondaryArchSuffix 51 " 52 53BUILD_REQUIRES=" 54 haiku${secondaryArchSuffix}_devel 55 devel:libfontconfig$secondaryArchSuffix 56 devel:libfreetype$secondaryArchSuffix 57 devel:libfribidi$secondaryArchSuffix 58 devel:libharfbuzz$secondaryArchSuffix 59 devel:libiconv$secondaryArchSuffix 60 " 61BUILD_PREREQUIRES=" 62 cmd:aclocal 63 cmd:autoconf 64 cmd:automake 65 cmd:gcc$secondaryArchSuffix 66 cmd:ld$secondaryArchSuffix 67 cmd:libtoolize$secondaryArchSuffix 68 cmd:make 69 cmd:nasm 70 cmd:pkg_config$secondaryArchSuffix 71 " 72 73defineDebugInfoPackage libass$secondaryArchSuffix \ 74 $libDir/libass.so.$libVersion 75 76BUILD() 77{ 78 autoreconf -fi 79 runConfigure ./configure --with-pic --disable-static 80 make $jobArgs 81} 82 83INSTALL() 84{ 85 make install 86 87 rm $libDir/libass.la 88 89 prepareInstalledDevelLibs libass 90 fixPkgconfig 91 92 packageEntries devel \ 93 $developDir 94} 95 96TEST() 97{ 98 make check 99} 100