comparison src/openssl.mk @ 530:154d7dc4581a

new package: openssl (by Mark Brand)
author Volker Grabsch <vog@notjusthosting.com>
date Mon, 09 Nov 2009 03:08:25 +0100
parents
children 518a59760376
comparison
equal deleted inserted replaced
529:aade1560187d 530:154d7dc4581a
1 # Copyright (C) 2009 Mark Brand
2 # Volker Grabsch
3 #
4 # Permission is hereby granted, free of charge, to any person obtaining
5 # a copy of this software and associated documentation files (the
6 # "Software"), to deal in the Software without restriction, including
7 # without limitation the rights to use, copy, modify, merge, publish,
8 # distribute, sublicense, and/or sell copies of the Software, and to
9 # permit persons to whom the Software is furnished to do so, subject
10 # to the following conditions:
11 #
12 # The above copyright notice and this permission notice shall be
13 # included in all copies or substantial portions of the Software.
14 #
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23 # openssl
24 PKG := openssl
25 $(PKG)_IGNORE :=
26 $(PKG)_VERSION := 0.9.8k
27 $(PKG)_CHECKSUM := 3ba079f91d3c1ec90a36dcd1d43857165035703f
28 $(PKG)_SUBDIR := openssl-$($(PKG)_VERSION)
29 $(PKG)_FILE := openssl-$($(PKG)_VERSION).tar.gz
30 $(PKG)_WEBSITE := http://www.openssl.org/
31 $(PKG)_URL := http://www.openssl.org/source/$($(PKG)_FILE)
32 $(PKG)_URL_2 := ftp://ftp.openssl.org/source/$($(PKG)_FILE)
33 $(PKG)_DEPS := gcc zlib
34
35 define $(PKG)_UPDATE
36 wget -q -O- 'http://www.openssl.org/source/' | \
37 grep '<a href="openssl-' | \
38 $(SED) -n 's,.*openssl-\([0-9][0-9a-z.]*\)\.tar.*,\1,p' | \
39 head -1
40 endef
41
42 define $(PKG)_BUILD
43 # workarounds according to
44 # http://wagner.pp.ru/~vitus/articles/openssl-mingw.html
45 $(SED) 's,^$$IsMK1MF=1.*,,' -i '$(1)'/Configure
46 $(SED) 's,static type _hide_##name,type _hide_##name,' -i '$(1)'/e_os2.h
47 cd '$(1)' && CC='$(TARGET)-gcc' ./Configure \
48 mingw \
49 zlib \
50 no-shared \
51 --prefix='$(PREFIX)/$(TARGET)'
52 make -C '$(1)' install -j 1 \
53 CC='$(TARGET)-gcc' \
54 RANLIB='$(TARGET)-ranlib' \
55 AR='$(TARGET)-ar rcu'
56 endef