Mercurial > mxe-octave
view src/nettle.mk @ 3061:f8299bb6c872
Initial support for native MSVC compilation.
* add MSVC support files: compiler wrappers and support libraries
* adapt libiconv to work with MSVC
* adapt gettext to work with MSVC
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Mon, 17 Jun 2013 22:43:11 -0400 |
parents | 5ef49fb3299d |
children | 9c56d108c141 |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := nettle $(PKG)_IGNORE := $(PKG)_CHECKSUM := 1061754feb69dd01354525fa7eb6154b28ac887d $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://www.lysator.liu.se/~nisse/archive/$($(PKG)_FILE) $(PKG)_DEPS := gmp define $(PKG)_UPDATE $(WGET) -q -O- 'http://www.lysator.liu.se/~nisse/archive/' | \ $(SED) -n 's,.*nettle-\([0-9][^>]*\)\.tar.*,\1,p' | \ grep -v 'pre' | \ tail -1 endef define $(PKG)_BUILD cd '$(1)' && ./configure \ $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ $(ENABLE_SHARED_OR_STATIC) \ --prefix='$(HOST_PREFIX)' $(MAKE) -C '$(1)' -j '$(JOBS)' getopt.o getopt1.o $(MAKE) -C '$(1)' -j '$(JOBS)' $(MAKE) -C '$(1)' -j 1 install if [ -d $(HOST_PREFIX)/lib64 ]; then \ $(INSTALL) -d $(HOST_LIBDIR)/pkgconfig; \ mv $(HOST_PREFIX)/lib64/pkgconfig/* $(HOST_LIBDIR)/pkgconfig; \ rmdir $(HOST_PREFIX)/lib64/pkgconfig; \ mv $(HOST_PREFIX)/lib64/* $(HOST_LIBDIR); \ fi endef