Add recipes for Netsurf 3.3.

This commit is contained in:
Adrien Destugues
2015-03-21 21:05:06 +01:00
parent 90e4f03b38
commit e60cecf1ee
16 changed files with 6104 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
SUMMARY="library for processing UTF-8 encoded Unicode strings."
DESCRIPTION="utf8proc is a small, clean C library that provides Unicode \
normalization, case-folding, and other operations for data in the UTF-8 \
encoding, supporting Unicode version 7.0."
LICENSE="MIT"
REVISION="1"
HOMEPAGE="http://julialang.org/utf8proc/"
COPYRIGHT="2006-2013 Public Software Group"
SRC_URI="http://download.netsurf-browser.org/libs/releases/libutf8proc-1.1.6-src.tar.gz"
CHECKSUM_SHA256="16e0dacf459bf42098614b714a262633de26ba5a03f05812d6d052c9aeeac384"
PATCHES="libutf8proc-1.1.6.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
libutf8proc = $portVersion
lib:libutf8proc = 1.1.6 compat >= 1
"
PROVIDES_devel="
libutf8proc_devel = $portVersion
devel:libutf8proc = 1.1.6 compat >= 1
"
REQUIRES="
haiku
"
BUILD_PREREQUIRES="
haiku_devel
netsurf_buildsystem
cmd:gcc
cmd:make
"
BUILD()
{
make PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem
make PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem \
COMPONENT_TYPE=lib-shared
}
INSTALL()
{
make install PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem \
INCLUDEDIR=$relativeIncludeDir LIBDIR=$relativeLibDir
make install PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem \
INCLUDEDIR=$relativeIncludeDir LIBDIR=$relativeLibDir COMPONENT_TYPE=lib-shared
mkdir -p $prefix/develop/lib
prepareInstalledDevelLib libutf8proc
fixPkgconfig
packageEntries devel $developDir
}

View File

@@ -0,0 +1,35 @@
From 21fed2fcdad029c1329c5baff7ce427c978b0422 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@gmail.com>
Date: Sat, 21 Mar 2015 18:17:16 +0100
Subject: INCLUDEDIR fixes.
diff --git a/Makefile b/Makefile
index 858f4a8..d76e971 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ ifeq ($(WANT_TEST),yes)
endif
# Extra installation rules
-I := /include/libutf8proc
+I := /$(INCLUDEDIR)/libutf8proc
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libutf8proc/utf8proc.h
INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR)/pkgconfig:lib$(COMPONENT).pc.in
INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR):$(OUTPUT)
diff --git a/libutf8proc.pc.in b/libutf8proc.pc.in
index 2155841..f4645c0 100644
--- a/libutf8proc.pc.in
+++ b/libutf8proc.pc.in
@@ -1,7 +1,7 @@
prefix=PREFIX
exec_prefix=${prefix}
libdir=${exec_prefix}/LIBDIR
-includedir=${prefix}/include
+includedir=${prefix}/INCLUDEDIR
Name: libutf8proc
Description: UTF8 processing
--
2.2.2