mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 13:38:52 +02:00
harfbuzz: added a recipe for version 0.9.35
This commit is contained in:
100
media-libs/harfbuzz/harfbuzz-0.9.35.recipe
Normal file
100
media-libs/harfbuzz/harfbuzz-0.9.35.recipe
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
SUMMARY="HarfBuzz is an OpenType text shaping engine."
|
||||||
|
DESCRIPTION="
|
||||||
|
HarfBuzz is an OpenType text shaping engine. It is used to layout complex text
|
||||||
|
such as the Indic and Arabic alphabets.
|
||||||
|
"
|
||||||
|
HOMEPAGE="http://www.freedesktop.org/wiki/Software/HarfBuzz/"
|
||||||
|
LICENSE="MIT"
|
||||||
|
COPYRIGHT="
|
||||||
|
2010,2011,2012 Google, Inc.
|
||||||
|
2012 Mozilla Foundation
|
||||||
|
2011 Codethink Limited
|
||||||
|
2008,2010 Nokia Corporation and/or its subsidiary(-ies)
|
||||||
|
2009 Keith Stribley
|
||||||
|
2009 Martin Hosken and SIL International
|
||||||
|
2007 Chris Wilson
|
||||||
|
2006 Behdad Esfahbod
|
||||||
|
2005 David Turner
|
||||||
|
2004,2007,2008,2009,2010 Red Hat, Inc.
|
||||||
|
1998-2004 David Turner and Werner Lemberg
|
||||||
|
"
|
||||||
|
SRC_URI="http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-$portVersion.tar.bz2"
|
||||||
|
CHECKSUM_SHA256="0aa1a8aba6f502321cf6fef3c9d2c73dde48389c5ed1d3615a7691944c2a06ed"
|
||||||
|
REVISION="1"
|
||||||
|
ARCHITECTURES="x86 x86_64"
|
||||||
|
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||||
|
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||||
|
# for a different secondary architecture.
|
||||||
|
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||||||
|
fi
|
||||||
|
SECONDARY_ARCHITECTURES="x86 ?x86_gcc2"
|
||||||
|
|
||||||
|
PATCHES="harfbuzz-$portVersion.patchset"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
harfbuzz$secondaryArchSuffix = $portVersion compat >= 0.9
|
||||||
|
lib:libharfbuzz$secondaryArchSuffix = 0.935.0 compat >= 0.935
|
||||||
|
cmd:hb_ot_shape_closure
|
||||||
|
cmd:hb_shape
|
||||||
|
"
|
||||||
|
REQUIRES="
|
||||||
|
haiku$secondaryArchSuffix >= $haikuVersion
|
||||||
|
lib:libfreetype$secondaryArchSuffix
|
||||||
|
lib:libglib_2.0$secondaryArchSuffix
|
||||||
|
lib:libiconv$secondaryArchSuffix
|
||||||
|
lib:libintl$secondaryArchSuffix
|
||||||
|
lib:libpng15$secondaryArchSuffix
|
||||||
|
lib:libz$secondaryArchSuffix
|
||||||
|
lib:libbz2$secondaryArchSuffix
|
||||||
|
lib:libstdc++$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
devel:libfreetype$secondaryArchSuffix
|
||||||
|
devel:libglib_2.0$secondaryArchSuffix
|
||||||
|
devel:libiconv$secondaryArchSuffix
|
||||||
|
devel:libintl$secondaryArchSuffix
|
||||||
|
devel:libpng15$secondaryArchSuffix
|
||||||
|
devel:libz$secondaryArchSuffix
|
||||||
|
devel:libbz2$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
BUILD_PREREQUIRES="
|
||||||
|
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||||
|
cmd:automake
|
||||||
|
cmd:gcc$secondaryArchSuffix
|
||||||
|
cmd:ld$secondaryArchSuffix
|
||||||
|
cmd:libtool
|
||||||
|
cmd:make
|
||||||
|
cmd:grep
|
||||||
|
cmd:sed
|
||||||
|
cmd:pkg_config$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD()
|
||||||
|
{
|
||||||
|
runConfigure ./configure
|
||||||
|
make $jobArgs
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL()
|
||||||
|
{
|
||||||
|
make install
|
||||||
|
|
||||||
|
prepareInstalledDevelLibs libharfbuzz
|
||||||
|
fixPkgconfig
|
||||||
|
|
||||||
|
# devel package
|
||||||
|
packageEntries devel \
|
||||||
|
$developDir \
|
||||||
|
$dataDir
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
# ----- devel package -------------------------------------------------------
|
||||||
|
|
||||||
|
PROVIDES_devel="
|
||||||
|
harfbuzz${secondaryArchSuffix}_devel = $portVersion compat >= 0.9
|
||||||
|
devel:libharfbuzz$secondaryArchSuffix = 0.935.0 compat >= 0.935
|
||||||
|
"
|
||||||
|
REQUIRES_devel="
|
||||||
|
harfbuzz$secondaryArchSuffix == $portVersion base
|
||||||
|
"
|
||||||
22
media-libs/harfbuzz/patches/harfbuzz-0.9.35.patchset
Normal file
22
media-libs/harfbuzz/patches/harfbuzz-0.9.35.patchset
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
From 6cc506b2bb2b0be229c8c8c742ab39df4988a35b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jerome Duval <jerome.duval@gmail.com>
|
||||||
|
Date: Thu, 21 Aug 2014 18:43:18 +0000
|
||||||
|
Subject: haiku patch
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/util/options.cc b/util/options.cc
|
||||||
|
index 0adc179..6a4b040 100644
|
||||||
|
--- a/util/options.cc
|
||||||
|
+++ b/util/options.cc
|
||||||
|
@@ -33,6 +33,8 @@
|
||||||
|
#include <hb-ot-font.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#include <strings.h>
|
||||||
|
+
|
||||||
|
struct supported_font_funcs_t {
|
||||||
|
char name[4];
|
||||||
|
void (*func) (hb_font_t *);
|
||||||
|
--
|
||||||
|
1.8.3.4
|
||||||
|
|
||||||
Reference in New Issue
Block a user