diff --git a/media-libs/libraqm/libraqm-0.3.0.recipe b/media-libs/libraqm/libraqm-0.3.0.recipe new file mode 100644 index 000000000..2d5d6f231 --- /dev/null +++ b/media-libs/libraqm/libraqm-0.3.0.recipe @@ -0,0 +1,81 @@ +SUMMARY="A small library that encapsulates the logic for complex text layout" +DESCRIPTION="Raqm is a small library that encapsulates the logic for complex \ +text layout and provide a convenient API. + +It currently provides bidirectional text support (using [FriBiDi][1]), \ +shaping (using [HarfBuzz][2]), and proper script itemization. As a result, \ +Raqm can support most writing systems covered by Unicode." +HOMEPAGE="https://github.com/HOST-Oman/libraqm/" +COPYRIGHT="2015 Information Technology Authority + 2016 Khaled Hosny" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://github.com/HOST-Oman/libraqm/archive/v$portVersion.tar.gz" +CHECKSUM_SHA256="52cb1d0dcb09b2bbc50c2c347e9581191baacfd3dce3ae3f45b52ab038f946a8" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + libraqm$secondaryArchSuffix = $portVersion + lib:libraqm$secondaryArchSuffix = 0.0.0 compat >= 0 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libfreetype$secondaryArchSuffix + lib:libfribidi$secondaryArchSuffix + lib:libglib_2.0$secondaryArchSuffix + lib:libharfbuzz$secondaryArchSuffix + " + +PROVIDES_devel=" + libraqm${secondaryArchSuffix}_devel = $portVersion + devel:libraqm$secondaryArchSuffix = 0.0.0 compat >= 0 + " +REQUIRES_devel=" + libraqm$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libfreetype$secondaryArchSuffix + devel:libfribidi$secondaryArchSuffix + devel:libglib_2.0$secondaryArchSuffix + devel:libharfbuzz$secondaryArchSuffix + " + +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:awk + cmd:gcc$secondaryArchSuffix + cmd:gtkdocize + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + cmd:which + " + +BUILD() +{ + ./autogen.sh + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs libraqm + fixPkgconfig + + #devel Package + packageEntries devel \ + $developDir +} + +TEST() +{ + make check +}