view src/libf2c.mk @ 3419:e7e29aeea726

Add octave forge 'fl-core' package * Makefile.in: Add of-fl-core. * build_packages.m: Add install of fl-core-1.0.3.tar.gz * dist-files: Add of-fl-core.mk, of-fl-core-1-fixes.patch. * index.html: Added of-fl-core-package. * src/of-fl-core.mk: New file. * src/of-fl-core-1-fixes.patch: New file.
author John Donoghue <john.donoghue@ieee.org>
date Mon, 13 Jan 2014 18:26:59 -0500
parents 5ef49fb3299d
children 13be64f9f16d
line wrap: on
line source

# This file is part of MXE.
# See index.html for further information.

PKG             := libf2c
$(PKG)_IGNORE   :=
$(PKG)_CHECKSUM := f71066b41695738dec2261de71eaf02a1aaffe8b
$(PKG)_SUBDIR   :=
$(PKG)_FILE     := $(PKG).zip
$(PKG)_URL      := http://www.netlib.org/f2c/$($(PKG)_FILE)
$(PKG)_DEPS     :=

define $(PKG)_UPDATE
    echo 1
endef

define $(PKG)_BUILD
    $(MAKE) -C '$(1)' -j '$(JOBS)' -f makefile.u \
        CC=$(MXE_CC) \
        AR=$(MXE_AR) \
        LD=$(MXE_LD) \
        RANLIB=$(MXE_RANLIB) \
        CFLAGS='-O -DUSE_CLOCK'
    $(INSTALL) -m644 '$(1)/libf2c.a' '$(HOST_LIBDIR)'
    $(INSTALL) -m644 '$(1)/f2c.h'    '$(HOST_INCDIR)'
endef