Mercurial > mxe-octave
annotate src/freeimage.mk @ 3700:76745b5dfd81
bump version to 0.0.31
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 28 Aug 2014 16:58:58 -0400 |
parents | 13be64f9f16d |
children | dc3eb553f5e9 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2322
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. |
761 | 3 |
4 PKG := freeimage | |
5 $(PKG)_IGNORE := | |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
6 $(PKG)_VERSION := 3.15.4 |
2832 | 7 $(PKG)_CHECKSUM := 1d30057a127b2016cf9b4f0f8f2ba92547670f96 |
761 | 8 $(PKG)_SUBDIR := FreeImage |
763
0083728da7ee
corrected download URL and version number style of package freeimage
Volker Grabsch <vog@notjusthosting.com>
parents:
761
diff
changeset
|
9 $(PKG)_FILE := FreeImage$(subst .,,$($(PKG)_VERSION)).zip |
0083728da7ee
corrected download URL and version number style of package freeimage
Volker Grabsch <vog@notjusthosting.com>
parents:
761
diff
changeset
|
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/freeimage/Source Distribution/$($(PKG)_VERSION)/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := |
761 | 12 |
13 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
14 $(WGET) -q -O- 'http://sourceforge.net/projects/freeimage/files/Source Distribution/' | \ |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1112
diff
changeset
|
15 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ |
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1112
diff
changeset
|
16 head -1 |
761 | 17 endef |
18 | |
19 define $(PKG)_BUILD | |
767
a685a95bca2b
use $(INSTALL) instead of install in package freeimage
Volker Grabsch <vog@notjusthosting.com>
parents:
764
diff
changeset
|
20 $(SED) -i 's,install ,$(INSTALL) ,' '$(1)'/Makefile.gnu |
a685a95bca2b
use $(INSTALL) instead of install in package freeimage
Volker Grabsch <vog@notjusthosting.com>
parents:
764
diff
changeset
|
21 |
761 | 22 $(MAKE) -C '$(1)' -j '$(JOBS)' -f Makefile.gnu \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
23 CXX='$(MXE_CXX)' \ |
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
24 CC='$(MXE_CC)' \ |
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
25 AR='$(MXE_AR)' \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
26 INCDIR='$(HOST_INCDIR)' \ |
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
27 INSTALLDIR='$(HOST_LIBDIR)' |
761 | 28 |
29 $(MAKE) -C '$(1)' -j '$(JOBS)' -f Makefile.gnu install \ | |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
30 CXX='$(MXE_CXX)' \ |
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
31 CC='$(MXE_CC)' \ |
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
32 AR='$(MXE_AR)' \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
33 INCDIR='$(HOST_INCDIR)' \ |
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
34 INSTALLDIR='$(HOST_LIBDIR)' |
761 | 35 endef |