annotate src/librsb.mk @ 4058:c7e31c07c915

of-sparsrb: add new package * src/librsb.mk: new file * src/librsb-1-nobzero.patch: new patch * src/of-sparsersb.mk: new file * src/of-sparsersb-1-cross-build.patch: new patch * src/libgomp.mk: install libgomp.spec to build tools * build_packages.m: add sparserb package * index.html: add librsb and of-sparsersb packages * Makefile.in: add sparsersb package to of-
author John Donoghue <john.donoghue@ieee.org>
date Sun, 22 Nov 2015 19:01:31 -0500
parents
children fc1bee8ff2d4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4058
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
1 # This file is part of MXE.
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
2 # See index.html for further information.
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
3
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
4 PKG := librsb
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
6 $(PKG)_VERSION := 1.2.0-rc2
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
7 $(PKG)_CHECKSUM := 7ec074260f7d8af5817bd01b9c522216aa96c3dc
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$($(PKG)_FILE)
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
11 $(PKG)_DEPS := libgomp
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
12
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
13 define $(PKG)_UPDATE
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
14 $(WGET) -q -O- 'http://sourceforge.net/projects/librsb/files/librsb/' | \
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
15 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
16 head -1
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
17 endef
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
18
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
19 define $(PKG)_BUILD
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
20 cd '$(1)' && automake && ./configure \
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
21 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
22 --prefix='$(HOST_PREFIX)' \
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
23 $(ENABLE_SHARED_OR_STATIC) \
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
24 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
25 --disable-c-examples --disable-fortran-examples \
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
26 --disable-sparse-blas-interface \
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
27 --disable-octave-testing --without-openmp
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
28 $(MAKE) -C '$(1)' -j '$(JOBS)'
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
29 $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)'
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
30
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
31 if [ $(MXE_NATIVE_BUILD) = no ]; then \
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
32 $(INSTALL) -d '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
33 $(INSTALL) -m755 '$(3)$(HOST_BINDIR)/librsb-config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/librsb-config'; \
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
34 fi
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
35 endef