Mercurial > mxe-octave
annotate src/freeimage.mk @ 2365:b5321bdec505
Move full package names from src/*.mk into package list (index.html)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 29 Mar 2012 21:41:44 +0200 |
parents | 99516e73b368 |
children | 4d0f3a9da57e |
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 := | |
2322 | 6 $(PKG)_CHECKSUM := 083ef40a1734e33cc34c55ba87019bf5cce9ca4a |
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 | |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1112
diff
changeset
|
13 wget -q -O- 'http://sourceforge.net/projects/freeimage/files/Source Distribution/' | \ |
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 |