Mercurial > mxe-octave
annotate src/libgeotiff.mk @ 5531:eae508c12529
Add build rule for build-octave (bug #49503).
* src/build-octave.mk: Add new build rule for build-octave which can be used for
cross-building binary packages that depend on Octave as a build tool.
* dist-files.mk: Add new file to list.
* index.html: Add new package to list.
* src/of-communications.mk, src/of-image.mk, src/of-mapping.mk,
src/of-optiminterp.mk, src/of-sparsersb.mk, src/of-statistics.mk,
src/of-windows.mk: Add optional dependency on build-octave.
* configure.ac: Add new configure switch "--disable-system-octave" that is
needed to build the build-octave package.
* Makefile.in: Add variable "USE_SYSTEM_OCTAVE". Exclude build-octave from the
default build tools and build it only if a package explicitly depends on it.
Display warning about missing native Octave version only if necessary.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 08 Sep 2020 23:04:38 +0200 |
parents | 6bfbb9142336 |
children | e023f9b4d61c |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2188
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
306
diff
changeset
|
3 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
4 PKG := libgeotiff |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
420
diff
changeset
|
5 $(PKG)_IGNORE := |
5380
6bfbb9142336
libgeotif: update to v1.6.0
John Donoghue <john.donoghue@ieee.org>
parents:
5106
diff
changeset
|
6 $(PKG)_VERSION := 1.6.0 |
6bfbb9142336
libgeotif: update to v1.6.0
John Donoghue <john.donoghue@ieee.org>
parents:
5106
diff
changeset
|
7 $(PKG)_CHECKSUM := fa24069938ead4126d77b65a38784e1a9609e65b |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
8 $(PKG)_SUBDIR := libgeotiff-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
9 $(PKG)_FILE := libgeotiff-$($(PKG)_VERSION).tar.gz |
1456
c92395bc3a88
fix download URLs of package: gdal geos libgeotiff proj tiff
Volker Grabsch <vog@notjusthosting.com>
parents:
958
diff
changeset
|
10 $(PKG)_URL := http://download.osgeo.org/geotiff/libgeotiff/$($(PKG)_FILE) |
c92395bc3a88
fix download URLs of package: gdal geos libgeotiff proj tiff
Volker Grabsch <vog@notjusthosting.com>
parents:
958
diff
changeset
|
11 $(PKG)_URL_2 := ftp://ftp.remotesensing.org/geotiff/libgeotiff/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
12 $(PKG)_DEPS := zlib jpeg tiff proj |
167
320bffc1d13c
translated package: libgeotiff
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 |
320bffc1d13c
translated package: libgeotiff
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2434
diff
changeset
|
15 $(WGET) -q -O- 'http://trac.osgeo.org/geotiff/' | \ |
167
320bffc1d13c
translated package: libgeotiff
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 $(SED) -n 's,.*libgeotiff-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
320bffc1d13c
translated package: libgeotiff
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 head -1 |
320bffc1d13c
translated package: libgeotiff
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 endef |
320bffc1d13c
translated package: libgeotiff
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 |
320bffc1d13c
translated package: libgeotiff
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 define $(PKG)_BUILD |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
21 $(SED) -i 's,/usr/local,@prefix@,' '$(1)/bin/Makefile.in' |
169
6337081fd7fa
bugfix in the build rules of packages 'gd' and 'libgeotiff'
Volker Grabsch <vog@notjusthosting.com>
parents:
167
diff
changeset
|
22 touch '$(1)/configure' |
4033
6a4b0052211f
libgeotiff: call autoreconf on build files, fix typo in patch
John Donoghue
parents:
3627
diff
changeset
|
23 cd '$(1)' && autoreconf -fi |
167
320bffc1d13c
translated package: libgeotiff
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
25 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
26 $(ENABLE_SHARED_OR_STATIC) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
27 --prefix='$(HOST_PREFIX)' \ |
3627
9e2ff7672dc2
libgeotiff: fix shared lib build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
28 --with-zlib=$(HOST_PREFIX) \ |
9e2ff7672dc2
libgeotiff: fix shared lib build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
29 --with-jpeg=$(HOST_PREFIX) \ |
9e2ff7672dc2
libgeotiff: fix shared lib build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
30 --with-libtiff=$(HOST_PREFIX) \ |
9e2ff7672dc2
libgeotiff: fix shared lib build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
31 --with-proj=$(HOST_PREFIX) |
9e2ff7672dc2
libgeotiff: fix shared lib build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
32 |
9e2ff7672dc2
libgeotiff: fix shared lib build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
33 $(MAKE) -C '$(1)' -j $(JOBS) |
9e2ff7672dc2
libgeotiff: fix shared lib build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
34 $(MAKE) -C '$(1)' -j 1 install |
167
320bffc1d13c
translated package: libgeotiff
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 endef |