annotate src/glew.mk @ 232:9f00b34a99dd

new package: glew (by Martin Lambers)
author Volker Grabsch <vog@notjusthosting.com>
date Sat, 14 Feb 2009 21:39:02 +0100
parents
children c8d896255782
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
232
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # GLEW
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2 # http://glew.sourceforge.net/
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := glew
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_VERSION := 1.5.1
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_SUBDIR := glew
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_FILE := glew-$($(PKG)_VERSION)-src.tgz
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/glew/$($(PKG)_FILE)
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_DEPS := gcc
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 define $(PKG)_UPDATE
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=67586&package_id=67942' | \
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 grep 'glew-' | \
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 $(SED) -n 's,.*glew-\([1-9][^>]*\)-src\.tgz.*,\1,p' | \
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 head -1
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 endef
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 define $(PKG)_BUILD
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 cd '$(1)' && $(TARGET)-gcc -O2 -DGLEW_STATIC -Iinclude -c -o glew.o src/glew.c
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 cd '$(1)' && $(TARGET)-ar cr libGLEW.a glew.o
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 install -d '$(PREFIX)/$(TARGET)/lib'
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 install -m644 '$(1)/libGLEW.a' '$(PREFIX)/$(TARGET)/lib/'
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 install -d '$(PREFIX)/$(TARGET)/include'
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 install -d '$(PREFIX)/$(TARGET)/include/GL'
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 install -m644 '$(1)/include/GL/glew.h' '$(1)/include/GL/wglew.h' '$(PREFIX)/$(TARGET)/include/GL/'
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 endef