libass: add recipe for version 0.12.0

This commit is contained in:
Jerome Duval
2014-11-22 21:48:38 +00:00
parent d4ba7dd37f
commit 03ddd1fbb9
2 changed files with 100 additions and 26 deletions

View File

@@ -1,26 +0,0 @@
DESCRIPTION="Library for SSA/ASS subtitles rendering"
HOMEPAGE="http://code.google.com/p/libass/"
SRC_URI="http://libass.googlecode.com/files/libass-0.10.1.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
CHECKSUM_MD5="6cace482a013a3c4bf3b31a68ac66026"
DEPEND="pkgconfig >= 0.23
freetype >= 2.0"
BUILD()
{
cd libass-0.10.1
configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL()
{
cd libass-0.10.1
make install
}
LICENSE="BSD (3-clause)"
COPYRIGHT="2006 Evgeniy Stepanov
2009 Grigori Goronzy"

View File

@@ -0,0 +1,100 @@
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 Evgeniy Stepanov
2011 Grigori Goronzy
2011-2014 Yu Zhuohuang
2013 Rodger Combs
"
LICENSE="ISC"
SRC_URI="https://github.com/libass/libass/releases/download/$portVersion/libass-$portVersion.tar.xz"
CHECKSUM_SHA256="0f34e9b4d1badbe85f2865e308d191b311f12266f9612a0fbf995ea8436bae29"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libass$secondaryArchSuffix = $portVersion compat >= 0.11
lib:libass$secondaryArchSuffix = 5.1.0 compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
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
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
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
cmd:make
#cmd:yasm #yasm outputs invalid files here
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -fi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libass
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
libass${secondaryArchSuffix}_devel = $portVersion compat >= 0.11
devel:libass$secondaryArchSuffix = 5.1.0 compat >= 5
"
REQUIRES_devel="
libass$secondaryArchSuffix == $portVersion base
"