Mercurial > mxe-octave
annotate src/openssl.mk @ 2997:4f9b72cf7ee7
allow native builds too
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 28 May 2013 17:31:59 -0400 |
parents | ff60fb78ca03 |
children | 100e618349f7 |
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 := |
2515 | 6 $(PKG)_CHECKSUM := 91b684de947cb021ac61b8c51027cc4b63d894ce |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
7 $(PKG)_SUBDIR := openssl-$($(PKG)_VERSION) |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
8 $(PKG)_FILE := openssl-$($(PKG)_VERSION).tar.gz |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 $(PKG)_URL := http://www.openssl.org/source/$($(PKG)_FILE) |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
10 $(PKG)_URL_2 := ftp://ftp.openssl.org/source/$($(PKG)_FILE) |
558
6957b466d45a
add missing dependency libgcrypt to package openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
557
diff
changeset
|
11 $(PKG)_DEPS := gcc zlib libgcrypt |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
2997 | 13 ifeq ($(MXE_NATIVE_BUILD),yes) |
14 $(PKG)_CONFIGURE := ./config | |
15 else | |
16 $(PKG)_CONFIGURE := ./Configure $(MXE_SYSTEM) | |
17 $(PKG)_CROSS_COMPILE_MAKE_ARG := CROSS_COMPILE='$(TARGET)-' | |
18 endif | |
19 | |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2515
diff
changeset
|
21 $(WGET) -q -O- 'http://www.openssl.org/source/' | \ |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 $(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
|
23 grep -v '^0\.9\.' | \ |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 head -1 |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 endef |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 define $(PKG)_BUILD |
2997 | 28 cd '$(1)' && CC='$(MXE_CC) -I$(MXE_INCDIR) -L$(MXE_LIBDIR)' \ |
29 $($(PKG)_CONFIGURE) \ | |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 zlib \ |
2923
ff60fb78ca03
build shared openssl libraries
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
31 shared \ |
848 | 32 no-capieng \ |
2997 | 33 --prefix='$(PREFIX)/$(TARGET)' \ |
34 --libdir=lib | |
556
cd5388014f49
use "$(MAKE)" instead of "make" in package openssl (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
535
diff
changeset
|
35 $(MAKE) -C '$(1)' install -j 1 \ |
2997 | 36 CC='$(MXE_CC) -I$(MXE_INCDIR) -L$(MXE_LIBDIR)' \ |
37 RANLIB='$(MXE_RANLIB)' \ | |
38 $($(PKG)_CROSS_COMPILE_MAKE_ARG) \ | |
39 AR='$(MXE_AR) rcu' | |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
40 endef |