Mercurial > mxe-octave
view src/openssl.mk @ 3221:c05da3e2f652
gnuplot.mk: find locally built libiconv for native builds
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 08 Aug 2013 11:44:44 -0400 |
parents | 1fbdd34dd2ef |
children | fa1867a474e4 |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := openssl $(PKG)_IGNORE := $(PKG)_CHECKSUM := 91b684de947cb021ac61b8c51027cc4b63d894ce $(PKG)_SUBDIR := openssl-$($(PKG)_VERSION) $(PKG)_FILE := openssl-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://www.openssl.org/source/$($(PKG)_FILE) $(PKG)_URL_2 := ftp://ftp.openssl.org/source/$($(PKG)_FILE) $(PKG)_DEPS := zlib libgcrypt $(PKG)_CC := $(MXE_CC) -I$(HOST_INCDIR) -L$(HOST_LIBDIR) ifeq ($(MXE_NATIVE_BUILD),yes) ifeq ($(MXE_SYSTEM),msvc) # Specifying -I and -L inteferes with possibly old installation # because they appear before the standard -I. and -L. in the # compilation/link command. These are not needed by clgcc anyway, # so better discard them. $(PKG)_CC := $(MXE_CC) $(PKG)_CONFIGURE := ./Configure $(MXE_SYSTEM) --openssldir='$(HOST_PREFIX)/share/openssl' else $(PKG)_CONFIGURE := ./config endif else $(PKG)_CONFIGURE := ./Configure $(MXE_SYSTEM) $(PKG)_CROSS_COMPILE_MAKE_ARG := CROSS_COMPILE='$(MXE_TOOL_PREFIX)' endif define $(PKG)_UPDATE $(WGET) -q -O- 'http://www.openssl.org/source/' | \ $(SED) -n 's,.*openssl-\([0-9][0-9a-z.]*\)\.tar.*,\1,p' | \ grep -v '^0\.9\.' | \ head -1 endef define $(PKG)_BUILD cd '$(1)' && CC='$($(PKG)_CC)' \ $($(PKG)_CONFIGURE) \ zlib \ shared \ no-capieng \ --prefix='$(HOST_PREFIX)' \ --libdir=lib case $(MXE_SYSTEM) in \ msvc) \ find '$(1)' -name 'Makefile' \ -exec $(SED) -i -e 's,\<LIB\>,_LIB,g' -e 's,\<INCLUDE\>,_INCLUDE,g' {} \; ; \ for f in '$(1)/util/mkdef.pl' '$(1)/Makefile.shared' '$(1)/Makefile' \ '$(1)/engines/Makefile' '$(1)/engines/ccgost/Makefile' \ '$(1)/crypto/dso/dso_win32.c'; do \ $(SED) -i -e 's/@LIBRARY_PREFIX@/$(LIBRARY_PREFIX)/g' \ -e 's/@LIBRARY_SUFFIX@/$(LIBRARY_SUFFIX)/g' "$$f"; \ done ; \ ;; \ esac $(MAKE) -C '$(1)' install -j 1 \ CC='$($(PKG)_CC)' \ RANLIB='$(MXE_RANLIB)' \ $($(PKG)_CROSS_COMPILE_MAKE_ARG) \ AR='$(MXE_AR) rcu' AS='$(MXE_CCAS)' \ MANDIR='$(HOST_PREFIX)/share/man' \ HTMLDIR='$(HOST_PREFIX)/share/doc/openssl' endef