Mercurial > mxe-octave
annotate src/librsb.mk @ 5893:53a6c7df43f8
Mesa 3D: Update to version 21.1.8.
* src/mesa.mk: Update version and checksum.
* src/mesa-2-uninitialized.patch: Remove file.
* dist-files.mk: Remove file from list.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 16 Sep 2021 22:37:45 +0200 |
parents | 2734b3818171 |
children | 2db7f803d55d |
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 := |
5532
90e3f78b2304
* src/librsb.mk: update to v1.2.0.9
John Donoghue <john.donoghue@ieee.org>
parents:
5201
diff
changeset
|
6 $(PKG)_VERSION := 1.2.0.9 |
90e3f78b2304
* src/librsb.mk: update to v1.2.0.9
John Donoghue <john.donoghue@ieee.org>
parents:
5201
diff
changeset
|
7 $(PKG)_CHECKSUM := b35201470e6691d55c32e941969cd890c1076520 |
4058
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) |
5201
3307ec11073e
skip libgomp dependency if using native gcc
John W. Eaton <jwe@octave.org>
parents:
5131
diff
changeset
|
11 $(PKG)_DEPS := |
3307ec11073e
skip libgomp dependency if using native gcc
John W. Eaton <jwe@octave.org>
parents:
5131
diff
changeset
|
12 ifeq ($(USE_SYSTEM_GCC),no) |
3307ec11073e
skip libgomp dependency if using native gcc
John W. Eaton <jwe@octave.org>
parents:
5131
diff
changeset
|
13 $(PKG)_DEPS += libgomp |
3307ec11073e
skip libgomp dependency if using native gcc
John W. Eaton <jwe@octave.org>
parents:
5131
diff
changeset
|
14 endif |
4058
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
15 |
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
16 define $(PKG)_UPDATE |
4539 | 17 $(WGET) -q -O- 'https://sourceforge.net/projects/librsb/files/' | \ |
18 $(SED) -n 's|.*librsb-\([0-9\.]*[-rc0-9]*\)\.tar.gz\/download.*|\1|p' | \ | |
4058
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
19 head -1 |
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
20 endef |
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
21 |
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
22 define $(PKG)_BUILD |
5579
2734b3818171
Avoid double-free with librsb (bug #58957).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5532
diff
changeset
|
23 # This is a work-around for a bug in version 1.2.0.9. |
2734b3818171
Avoid double-free with librsb (bug #58957).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5532
diff
changeset
|
24 # Remove the following command once this is fixed upstream. |
2734b3818171
Avoid double-free with librsb (bug #58957).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5532
diff
changeset
|
25 $(SED) -i 's/.A.=.rsb__real.*\([,;]\)/1\1/g' $(1)/rsb_eps.c |
2734b3818171
Avoid double-free with librsb (bug #58957).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5532
diff
changeset
|
26 |
4959
506a61f959e4
Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents:
4539
diff
changeset
|
27 cd '$(1)' && autoreconf -fi && ./configure \ |
4058
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
28 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
29 --prefix='$(HOST_PREFIX)' \ |
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
30 $(ENABLE_SHARED_OR_STATIC) \ |
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
31 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
32 --disable-c-examples --disable-fortran-examples \ |
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
33 --disable-sparse-blas-interface \ |
4185
b7c4178dadc4
sparsersb: update patch to latest from sparser repo, enable openmp
John D
parents:
4184
diff
changeset
|
34 --disable-octave-testing |
4058
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
35 $(MAKE) -C '$(1)' -j '$(JOBS)' |
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
36 $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)' |
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
37 |
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
38 if [ $(MXE_NATIVE_BUILD) = no ]; then \ |
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
39 $(INSTALL) -d '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \ |
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
40 $(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
|
41 fi |
4303 | 42 |
43 if [ "$(ENABLE_DEP_DOCS)" == "no" ]; then \ | |
44 rm -rf "$(3)$(HOST_PREFIX)/share/doc/$(PKG)"; \ | |
45 fi | |
4058
c7e31c07c915
of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
46 endef |