Add recipe for libsvgtiny and remove old stuff.

This commit is contained in:
Adrien Destugues
2014-06-09 20:32:41 +02:00
parent 74250c8296
commit 6925de5652
5 changed files with 83 additions and 68 deletions

View File

@@ -1,22 +0,0 @@
DESCRIPTION="Libsvgtiny is an implementation of SVG Tiny written in C"
HOMEPAGE="http://www.netsurf-browser.org/projects/libsvgtiny"
SRC_URI="git://git.netsurf-browser.org/libsvgtiny.git"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-util/gperf >= 3.0.4
dev-libs/libwapcaplet >= 0.1.1-HEAD
net-libs/libdom >= 0"
#CHECKSUM_MD5=""
BUILD()
{
cd libsvgtiny-0-HEAD
make PREFIX=/boot/common
}
INSTALL()
{
cd libsvgtiny-0-HEAD
make install PREFIX=/boot/common
}
LICENSE="MIT"
COPYRIGHT="2003-2012 The NetSurf Developers"

View File

@@ -0,0 +1,48 @@
SUMMARY="Libsvgtiny is an implementation of SVG Tiny written in C"
DESCRIPTION="
The overall idea of the library is to take some SVG as input, and return a \
list of paths and texts which can be rendered easily. The library does not do \
the actual rendering.
"
HOMEPAGE="http://www.netsurf-browser.org/projects/libsvgtiny"
SRC_URI="http://git.netsurf-browser.org/libsvgtiny.git/snapshot/release/0.1.1.tar.gz"
CHECKSUM_SHA256="78bb67e1e93b3458c1a6414b569e3295ddbe99274a78928b33a5deea20f11d71"
REVISION="1"
ARCHITECTURES="x86_gcc2"
PROVIDES="
libsvgtiny = $portVersion
"
BUILD_REQUIRES="
devel:libwapcaplet
devel:libdom
netsurf_buildsystem
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
cmd:gcc
gperf
cmd:make
"
SOURCE_DIR="release/0.1.1"
BUILD()
{
make PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem
}
INSTALL()
{
make PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem \
INCLUDEDIR=$relativeIncludeDir install
prepareInstalledDevelLib libsvgtiny
fixPkgconfig libsvgtiny
packageEntries devel $developDir
}
LICENSE="MIT"
COPYRIGHT="2003-2014 The NetSurf Developers"
PROVIDES_devel="
libsvgtiny_devel = $portVersion
devel:libsvgtiny = $portVersion
"

View File

@@ -1,24 +0,0 @@
DESCRIPTION="Libsvgtiny is an implementation of SVG Tiny written in C"
HOMEPAGE="http://www.netsurf-browser.org/projects/libsvgtiny"
SRC_URI="git://git.netsurf-browser.org/libsvgtiny.git"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-libs/libxml2 >= 2.7.7
dev-util/gperf >= 3.0.4
dev-util/buildsystem >= 0
dev-libs/libwapcaplet >= 0.1.1-HEAD
net-libs/libdom >= 0"
#CHECKSUM_MD5=""
BUILD()
{
cd libsvgtiny-0-HEAD
make PREFIX=/boot/common
}
INSTALL()
{
cd libsvgtiny-0-HEAD
make install PREFIX=/boot/common
}
LICENSE="MIT"
COPYRIGHT="2003-2012 The NetSurf Developers"

View File

@@ -1,22 +0,0 @@
DESCRIPTION="Libsvgtiny is an implementation of SVG Tiny written in C"
HOMEPAGE="http://www.netsurf-browser.org/projects/libsvgtiny"
SRC_URI="svn://svn.netsurf-browser.org/trunk/libsvgtiny#10856"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-libs/libxml2 >= 2.7.7
dev-util/gperf >= 3.0.4"
#CHECKSUM_MD5=""
BUILD()
{
cd libsvgtiny-10856
make
make install PREFIX=/boot/common
}
INSTALL()
{
cd libsvgtiny-10856
make install
}
LICENSE="MIT"
COPYRIGHT="2003-2010 The NetSurf Developers"

View File

@@ -0,0 +1,35 @@
From 9dd8bfc5652cfa089bc2381385631818cb09453f Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Mon, 9 Jun 2014 20:32:12 +0200
Subject: Fix paths for Haiku.
diff --git a/Makefile b/Makefile
index 392d9da..6925cab 100644
--- a/Makefile
+++ b/Makefile
@@ -45,7 +45,7 @@ endif
include $(NSBUILD)/Makefile.top
# Extra installation rules
-I := /include
+I := /$(INCLUDEDIR)
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/svgtiny.h
INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR)/pkgconfig:lib$(COMPONENT).pc.in
INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR):$(OUTPUT)
diff --git a/libsvgtiny.pc.in b/libsvgtiny.pc.in
index a3021f6..c9ca402 100644
--- a/libsvgtiny.pc.in
+++ b/libsvgtiny.pc.in
@@ -1,7 +1,7 @@
prefix=PREFIX
exec_prefix=${prefix}
libdir=${exec_prefix}/LIBDIR
-includedir=${prefix}/include
+includedir=${prefix}/INCLUDEDIR
Name: libsvgtiny
Description: SVG Tiny 1.1 rendering library
--
1.8.3.4