Mercurial > mxe-octave
annotate src/freeimage.mk @ 2832:a3d573500901
update package freeimage
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Sat, 27 Oct 2012 23:06:34 +0200 |
parents | 4d0f3a9da57e |
children | 100e618349f7 |
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' \ | |
25 INCDIR='$(PREFIX)/$(TARGET)/include' \ | |
26 INSTALLDIR='$(PREFIX)/$(TARGET)/lib' | |
27 | |
28 $(MAKE) -C '$(1)' -j '$(JOBS)' -f Makefile.gnu install \ | |
29 CXX='$(TARGET)-g++' \ | |
30 CC='$(TARGET)-gcc' \ | |
31 AR='$(TARGET)-ar' \ | |
32 INCDIR='$(PREFIX)/$(TARGET)/include' \ | |
33 INSTALLDIR='$(PREFIX)/$(TARGET)/lib' | |
34 endef |