2004-07-12 06:05:30 -05:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2008-04-11 01:19:29 -05:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
2010-02-12 08:01:35 -06:00
|
|
|
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
2004-07-12 06:05:30 -05:00
|
|
|
#
|
2008-04-11 01:19:29 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2004-07-12 06:05:30 -05:00
|
|
|
#
|
2008-04-11 01:19:29 -05:00
|
|
|
# This file is part of OpenOffice.org.
|
2004-07-12 06:05:30 -05:00
|
|
|
#
|
2008-04-11 01:19:29 -05:00
|
|
|
# OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
# only, as published by the Free Software Foundation.
|
2004-07-12 06:05:30 -05:00
|
|
|
#
|
2008-04-11 01:19:29 -05:00
|
|
|
# OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Lesser General Public License version 3 for more details
|
|
|
|
# (a copy is included in the LICENSE file that accompanied this code).
|
2004-07-12 06:05:30 -05:00
|
|
|
#
|
2008-04-11 01:19:29 -05:00
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# version 3 along with OpenOffice.org. If not, see
|
|
|
|
# <http://www.openoffice.org/license.html>
|
|
|
|
# for a copy of the LGPLv3 License.
|
2004-07-12 06:05:30 -05:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
|
|
|
PRJ=.
|
|
|
|
|
|
|
|
PRJNAME=xmlsec1
|
|
|
|
TARGET=so_xmlsec1
|
2006-06-19 12:58:55 -05:00
|
|
|
EXTERNAL_WARNINGS_NOT_ERRORS := TRUE
|
2004-07-12 06:05:30 -05:00
|
|
|
|
|
|
|
# --- Settings -----------------------------------------------------
|
|
|
|
|
|
|
|
.INCLUDE : settings.mk
|
|
|
|
|
2011-11-03 15:05:23 -05:00
|
|
|
.IF "$(ENABLE_XMLSEC)" != "YES"
|
2005-03-30 04:39:02 -06:00
|
|
|
@all:
|
2011-11-02 11:36:27 -05:00
|
|
|
@echo "XMLSec module disabled"
|
2005-03-30 04:39:02 -06:00
|
|
|
.ENDIF
|
|
|
|
|
2004-07-12 06:05:30 -05:00
|
|
|
# --- Files --------------------------------------------------------
|
|
|
|
|
2009-12-17 07:32:53 -06:00
|
|
|
XMLSEC1VERSION=1.2.14
|
2004-07-12 06:05:30 -05:00
|
|
|
|
|
|
|
TARFILE_NAME=$(PRJNAME)-$(XMLSEC1VERSION)
|
2010-05-19 07:54:32 -05:00
|
|
|
TARFILE_MD5=1f24ab1d39f4a51faf22244c94a6203f
|
2009-10-14 11:21:13 -05:00
|
|
|
|
2010-03-05 13:10:01 -06:00
|
|
|
#xmlsec1-configure.patch: Set up the build. Straightforward configuration
|
2010-07-12 08:57:50 -05:00
|
|
|
#xmlsec1-configure-libxml-libxslt.patch: empty "$with_libxml" prepends /bin :-(
|
2010-03-02 09:54:30 -06:00
|
|
|
#xmlsec1-olderlibxml2.patch: Allow build against older libxml2, for macosx
|
2010-03-05 13:10:01 -06:00
|
|
|
#xmlsec1-nssdisablecallbacks.patch: Disable use of smime3 so don't need to package it
|
2009-10-14 11:21:13 -05:00
|
|
|
#xmlsec1-customkeymanage.patch: Could we do this alternatively outside xmlsec
|
|
|
|
#xmlsec1-nssmangleciphers.patch: Dubious, do we still need this ?
|
|
|
|
#xmlsec1-noverify.patch: As per readme.txt.
|
|
|
|
#xmlsec1-mingw32.patch: Mingw32 support.
|
2010-10-19 18:15:54 -05:00
|
|
|
#xmlsec1-mingw-customkeymanage-addmscrypto.patch: builds the custom keymanager on mingw
|
|
|
|
#xmlsec1-vc.path: support for Visual C++ 10
|
2009-10-14 11:21:13 -05:00
|
|
|
PATCH_FILES=\
|
|
|
|
xmlsec1-configure.patch \
|
2010-07-12 08:57:50 -05:00
|
|
|
xmlsec1-configure-libxml-libxslt.patch \
|
2010-03-02 09:54:30 -06:00
|
|
|
xmlsec1-olderlibxml2.patch \
|
2010-03-05 13:10:01 -06:00
|
|
|
xmlsec1-nssdisablecallbacks.patch \
|
2009-10-14 11:21:13 -05:00
|
|
|
xmlsec1-customkeymanage.patch \
|
|
|
|
xmlsec1-nssmangleciphers.patch \
|
|
|
|
xmlsec1-noverify.patch \
|
|
|
|
xmlsec1-mingw32.patch \
|
2010-10-19 18:15:54 -05:00
|
|
|
xmlsec1-mingw-keymgr-mscrypto.patch \
|
2011-03-13 10:15:21 -05:00
|
|
|
xmlsec1-vc10.patch \
|
2011-11-03 09:52:46 -05:00
|
|
|
xmlsec1-1.2.14_fix_extern_c.patch \
|
|
|
|
xmlsec1-android.patch
|
2005-03-10 10:48:13 -06:00
|
|
|
|
2004-07-12 06:05:30 -05:00
|
|
|
ADDITIONAL_FILES= \
|
2009-10-14 11:21:13 -05:00
|
|
|
include$/xmlsec$/mscrypto$/akmngr.h \
|
|
|
|
src$/mscrypto$/akmngr.c \
|
2004-07-12 06:05:30 -05:00
|
|
|
include$/xmlsec$/nss$/akmngr.h \
|
|
|
|
include$/xmlsec$/nss$/ciphers.h \
|
|
|
|
include$/xmlsec$/nss$/tokens.h \
|
|
|
|
src$/nss$/akmngr.c \
|
|
|
|
src$/nss$/keywrapers.c \
|
2009-10-14 11:21:13 -05:00
|
|
|
src$/nss$/tokens.c
|
2004-07-12 06:05:30 -05:00
|
|
|
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
CRYPTOLIB=mscrypto
|
|
|
|
.ELSE
|
|
|
|
CRYPTOLIB=nss
|
|
|
|
.ENDIF
|
|
|
|
|
2005-03-10 10:48:13 -06:00
|
|
|
.IF "$(OS)"=="WNT"
|
2007-03-26 10:02:09 -05:00
|
|
|
.IF "$(COM)"=="GCC"
|
2010-05-31 07:53:32 -05:00
|
|
|
xmlsec_CC=$(CC) -mthreads
|
2009-08-26 01:36:38 -05:00
|
|
|
.IF "$(MINGW_SHARED_GCCLIB)"=="YES"
|
|
|
|
xmlsec_CC+=-shared-libgcc
|
|
|
|
.ENDIF
|
2010-05-31 07:53:32 -05:00
|
|
|
xmlsec_LIBS=
|
2009-08-26 01:36:38 -05:00
|
|
|
.IF "$(MINGW_SHARED_GXXLIB)"=="YES"
|
2011-01-06 06:56:21 -06:00
|
|
|
xmlsec_LIBS+=$(MINGW_SHARED_LIBSTDCPP)
|
2009-08-26 01:36:38 -05:00
|
|
|
.ENDIF
|
2007-03-26 10:02:09 -05:00
|
|
|
CONFIGURE_DIR=
|
2009-10-14 11:21:13 -05:00
|
|
|
CONFIGURE_ACTION=.$/configure
|
2010-06-05 08:39:55 -05:00
|
|
|
CONFIGURE_FLAGS=--with-libxslt=no --with-openssl=no --with-gnutls=no --with-mozilla_ver=1.7.5 --enable-mscrypto --disable-crypto-dl --build=i586-pc-mingw32 --host=i586-pc-mingw32 CC="$(xmlsec_CC)" LDFLAGS="-no-undefined -L$(ILIB:s/;/ -L/)" LIBS="$(xmlsec_LIBS)" LIBXML2LIB=$(LIBXML2LIB) ZLIB3RDLIB=$(ZLIB3RDLIB) OBJDUMP="$(WRAPCMD) objdump"
|
2009-10-14 11:21:13 -05:00
|
|
|
|
2011-11-02 11:36:27 -05:00
|
|
|
.IF "$(SYSTEM_NSS)" != "YES"
|
2007-03-26 10:02:09 -05:00
|
|
|
CONFIGURE_FLAGS+=--enable-pkgconfig=no
|
|
|
|
.ENDIF
|
2010-07-20 05:46:55 -05:00
|
|
|
BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
|
2007-03-26 10:02:09 -05:00
|
|
|
BUILD_DIR=$(CONFIGURE_DIR)
|
|
|
|
.ELSE
|
2005-03-10 10:48:13 -06:00
|
|
|
CONFIGURE_DIR=win32
|
|
|
|
CONFIGURE_ACTION=cscript configure.js
|
2007-06-27 07:58:24 -05:00
|
|
|
.IF "$(product)"!="full" && "$(CCNUMVER)" >= "001399999999"
|
|
|
|
CONFIGURE_FLAGS=crypto=$(CRYPTOLIB) debug=yes xslt=no iconv=no static=no include=$(BASEINC) lib=$(BASELIB)
|
|
|
|
.ELSE
|
2005-03-10 10:48:13 -06:00
|
|
|
CONFIGURE_FLAGS=crypto=$(CRYPTOLIB) xslt=no iconv=no static=no include=$(BASEINC) lib=$(BASELIB)
|
2007-06-27 07:58:24 -05:00
|
|
|
.ENDIF
|
2005-03-10 10:48:13 -06:00
|
|
|
BUILD_ACTION=nmake
|
|
|
|
BUILD_DIR=$(CONFIGURE_DIR)
|
2007-03-26 10:02:09 -05:00
|
|
|
.ENDIF
|
2005-03-10 10:48:13 -06:00
|
|
|
.ELSE
|
2005-05-18 04:10:56 -05:00
|
|
|
.IF "$(GUI)"=="UNX"
|
2005-12-28 09:58:06 -06:00
|
|
|
|
2008-08-27 07:48:25 -05:00
|
|
|
.IF "$(COM)"=="C52" && "$(CPU)"=="U"
|
|
|
|
xmlsec_CFLAGS+=-m64
|
|
|
|
.ENDIF
|
|
|
|
|
2005-12-28 09:58:06 -06:00
|
|
|
.IF "$(SYSBASE)"!=""
|
2008-01-04 07:57:39 -06:00
|
|
|
xmlsec_CFLAGS+=-I$(SYSBASE)$/usr$/include
|
2005-12-28 09:58:06 -06:00
|
|
|
.IF "$(COMNAME)"=="sunpro5"
|
|
|
|
xmlsec_CFLAGS+=$(C_RESTRICTIONFLAGS)
|
|
|
|
.ENDIF # "$(COMNAME)"=="sunpro5"
|
2008-01-04 07:57:39 -06:00
|
|
|
.IF "$(EXTRA_CFLAGS)"!=""
|
|
|
|
xmlsec_CFLAGS+=$(EXTRA_CFLAGS)
|
2010-02-19 02:23:25 -06:00
|
|
|
xmlsec_CPPFLAGS+=$(EXTRA_CFLAGS)
|
2008-01-04 07:57:39 -06:00
|
|
|
.ENDIF # "$(EXTRA_CFLAGS)"!=""
|
2005-12-28 09:58:06 -06:00
|
|
|
xmlsec_LDFLAGS+=-L$(SYSBASE)$/usr$/lib
|
2009-09-16 09:49:32 -05:00
|
|
|
.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
|
|
|
|
xmlsec_CPPFLAGS+=$(EXTRA_CDEFS)
|
|
|
|
.ENDIF
|
2005-12-28 09:58:06 -06:00
|
|
|
|
2006-01-31 11:27:29 -06:00
|
|
|
.IF "$(OS)$(COM)"=="LINUXGCC" || "$(OS)$(COM)"=="FREEBSDGCC"
|
2007-10-15 07:04:22 -05:00
|
|
|
xmlsec_LDFLAGS+=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib'
|
2005-05-18 04:10:56 -05:00
|
|
|
.ENDIF # "$(OS)$(COM)"=="LINUXGCC"
|
|
|
|
.IF "$(OS)$(COM)"=="SOLARISC52"
|
2007-10-15 07:04:22 -05:00
|
|
|
xmlsec_LDFLAGS+=-Wl,-R'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib'
|
2005-05-18 04:10:56 -05:00
|
|
|
.ENDIF # "$(OS)$(COM)"=="SOLARISC52"
|
2007-03-27 03:10:13 -05:00
|
|
|
|
2005-12-28 09:58:06 -06:00
|
|
|
LDFLAGS:=$(xmlsec_LDFLAGS)
|
2005-05-18 04:10:56 -05:00
|
|
|
.EXPORT: LDFLAGS
|
2005-12-28 09:58:06 -06:00
|
|
|
|
2005-05-18 04:10:56 -05:00
|
|
|
.ENDIF
|
2005-03-10 10:48:13 -06:00
|
|
|
CONFIGURE_DIR=
|
2009-10-14 11:21:13 -05:00
|
|
|
CONFIGURE_ACTION=.$/configure ADDCFLAGS="$(xmlsec_CFLAGS)" CPPFLAGS="$(xmlsec_CPPFLAGS)"
|
2011-11-03 10:21:20 -05:00
|
|
|
CONFIGURE_FLAGS=--with-pic --disable-shared --disable-crypto-dl --with-libxslt=no --with-gnutls=no LIBXML2LIB="$(LIBXML2LIB)"
|
2011-11-03 09:52:46 -05:00
|
|
|
|
2011-11-03 09:54:16 -05:00
|
|
|
.IF "$(CROSS_COMPILING)"=="YES"
|
|
|
|
CONFIGURE_FLAGS+= --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
|
|
|
|
.ENDIF
|
|
|
|
|
2011-11-03 09:52:46 -05:00
|
|
|
.IF "$(OS)" == "ANDROID"
|
|
|
|
CONFIGURE_FLAGS+=--with-openssl=$(SOLARVER)/$(INPATH)
|
2011-11-03 10:21:20 -05:00
|
|
|
.ELSE
|
|
|
|
CONFIGURE_FLAGS+=--with-openssl=no
|
2011-11-03 09:52:46 -05:00
|
|
|
.ENDIF
|
|
|
|
|
2005-03-30 04:39:02 -06:00
|
|
|
# system-mozilla needs pkgconfig to get the information about nss
|
|
|
|
# FIXME: This also will enable pkg-config usage for libxml2. It *seems*
|
|
|
|
# that the internal headers still are used when they are there but....
|
|
|
|
# (and that pkg-config is allowed to fail...)
|
|
|
|
# I have no real good idea how to get mozilla (nss) pkg-config'ed and libxml2
|
|
|
|
# not... We need mozilla-nss pkg-config'ed since we can *not* just use
|
|
|
|
# --with-nss or parse -pkg-config --libs / cflags mozilla-nss since
|
|
|
|
# the lib may a) be in /usr/lib (Debian) and be not in $with_nss/include
|
|
|
|
# $with_nss/lib.
|
2011-11-02 11:36:27 -05:00
|
|
|
.IF "$(SYSTEM_NSS)" != "YES"
|
2005-03-30 04:39:02 -06:00
|
|
|
CONFIGURE_FLAGS+=--enable-pkgconfig=no
|
|
|
|
.ENDIF
|
2010-07-20 05:46:55 -05:00
|
|
|
BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
|
2005-03-10 10:48:13 -06:00
|
|
|
BUILD_DIR=$(CONFIGURE_DIR)
|
2004-07-12 06:05:30 -05:00
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
|
|
|
|
OUTDIR2INC=include$/xmlsec
|
|
|
|
|
2008-08-18 07:17:56 -05:00
|
|
|
.IF "$(OS)"=="WNT"
|
2007-03-26 10:02:09 -05:00
|
|
|
.IF "$(COM)"=="GCC"
|
2009-03-12 17:38:26 -05:00
|
|
|
OUT2LIB+=src$/.libs$/libxmlsec1.dll.a src$/nss$/.libs$/libxmlsec1-nss.dll.a src$/mscrypto$/.libs$/libxmlsec1-mscrypto.dll.a
|
2009-10-14 11:21:13 -05:00
|
|
|
OUT2BIN+=src$/.libs$/libxmlsec1.dll src$/nss$/.libs$/libxmlsec1-nss.dll src$/mscrypto$/.libs$/libxmlsec1-mscrypto.dll
|
2007-03-26 10:02:09 -05:00
|
|
|
.ELSE
|
2005-03-10 10:48:13 -06:00
|
|
|
OUT2LIB+=win32$/binaries$/*.lib
|
|
|
|
OUT2BIN+=win32$/binaries$/*.dll
|
2007-03-26 10:02:09 -05:00
|
|
|
.ENDIF
|
2011-11-03 09:52:46 -05:00
|
|
|
.ELIF "$(OS)" == "ANDROID"
|
|
|
|
OUT2LIB+=src$/.libs$/libxmlsec1.a src$/openssl/.libs$/libxmlsec1-openssl.a
|
2005-03-10 10:48:13 -06:00
|
|
|
.ELSE
|
2008-08-18 07:17:56 -05:00
|
|
|
OUT2LIB+=src$/.libs$/libxmlsec1.a src$/nss$/.libs$/libxmlsec1-nss.a
|
2005-03-10 10:48:13 -06:00
|
|
|
.ENDIF
|
2004-07-12 06:05:30 -05:00
|
|
|
|
|
|
|
# --- Targets ------------------------------------------------------
|
|
|
|
|
|
|
|
.INCLUDE : set_ext.mk
|
|
|
|
.INCLUDE : target.mk
|
|
|
|
.INCLUDE : tg_ext.mk
|
|
|
|
|
|
|
|
|