annotate src/freeglut.mk @ 641:dab071eac9c0

simplified file markers
author Volker Grabsch <vog@notjusthosting.com>
date Sat, 16 Jan 2010 23:02:02 +0100
parents 3687e599eaf7
children 29f1ba4559ae
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
641
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 565
diff changeset
1 # This file is part of mingw-cross-env.
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 565
diff changeset
2 # See doc/index.html or doc/README for further information.
547
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # freeglut
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 PKG := freeglut
565
3687e599eaf7 ignore the non-downloadable version 2.6.0-rc3 of package freeglut
Volker Grabsch <vog@notjusthosting.com>
parents: 547
diff changeset
6 $(PKG)_IGNORE := 2.6.0-rc3
547
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_VERSION := 2.6.0-rc1
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_CHECKSUM := 0bf40f0134695a95032de8cf8305c13dc8d654e5
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_SUBDIR := freeglut-$(word 1,$(subst -, ,$($(PKG)_VERSION)))
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_FILE := freeglut-$($(PKG)_VERSION).tar.gz
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 $(PKG)_WEBSITE := http://freeglut.sourceforge.net/
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/freeglut/freeglut/$(word 1,$(subst -, ,$($(PKG)_VERSION)))/$($(PKG)_FILE)
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 $(PKG)_DEPS := gcc
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 wget -q -O- 'http://freeglut.svn.sourceforge.net/viewvc/freeglut/tags/?sortby=date' | \
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 grep '<a name="' | \
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 $(SED) -n 's,.*<a name="FG_\([0-9][^"]*\)".*,\1,p' | \
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 $(SED) 's,_RC,-rc,g; s,_,.,g' | \
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 head -1
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 endef
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 define $(PKG)_BUILD
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 $(SED) 's,Windows\.h,windows.h,' -i '$(1)/src/freeglut_internal.h'
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 $(SED) 's,WindowsX\.h,windowsx.h,' -i '$(1)/src/freeglut_internal.h'
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 $(SED) 's,MMSystem\.h,mmsystem.h,' -i '$(1)/src/freeglut_internal.h'
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 $(SED) 's,Windows\.h,windows.h,' -i '$(1)/include/GL/freeglut_std.h'
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 cd '$(1)' && ./configure \
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --host='$(TARGET)' \
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --disable-shared \
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --prefix='$(PREFIX)/$(TARGET)' \
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --enable-replace-glut \
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 --disable-debug \
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 --without-progs \
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 --without-x
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
4b2785ed648e new package: freeglut (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 endef