Mercurial > mxe-octave
annotate src/openssl.mk @ 557:ca50d0553062
use winsock2 instead of winsock in packages freetds and openssl (by Mark Brand)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Wed, 02 Dec 2009 12:31:55 +0100 |
parents | cd5388014f49 |
children | 6957b466d45a |
rev | line source |
---|---|
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
1 # Copyright (C) 2009 Mark Brand |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
2 # Volker Grabsch |
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 # Permission is hereby granted, free of charge, to any person obtaining |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 # a copy of this software and associated documentation files (the |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
6 # "Software"), to deal in the Software without restriction, including |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
7 # without limitation the rights to use, copy, modify, merge, publish, |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
8 # distribute, sublicense, and/or sell copies of the Software, and to |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 # permit persons to whom the Software is furnished to do so, subject |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
10 # to the following conditions: |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 # |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 # The above copyright notice and this permission notice shall be |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 # included in all copies or substantial portions of the Software. |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 # |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 # openssl |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 PKG := openssl |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 $(PKG)_IGNORE := |
535
518a59760376
update version of packages curl, fltk, gnutls, gtk, libntlm, openssl, sdl_mixer, sqlite and tiff
Volker Grabsch <vog@notjusthosting.com>
parents:
530
diff
changeset
|
26 $(PKG)_VERSION := 0.9.8l |
518a59760376
update version of packages curl, fltk, gnutls, gtk, libntlm, openssl, sdl_mixer, sqlite and tiff
Volker Grabsch <vog@notjusthosting.com>
parents:
530
diff
changeset
|
27 $(PKG)_CHECKSUM := d3fb6ec89532ab40646b65af179bb1770f7ca28f |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 $(PKG)_SUBDIR := openssl-$($(PKG)_VERSION) |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 $(PKG)_FILE := openssl-$($(PKG)_VERSION).tar.gz |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 $(PKG)_WEBSITE := http://www.openssl.org/ |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 $(PKG)_URL := http://www.openssl.org/source/$($(PKG)_FILE) |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 $(PKG)_URL_2 := ftp://ftp.openssl.org/source/$($(PKG)_FILE) |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 $(PKG)_DEPS := gcc zlib |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 define $(PKG)_UPDATE |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 wget -q -O- 'http://www.openssl.org/source/' | \ |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 grep '<a href="openssl-' | \ |
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' | \ |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
39 head -1 |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
40 endef |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
41 |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
42 define $(PKG)_BUILD |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
43 # workarounds according to |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
44 # http://wagner.pp.ru/~vitus/articles/openssl-mingw.html |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
45 $(SED) 's,^$$IsMK1MF=1.*,,' -i '$(1)'/Configure |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
46 $(SED) 's,static type _hide_##name,type _hide_##name,' -i '$(1)'/e_os2.h |
557
ca50d0553062
use winsock2 instead of winsock in packages freetds and openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
556
diff
changeset
|
47 |
ca50d0553062
use winsock2 instead of winsock in packages freetds and openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
556
diff
changeset
|
48 # use winsock2 instead of winsock |
ca50d0553062
use winsock2 instead of winsock in packages freetds and openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
556
diff
changeset
|
49 $(SED) 's,wsock32,ws2_32,g' -i '$(1)'/Configure |
ca50d0553062
use winsock2 instead of winsock in packages freetds and openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
556
diff
changeset
|
50 find '$(1)' -type f -exec \ |
ca50d0553062
use winsock2 instead of winsock in packages freetds and openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
556
diff
changeset
|
51 $(SED) 's,winsock\.h,winsock2.h,g' -i {} \; |
ca50d0553062
use winsock2 instead of winsock in packages freetds and openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
556
diff
changeset
|
52 |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
53 cd '$(1)' && CC='$(TARGET)-gcc' ./Configure \ |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
54 mingw \ |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
55 zlib \ |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
56 no-shared \ |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
57 --prefix='$(PREFIX)/$(TARGET)' |
556
cd5388014f49
use "$(MAKE)" instead of "make" in package openssl (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
535
diff
changeset
|
58 $(MAKE) -C '$(1)' install -j 1 \ |
530
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
59 CC='$(TARGET)-gcc' \ |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
60 RANLIB='$(TARGET)-ranlib' \ |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
61 AR='$(TARGET)-ar rcu' |
154d7dc4581a
new package: openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
62 endef |