fontforge: added a recipe for version 20141126

* CLI only.
* fontforge uses a bootstrap system which involves git, thus
applying our own patchset doesn't work well. For the moment,
we apply the patch manually and inconditionally at the beginning
of the build.
* python packages are still misplaced.
* we depend on libpython.so which atm isn't available on secondary
architectures.
* currently broken on setlocale() call.
This commit is contained in:
Jerome Duval
2014-11-29 14:31:51 +00:00
parent 41d655b82e
commit 3ebb35b259
3 changed files with 176 additions and 25 deletions

View File

@@ -1,25 +0,0 @@
DESCRIPTION="Fontforge is an outline font editor."
HOMEPAGE="http://fontforge.sourceforge.net"
SRC_URI="http://download.sourceforge.net/project/fontforge/fontforge-source/fontforge_full-20100501.tar.bz2"
CHECKSUM_MD5="5f3d20d645ec1aa2b7b4876386df8717"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND=""
BUILD()
{
cd fontforge-20100501
libtoolize --force --copy --install
aclocal
autoconf
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL()
{
cd fontforge-20100501
make install
}
LICENSE="BSD (3-clause)"
#COPYRIGHT=""

View File

@@ -0,0 +1,113 @@
SUMMARY="Fontforge is an outline font editor."
DESCRIPTION="
An outline font editor that lets you create your own OpenType, TrueType, CID-keyed, multi-master
fonts and more... or simply edit existing ones."
HOMEPAGE="http://fontforge.sourceforge.net"
COPYRIGHT="
Copyright 2000-2012, George Williams
The FontForge Project
"
LICENSE="BSD (3-clause)"
SRC_URI="https://github.com/fontforge/fontforge/releases/download/$portVersion/fontforge-2014-11-26-Unix-Source.tar.gz"
SRC_FILENAME="fontforge-$portVersion.tar.gz"
CHECKSUM_SHA256="853d52c36d2da8a80c64def2483ddd9f79a028ec8fcea41ae46a7df2cc2cd38f"
#PATCHES="fontforge-$portVersion.patchset"
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"
PROVIDES="
fontforge$secondaryArchSuffix = $portVersion
cmd:fontforge$secondaryArchSuffix
cmd:fontimage$secondaryArchSuffix
cmd:fontlint$secondaryArchSuffix
cmd:sfddiff$secondaryArchSuffix
lib:libfontforge$secondaryArchSuffix = 2.0.0 compat >= 2
lib:libfontforgeexe$secondaryArchSuffix = 2.0.0 compat >= 2
lib:libgunicode$secondaryArchSuffix = 4.0.0 compat >= 4
lib:libgutils$secondaryArchSuffix = 2.0.0 compat >= 2
lib:libgioftp$secondaryArchSuffix = 2.0.0 compat >= 2
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libfreetype$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libpng$secondaryArchSuffix
lib:libpython2.7$secondaryArchSuffix
lib:libtiff$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libbz2$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libltdl$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:libfreetype$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
devel:libpython2.7$secondaryArchSuffix
devel:libtiff$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:libtool
cmd:ld$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
cmd:python2.7
cmd:perl
cmd:tar
cmd:find
cmd:git
"
BUILD()
{
patch -p1 -N < $portDir/patches/fontforge-$portVersion.patchset || true
./bootstrap --skip-git
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libfontforge libfontforgeexe \
libgioftp libgunicode libgutils
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
fontforge${secondaryArchSuffix}_devel = $portVersion
devel:libfontforge$secondaryArchSuffix = 2.0.0 compat >= 2
devel:libfontforgeexe$secondaryArchSuffix = 2.0.0 compat >= 2
devel:libgunicode$secondaryArchSuffix = 4.0.0 compat >= 4
devel:libgutils$secondaryArchSuffix = 2.0.0 compat >= 2
devel:libgioftp$secondaryArchSuffix = 2.0.0 compat >= 2
"
REQUIRES_devel="
fontforge$secondaryArchSuffix == $portVersion base
haiku$secondaryArchSuffix >= $haikuVersion
"

View File

@@ -0,0 +1,63 @@
From 780be69568af23c771f25a916c74c29aee7e3723 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Fri, 28 Nov 2014 19:41:17 +0000
Subject: [PATCH] we don't have locale_t...
---
fontforge/splinefont.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fontforge/splinefont.h b/fontforge/splinefont.h
index 45548d2..ae3297e 100644
--- a/fontforge/splinefont.h
+++ b/fontforge/splinefont.h
@@ -3546,7 +3546,7 @@ char * delimit_null(const char * input, char delimiter);
#include "ustring.h"
-#ifdef __MINGW32__
+#if defined (__MINGW32__) || defined (__HAIKU__)
#define BAD_LOCALE_HACK
typedef char* locale_t;
#define LC_GLOBAL_LOCALE ((locale_t)-1)
--
1.8.3.4
From 780be69568af23c771f25a916c74c29aee7e3723 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Fri, 28 Nov 2014 19:41:17 +0000
Subject: [PATCH] we don't have locale_t...
---
fontforge/splinefont.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fontforge/splinefont.h b/fontforge/splinefont.h
index 45548d2..ae3297e 100644
--- a/fontforge/splinefont.h
+++ b/fontforge/splinefont.h
@@ -3546,7 +3546,7 @@ char * delimit_null(const char * input, char delimiter);
#include "ustring.h"
-#ifdef __MINGW32__
+#if defined (__MINGW32__) || defined (__HAIKU__)
#define BAD_LOCALE_HACK
typedef char* locale_t;
#define LC_GLOBAL_LOCALE ((locale_t)-1)
--
1.8.3.4
diff --git a/fontforge/cvundoes.c b/fontforge/cvundoes.c
index 42ad37b..b06fe0a 100644
--- a/fontforge/cvundoes.c
+++ b/fontforge/cvundoes.c
@@ -33,7 +33,7 @@
#include "inc/gfile.h"
#include "psfont.h"
-#if defined(__MINGW32__)||defined(__CYGWIN__)
+#if defined(__MINGW32__)||defined(__CYGWIN__)||defined(__HAIKU__)
// no backtrace on windows yet
#else
#include <execinfo.h>