annotate src/openssl.mk @ 3012:100e618349f7

Improve handling of prefix directories by defining HOST_PREFIX and BUILD_TOOLS_PREFIX variables in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Sun, 02 Jun 2013 10:31:04 -0400
parents 4f9b72cf7ee7
children b6c7244a2f66
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
3925643b4743 update package openssl
Mark Brand <mabrand@mabrand.nl>
parents: 2450
diff changeset
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
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2923
diff changeset
13 ifeq ($(MXE_NATIVE_BUILD),yes)
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2923
diff changeset
14 $(PKG)_CONFIGURE := ./config
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2923
diff changeset
15 else
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2923
diff changeset
16 $(PKG)_CONFIGURE := ./Configure $(MXE_SYSTEM)
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2923
diff changeset
17 $(PKG)_CROSS_COMPILE_MAKE_ARG := CROSS_COMPILE='$(TARGET)-'
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2923
diff changeset
18 endif
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2923
diff changeset
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
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2923
diff changeset
28 cd '$(1)' && CC='$(MXE_CC) -I$(MXE_INCDIR) -L$(MXE_LIBDIR)' \
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2923
diff changeset
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
4fef75e26b44 upgrade package openssl
Mark Brand <mabrand@mabrand.nl>
parents: 820
diff changeset
32 no-capieng \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
33 --prefix='$(HOST_PREFIX)' \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2923
diff changeset
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
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2923
diff changeset
36 CC='$(MXE_CC) -I$(MXE_INCDIR) -L$(MXE_LIBDIR)' \
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2923
diff changeset
37 RANLIB='$(MXE_RANLIB)' \
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2923
diff changeset
38 $($(PKG)_CROSS_COMPILE_MAKE_ARG) \
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2923
diff changeset
39 AR='$(MXE_AR) rcu'
530
154d7dc4581a new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 endef