From 7a488cf54efc4ca3c280eaf0c76aefb6b9b75b0c Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Thu, 26 Oct 2017 14:01:23 +0200 Subject: [PATCH] glib-networking: add recipe for version 2.54.0. --- .../glib_networking-2.54.0.recipe | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 net-libs/glib_networking/glib_networking-2.54.0.recipe diff --git a/net-libs/glib_networking/glib_networking-2.54.0.recipe b/net-libs/glib_networking/glib_networking-2.54.0.recipe new file mode 100644 index 000000000..e59818489 --- /dev/null +++ b/net-libs/glib_networking/glib_networking-2.54.0.recipe @@ -0,0 +1,77 @@ +SUMMARY="Network-related giomodules for GLib" +DESCRIPTION="This package contains various network related extensions for the GIO library." +HOMEPAGE="http://www.gtk.org/" +COPYRIGHT="1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + 1991-2003 Free Software Foundation, Inc. + 1997-2006 University of Cambridge. + 1998-2001, 2003-2010 Red Hat, Inc. + 2007-2009 Nokia Corporation + 2008, 2010 Oracle and/or its affiliates, Inc. All rights + 2008-2010 Codethink Limited + 2008-2010 Collabora Ltd. + 1995-2010 Several others" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="http://ftp.gnome.org/pub/gnome/sources/glib-networking/2.54/glib-networking-$portVersion.tar.xz" +CHECKSUM_SHA256="5961b3779080b72314b373ff5d4790eb7e41b75ca91816ad7a81ef32922f7096" +SOURCE_DIR="glib-networking-$portVersion" + +ARCHITECTURES="?x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86" + +PROVIDES=" + glib_networking$secondaryArchSuffix = $portVersion compat >= 2 + lib:libglib_networking_2.0$secondaryArchSuffix = $portVersion compat >= 2 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libffi$secondaryArchSuffix + lib:libglib_2.0$secondaryArchSuffix + lib:libgmp$secondaryArchSuffix + lib:libgnutls$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + lib:libxml2$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + ca_root_certificates + devel:libglib_2.0$secondaryArchSuffix + devel:libgmp$secondaryArchSuffix + devel:libgnutls$secondaryArchSuffix >= 30 + devel:libnettle$secondaryArchSuffix + devel:libtasn1$secondaryArchSuffix + devel:libxml2$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:intltool_update + cmd:ld$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + cmd:python + " + +BUILD() +{ + autoreconf -fi + export CFLAGS=-D_BSD_SOURCE + runConfigure ./configure --disable-maintainer-mode \ + --with-ca-certificates=/system/data/ssl/CARootCertificates.pem + + make $jobArgs +} + +INSTALL() +{ + find -type f -name 'Makefile' -exec sed -i "s|^GIO_MODULE_DIR =.*|GIO_MODULE_DIR = $libDir/gio/modules|g" {} \; + make install + + rm $libDir/gio/modules/libgiognutls.la +}