3 changed files with 97 additions and 1 deletions
@ -0,0 +1,39 @@ |
|||||||
|
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
||||||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
||||||
|
# |
||||||
|
# Filename: package/.../gnutls/gnutls-config.patch.cross |
||||||
|
# Copyright (C) 2008 The OpenSDE Project |
||||||
|
# |
||||||
|
# More information can be found in the files COPYING and README. |
||||||
|
# |
||||||
|
# This patch file is dual-licensed. It is available under the license the |
||||||
|
# patched project is licensed under, as long as it is an OpenSource license |
||||||
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms |
||||||
|
# of the GNU General Public License as published by the Free Software |
||||||
|
# Foundation; either version 2 of the License, or (at your option) any later |
||||||
|
# version. |
||||||
|
# --- SDE-COPYRIGHT-NOTE-END --- |
||||||
|
|
||||||
|
Autho: Christian Wiese <[email protected]> |
||||||
|
Origin: OpenSDE (http://opensde.org) |
||||||
|
Description: Do not hardcode '-L{libdir}' into the generated 'libgnutls-config' |
||||||
|
and 'libgnutls-extra-config' which causes problems while cross |
||||||
|
compiling packages that use libtool for linking against gnutls. |
||||||
|
|
||||||
|
--- gnutls-2.2.2/configure.orig 2008-03-17 03:25:37.000000000 +0200 |
||||||
|
+++ gnutls-2.2.2/configure 2008-03-17 03:30:09.000000000 +0200 |
||||||
|
@@ -48292,12 +48292,12 @@ |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-LIBGNUTLS_LIBS="-L${libdir} -lgnutls $LIBTASN1_LIBS $LIBGCRYPT_LIBS $LIBS" |
||||||
|
+LIBGNUTLS_LIBS="-lgnutls $LIBTASN1_LIBS $LIBGCRYPT_LIBS $LIBS" |
||||||
|
LIBGNUTLS_CFLAGS="$LIBGCRYPT_CFLAGS $LIBTASN1_CFLAGS -I${includedir}" |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-LIBGNUTLS_EXTRA_LIBS="-L${libdir} -lgnutls-extra $LTLIBOPENCDK $LZO_LIBS $LIBGNUTLS_LIBS" |
||||||
|
+LIBGNUTLS_EXTRA_LIBS="-lgnutls-extra $LTLIBOPENCDK $LZO_LIBS $LIBGNUTLS_LIBS" |
||||||
|
LIBGNUTLS_EXTRA_CFLAGS="$INCOPENCDK -I${includedir}" |
||||||
|
|
||||||
|
|
@ -0,0 +1,57 @@ |
|||||||
|
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
||||||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
||||||
|
# |
||||||
|
# Filename: package/.../gnutls/gnutls.conf |
||||||
|
# Copyright (C) 2008 The OpenSDE Project |
||||||
|
# |
||||||
|
# More information can be found in the files COPYING and README. |
||||||
|
# |
||||||
|
# This program is free software; you can redistribute it and/or modify |
||||||
|
# it under the terms of the GNU General Public License as published by |
||||||
|
# the Free Software Foundation; version 2 of the License. A copy of the |
||||||
|
# GNU General Public License can be found in the file COPYING. |
||||||
|
# --- SDE-COPYRIGHT-NOTE-END --- |
||||||
|
|
||||||
|
# Note: By providing '--with-$foo-prefix' we help gnutls to cross-compile |
||||||
|
|
||||||
|
# readline support |
||||||
|
if pkginstalled readline ; then |
||||||
|
pkgprefix -t readline |
||||||
|
var_append extraconfopt ' ' \ |
||||||
|
"--with-libreadline-prefix=$root/$( pkgprefix readline )" |
||||||
|
fi |
||||||
|
|
||||||
|
# zlib compression support |
||||||
|
if pkginstalled zlib ; then |
||||||
|
pkgprefix -t zlib |
||||||
|
var_append extraconfopt ' ' \ |
||||||
|
"--with-libz-prefix=$root/$( pkgprefix zlib)" |
||||||
|
else |
||||||
|
var_append extraconfopt ' ' "--without-zlib" |
||||||
|
fi |
||||||
|
|
||||||
|
# libtasn1 support |
||||||
|
if pkginstalled libtasn1 ; then |
||||||
|
pkgprefix -t libtasn1 |
||||||
|
var_append extraconfopt ' ' \ |
||||||
|
"--with-libtasn1-prefix=$root/$( pkgprefix libtasn1)" |
||||||
|
else |
||||||
|
var_append extraconfopt ' ' "--with-included-libtasn1" |
||||||
|
fi |
||||||
|
|
||||||
|
# libgcrypt support |
||||||
|
if pkginstalled libgcrypt ; then |
||||||
|
pkgprefix -t libgcrypt |
||||||
|
var_append extraconfopt ' ' '--with-libgcrypt' |
||||||
|
var_append extraconfopt ' ' \ |
||||||
|
"--with-libgcrypt-prefix=$root/$( pkgprefix libgcrypt )" |
||||||
|
fi |
||||||
|
|
||||||
|
# opencdk support |
||||||
|
if pkginstalled opencdk ; then |
||||||
|
pkgprefix -t opencdk |
||||||
|
var_append extraconfopt ' ' \ |
||||||
|
"--with-libopencdk-prefix=$root/$( pkgprefix opencdk )" |
||||||
|
else |
||||||
|
var_append extraconfopt ' ' "--with-included-opencdk" |
||||||
|
fi |
Loading…
Reference in new issue