From 4b4ce28606523f7533d657688f07b9fa0296006f Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 9 Jun 2014 21:29:40 +0200 Subject: [PATCH] Add recipe for libnsgif and remove old stuff. --- media-libs/libnsgif/libnsgif-0.0.3.recipe | 20 --------- .../libnsgif/libnsgif-0.1.0_HEAD.recipe | 21 ---------- media-libs/libnsgif/libnsgif-0.1.1.recipe | 42 +++++++++++++++++++ .../libnsgif/patches/libnsgif-0.1.1.patchset | 35 ++++++++++++++++ 4 files changed, 77 insertions(+), 41 deletions(-) delete mode 100644 media-libs/libnsgif/libnsgif-0.0.3.recipe delete mode 100644 media-libs/libnsgif/libnsgif-0.1.0_HEAD.recipe create mode 100644 media-libs/libnsgif/libnsgif-0.1.1.recipe create mode 100644 media-libs/libnsgif/patches/libnsgif-0.1.1.patchset diff --git a/media-libs/libnsgif/libnsgif-0.0.3.recipe b/media-libs/libnsgif/libnsgif-0.0.3.recipe deleted file mode 100644 index 7b5fa0c2b..000000000 --- a/media-libs/libnsgif/libnsgif-0.0.3.recipe +++ /dev/null @@ -1,20 +0,0 @@ -DESCRIPTION="Libnsgif is a decoding library for the GIF image file format" -HOMEPAGE="http://www.netsurf-browser.org/projects/libnsgif/" -SRC_URI="http://download.netsurf-browser.org/libs/releases/libnsgif-0.0.3-src.tar.gz" -REVISION="1" -STATUS_HAIKU="stable" - -BUILD() -{ - cd libnsgif-0.0.3 - make -} - -INSTALL() -{ - cd libnsgif-0.0.3 - make install -} - -LICENSE="MIT" -COPYRIGHT="2003 - 2012 The NetSurf Developers" diff --git a/media-libs/libnsgif/libnsgif-0.1.0_HEAD.recipe b/media-libs/libnsgif/libnsgif-0.1.0_HEAD.recipe deleted file mode 100644 index 391fc33b7..000000000 --- a/media-libs/libnsgif/libnsgif-0.1.0_HEAD.recipe +++ /dev/null @@ -1,21 +0,0 @@ -DESCRIPTION="Libnsgif is a decoding library for the GIF image file format" -HOMEPAGE="http://www.netsurf-browser.org/projects/libnsgif/" -SRC_URI="git://git.netsurf-browser.org/libnsgif.git" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="dev-util/buildsystem >= 0.0.1" - -BUILD() -{ - cd libnsgif-0.1.0-HEAD - make PREFIX=/boot/common -} - -INSTALL() -{ - cd libnsgif-0.1.0-HEAD - make install PREFIX=/boot/common -} - -LICENSE="MIT" -COPYRIGHT="2004 Richard Wilson, 2008 - 2013 Sean Fox" diff --git a/media-libs/libnsgif/libnsgif-0.1.1.recipe b/media-libs/libnsgif/libnsgif-0.1.1.recipe new file mode 100644 index 000000000..62214fd3b --- /dev/null +++ b/media-libs/libnsgif/libnsgif-0.1.1.recipe @@ -0,0 +1,42 @@ +DESCRIPTION="Libnsgif is a decoding library for GIF image file format" +SUMMARY="A decoding library for GIF images" +HOMEPAGE="http://www.netsurf-browser.org/projects/libnsgif/" +SRC_URI="http://download.netsurf-browser.org/libs/releases/libnsgif-0.1.1-src.tar.gz" +CHECKSUM_SHA256="d450ea0a9da234486e997248b30a86524f75f1021ca67017b5597423cf6c0a15" +REVISION="1" +ARCHITECTURES="x86_gcc2" +PROVIDES=" + libnsgif = $portVersion +" +BUILD_REQUIRES=" + netsurf_buildsystem +" +BUILD_PREREQUIRES=" + haiku_devel >= $haikuVersion + cmd:gcc + cmd:make +" + +PATCHES="libnsgif-0.1.1.patchset" +BUILD() +{ + make PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem +} + +INSTALL() +{ + make PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem \ + INCLUDEDIR=$relativeIncludeDir install + + prepareInstalledDevelLib libnsgif + fixPkgconfig libnsgif + packageEntries devel $developDir +} + +LICENSE="MIT" +COPYRIGHT="2006 Richard Wilson, 2008 - 2013 Sean Fox" + +PROVIDES_devel=" + libnsgif_devel = $portVersion + devel:libnsgif = $portVersion +" diff --git a/media-libs/libnsgif/patches/libnsgif-0.1.1.patchset b/media-libs/libnsgif/patches/libnsgif-0.1.1.patchset new file mode 100644 index 000000000..b6a97eca3 --- /dev/null +++ b/media-libs/libnsgif/patches/libnsgif-0.1.1.patchset @@ -0,0 +1,35 @@ +From 70d5d372e5534a2d1f58025ea8a7d92fae60ad56 Mon Sep 17 00:00:00 2001 +From: Adrien Destugues +Date: Mon, 9 Jun 2014 21:28:28 +0200 +Subject: Fix paths for Haiku port. + + +diff --git a/Makefile b/Makefile +index 099477d..ccff0e9 100644 +--- a/Makefile ++++ b/Makefile +@@ -29,7 +29,7 @@ endif + include $(NSBUILD)/Makefile.top + + # Extra installation rules +-I := /include ++I := /$(INCLUDEDIR) + INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libnsgif.h + INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR)/pkgconfig:lib$(COMPONENT).pc.in + INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR):$(OUTPUT) +diff --git a/libnsgif.pc.in b/libnsgif.pc.in +index 3d85e6a..0255bf9 100644 +--- a/libnsgif.pc.in ++++ b/libnsgif.pc.in +@@ -1,7 +1,7 @@ + prefix=PREFIX + exec_prefix=${prefix} + libdir=${exec_prefix}/LIBDIR +-includedir=${prefix}/include ++includedir=${prefix}/INCLUDEDIR + + Name: libnsgif + Description: Provides gif loading and conversion +-- +1.8.3.4 +