Mercurial > mxe-octave
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/librsb.mk Sun Nov 22 19:01:31 2015 -0500 @@ -0,0 +1,35 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := librsb +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.2.0-rc2 +$(PKG)_CHECKSUM := 7ec074260f7d8af5817bd01b9c522216aa96c3dc +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$($(PKG)_FILE) +$(PKG)_DEPS := libgomp + +define $(PKG)_UPDATE + $(WGET) -q -O- 'http://sourceforge.net/projects/librsb/files/librsb/' | \ + $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && automake && ./configure \ + $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ + --prefix='$(HOST_PREFIX)' \ + $(ENABLE_SHARED_OR_STATIC) \ + $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ + --disable-c-examples --disable-fortran-examples \ + --disable-sparse-blas-interface \ + --disable-octave-testing --without-openmp + $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)' + + if [ $(MXE_NATIVE_BUILD) = no ]; then \ + $(INSTALL) -d '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \ + $(INSTALL) -m755 '$(3)$(HOST_BINDIR)/librsb-config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/librsb-config'; \ + fi +endef