annotate src/freeimage.mk @ 2349:f48c5b085a38

Move $(PKG)_VERSION and $(PKG)_WEBSITE from src/*.mk into doc/index.html
author Volker Grabsch <vog@notjusthosting.com>
date Thu, 29 Mar 2012 11:07:07 +0200
parents f653602a0500
children 99516e73b368
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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.
761
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
2 # See doc/index.html for further information.
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
3
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
4 # FreeImage
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
5 PKG := freeimage
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
6 $(PKG)_IGNORE :=
2322
742861a24bd2 update package freeimage
Mark Brand <mabrand@mabrand.nl>
parents: 2250
diff changeset
7 $(PKG)_CHECKSUM := 083ef40a1734e33cc34c55ba87019bf5cce9ca4a
761
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
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)
761
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
11 $(PKG)_DEPS := gcc
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
12
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
13 define $(PKG)_UPDATE
1466
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1112
diff changeset
14 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
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
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
17 endef
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
18
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
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
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
22 $(MAKE) -C '$(1)' -j '$(JOBS)' -f Makefile.gnu \
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
23 CXX='$(TARGET)-g++' \
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
24 CC='$(TARGET)-gcc' \
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
25 AR='$(TARGET)-ar' \
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
26 INCDIR='$(PREFIX)/$(TARGET)/include' \
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
27 INSTALLDIR='$(PREFIX)/$(TARGET)/lib'
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
28
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
29 $(MAKE) -C '$(1)' -j '$(JOBS)' -f Makefile.gnu install \
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
30 CXX='$(TARGET)-g++' \
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
31 CC='$(TARGET)-gcc' \
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
32 AR='$(TARGET)-ar' \
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
33 INCDIR='$(PREFIX)/$(TARGET)/include' \
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
34 INSTALLDIR='$(PREFIX)/$(TARGET)/lib'
a15ef607412d new package: freeimage
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
35 endef