Mercurial > mxe-octave
annotate src/freeimage.mk @ 3012:100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
BUILD_TOOLS_PREFIX variables in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 10:31:04 -0400 |
parents | a3d573500901 |
children | b6c7244a2f66 |
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 := | |
2832 | 6 $(PKG)_CHECKSUM := 1d30057a127b2016cf9b4f0f8f2ba92547670f96 |
761 | 7 $(PKG)_SUBDIR := FreeImage |
763
0083728da7ee
corrected download URL and version number style of package freeimage
Volker Grabsch <vog@notjusthosting.com>
parents:
761
diff
changeset
|
8 $(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
|
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/freeimage/Source Distribution/$($(PKG)_VERSION)/$($(PKG)_FILE) |
761 | 10 $(PKG)_DEPS := gcc |
11 | |
12 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
13 $(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
|
14 $(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
|
15 head -1 |
761 | 16 endef |
17 | |
18 define $(PKG)_BUILD | |
767
a685a95bca2b
use $(INSTALL) instead of install in package freeimage
Volker Grabsch <vog@notjusthosting.com>
parents:
764
diff
changeset
|
19 $(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
|
20 |
761 | 21 $(MAKE) -C '$(1)' -j '$(JOBS)' -f Makefile.gnu \ |
22 CXX='$(TARGET)-g++' \ | |
23 CC='$(TARGET)-gcc' \ | |
24 AR='$(TARGET)-ar' \ | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2832
diff
changeset
|
25 INCDIR='$(HOST_PREFIX)/include' \ |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2832
diff
changeset
|
26 INSTALLDIR='$(HOST_PREFIX)/lib' |
761 | 27 |
28 $(MAKE) -C '$(1)' -j '$(JOBS)' -f Makefile.gnu install \ | |
29 CXX='$(TARGET)-g++' \ | |
30 CC='$(TARGET)-gcc' \ | |
31 AR='$(TARGET)-ar' \ | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2832
diff
changeset
|
32 INCDIR='$(HOST_PREFIX)/include' \ |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2832
diff
changeset
|
33 INSTALLDIR='$(HOST_PREFIX)/lib' |
761 | 34 endef |