Mercurial > mxe-octave
annotate src/openssl.mk @ 3659:6a4cb2cb4493
build-gawk: update to build in native mingw
* src/build-gawk.patch: add native mingw build rule
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 09 Jul 2014 19:56:54 -0400 |
parents | d91b22004b80 |
children | 09ad2f46e0b7 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2279
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
3 |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 PKG := openssl |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
3582
d91b22004b80
openssl: update to 1.0.1g
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
6 $(PKG)_VERSION := 1.0.1g |
d91b22004b80
openssl: update to 1.0.1g
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
7 $(PKG)_CHECKSUM := b28b3bcb1dc3ee7b55024c9f795be60eb3183e3c |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := openssl-$($(PKG)_VERSION) |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 $(PKG)_FILE := openssl-$($(PKG)_VERSION).tar.gz |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
10 $(PKG)_URL := http://www.openssl.org/source/$($(PKG)_FILE) |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 $(PKG)_URL_2 := ftp://ftp.openssl.org/source/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
12 $(PKG)_DEPS := zlib libgcrypt |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 |
2997 | 14 ifeq ($(MXE_NATIVE_BUILD),yes) |
3113
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
15 ifeq ($(MXE_SYSTEM),msvc) |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
16 # Specifying -I and -L inteferes with possibly old installation |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
17 # because they appear before the standard -I. and -L. in the |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
18 # compilation/link command. These are not needed by clgcc anyway, |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
19 # so better discard them. |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
20 $(PKG)_CC := $(MXE_CC) |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
21 $(PKG)_CONFIGURE := ./Configure $(MXE_SYSTEM) --openssldir='$(HOST_PREFIX)/share/openssl' |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
22 else |
3262
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3113
diff
changeset
|
23 $(PKG)_CC := $(MXE_CC) -I$(HOST_INCDIR) -L$(HOST_LIBDIR) |
3113
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
24 $(PKG)_CONFIGURE := ./config |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
25 endif |
2997 | 26 else |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
27 $(PKG)_CROSS_COMPILE_MAKE_ARG := CROSS_COMPILE='$(MXE_TOOL_PREFIX)' |
3262
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3113
diff
changeset
|
28 $(PKG)_CC := $(MXE_CC) |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3113
diff
changeset
|
29 ifeq ($(TARGET),x86_64-w64-mingw32) |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3113
diff
changeset
|
30 $(PKG)_CONFIGURE := ./Configure mingw64 |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3113
diff
changeset
|
31 else |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3113
diff
changeset
|
32 $(PKG)_CONFIGURE := ./Configure $(MXE_SYSTEM) |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3113
diff
changeset
|
33 endif |
2997 | 34 endif |
35 | |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2515
diff
changeset
|
37 $(WGET) -q -O- 'http://www.openssl.org/source/' | \ |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
38 $(SED) -n 's,.*openssl-\([0-9][0-9a-z.]*\)\.tar.*,\1,p' | \ |
1033
dd28c487a6b1
improved version recognition of packages: boost freetype gcc glew libgee mingwrt openssl pcre pdcurses w32api wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
1027
diff
changeset
|
39 grep -v '^0\.9\.' | \ |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
40 head -1 |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
41 endef |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
42 |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
43 define $(PKG)_BUILD |
3113
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
44 cd '$(1)' && CC='$($(PKG)_CC)' \ |
2997 | 45 $($(PKG)_CONFIGURE) \ |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
46 zlib \ |
2923
ff60fb78ca03
build shared openssl libraries
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
47 shared \ |
848 | 48 no-capieng \ |
3262
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3113
diff
changeset
|
49 --prefix='$(HOST_PREFIX)' |
3113
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
50 case $(MXE_SYSTEM) in \ |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
51 msvc) \ |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
52 find '$(1)' -name 'Makefile' \ |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
53 -exec $(SED) -i -e 's,\<LIB\>,_LIB,g' -e 's,\<INCLUDE\>,_INCLUDE,g' {} \; ; \ |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
54 for f in '$(1)/util/mkdef.pl' '$(1)/Makefile.shared' '$(1)/Makefile' \ |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
55 '$(1)/engines/Makefile' '$(1)/engines/ccgost/Makefile' \ |
3328
ef8e004ebb93
Remove duplicate bn_print.3 man page from build.
Rik <rik@octave.org>
parents:
3293
diff
changeset
|
56 '$(1)/crypto/dso/dso_win32.c'; do \ |
3113
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
57 $(SED) -i -e 's/@LIBRARY_PREFIX@/$(LIBRARY_PREFIX)/g' \ |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
58 -e 's/@LIBRARY_SUFFIX@/$(LIBRARY_SUFFIX)/g' "$$f"; \ |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
59 done ; \ |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
60 ;; \ |
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
61 esac |
556
cd5388014f49
use "$(MAKE)" instead of "make" in package openssl (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
535
diff
changeset
|
62 $(MAKE) -C '$(1)' install -j 1 \ |
3113
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
63 CC='$($(PKG)_CC)' \ |
3262
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3113
diff
changeset
|
64 $($(PKG)_CROSS_COMPILE_MAKE_ARG) \ |
2997 | 65 RANLIB='$(MXE_RANLIB)' \ |
3113
1fbdd34dd2ef
[MSVC] enable OpenSSL compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
66 AR='$(MXE_AR) rcu' AS='$(MXE_CCAS)' \ |
3328
ef8e004ebb93
Remove duplicate bn_print.3 man page from build.
Rik <rik@octave.org>
parents:
3293
diff
changeset
|
67 MANDIR='$(HOST_PREFIX)/share/man' \ |
ef8e004ebb93
Remove duplicate bn_print.3 man page from build.
Rik <rik@octave.org>
parents:
3293
diff
changeset
|
68 HTMLDIR='$(HOST_PREFIX)/share/doc/openssl' \ |
ef8e004ebb93
Remove duplicate bn_print.3 man page from build.
Rik <rik@octave.org>
parents:
3293
diff
changeset
|
69 INSTALL_PREFIX='$(3)' |
ef8e004ebb93
Remove duplicate bn_print.3 man page from build.
Rik <rik@octave.org>
parents:
3293
diff
changeset
|
70 |
ef8e004ebb93
Remove duplicate bn_print.3 man page from build.
Rik <rik@octave.org>
parents:
3293
diff
changeset
|
71 # Remove duplicate man page to "bn_internal.3" |
ef8e004ebb93
Remove duplicate bn_print.3 man page from build.
Rik <rik@octave.org>
parents:
3293
diff
changeset
|
72 rm -f $(3)$(HOST_PREFIX)/share/man/man3/bn_print.3 |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
73 endef |