Mercurial > mxe-octave
view src/nettle.mk @ 2855:47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 15 Nov 2012 16:11:45 -0500 |
parents | 769024253d0e |
children | 8d89eccf60a6 |
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 := gcc 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 \ --host='$(TARGET)' \ --build="`config.guess`" \ $(ENABLE_SHARED_OR_STATIC) \ --prefix='$(PREFIX)/$(TARGET)' $(MAKE) -C '$(1)' -j '$(JOBS)' getopt.o getopt1.o $(MAKE) -C '$(1)' -j '$(JOBS)' install endef