fix build scripts of packages: curl gnutls xerces

This commit is contained in:
Volker Grabsch 2010-11-29 01:15:43 +01:00
parent 4dab36fa2f
commit 6414eebdaa
4 changed files with 21 additions and 5 deletions

View File

@ -25,8 +25,8 @@ define $(PKG)_BUILD
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--with-gnutls='$(PREFIX)/$(TARGET)' \
--with-libidn='$(PREFIX)/$(TARGET)' \
--with-gnutls \
--with-libidn \
LIBS="-lgcrypt -liconv `$(PREFIX)/$(TARGET)/bin/gpg-error-config --libs`"
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef

View File

@ -11,7 +11,7 @@ $(PKG)_FILE := gnutls-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://www.gnu.org/software/gnutls/
$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/gnutls/$($(PKG)_FILE)
$(PKG)_URL_2 := ftp://ftp.gnupg.org/gcrypt/gnutls/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libgcrypt
$(PKG)_DEPS := gcc zlib libgcrypt
define $(PKG)_UPDATE
wget -q -O- 'http://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=tags' | \
@ -32,6 +32,7 @@ define $(PKG)_BUILD
--with-included-opencdk \
--with-included-libtasn1 \
--with-included-libcfg \
--with-included-lzo
--with-included-lzo \
LIBS='-lz'
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= defexec_DATA=
endef

View File

@ -0,0 +1,15 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
This patch has been taken from:
https://issues.apache.org/jira/browse/XERCESC-1951
diff -r a3f28cf10046 xerces-c.pc.in
--- a/xerces-c.pc.in Mon Nov 29 00:46:50 2010 +0100
+++ b/xerces-c.pc.in Mon Nov 29 00:58:47 2010 +0100
@@ -7,4 +7,5 @@
Description: Validating XML parser library for C++
Version: @VERSION@
Libs: -L${libdir} -lxerces-c
+Libs.private: @CURL_LIBS@
Cflags: -I${includedir}

View File

@ -51,5 +51,5 @@ define $(PKG)_BUILD
'$(TARGET)-g++' \
-W -Wall -Werror -ansi -pedantic \
'$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-xerces.exe' \
-lxerces-c
`'$(TARGET)-pkg-config' xerces-c --cflags --libs`
endef