annotate src/glew.mk @ 306:85ffa9259036

validate downloads using SHA-1 checksums
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 05 Apr 2009 14:00:17 +0200
parents 08a32251156c
children 413750a629be
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
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
3 PKG := glew
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
4 $(PKG)_VERSION := 1.5.1
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
5 $(PKG)_CHECKSUM := a94113169d46487ccda1bb2fde68fa1803bdf009
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
6 $(PKG)_SUBDIR := glew
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
7 $(PKG)_FILE := glew-$($(PKG)_VERSION)-src.tgz
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
8 $(PKG)_WEBSITE := http://glew.sourceforge.net/
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/glew/$($(PKG)_FILE)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
10 $(PKG)_DEPS := gcc
232
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 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
14 grep 'glew-' | \
266
b94424e6c37f improved the regexes for package version recognition
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
15 $(SED) -n 's,.*glew-\([0-9][^>]*\)-src\.tgz.*,\1,p' | \
232
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 head -1
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 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
21 cd '$(1)' && $(TARGET)-ar cr libGLEW.a glew.o
242
4732cfd0d858 use ranlib to build the library of package glew
Volker Grabsch <vog@notjusthosting.com>
parents: 241
diff changeset
22 $(TARGET)-ranlib '$(1)/libGLEW.a'
285
08a32251156c portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
23 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
08a32251156c portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
24 $(INSTALL) -m644 '$(1)/libGLEW.a' '$(PREFIX)/$(TARGET)/lib/'
08a32251156c portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
25 $(INSTALL) -m644 '$(1)/libGLEW.a' '$(PREFIX)/$(TARGET)/lib/libglew32s.a'
08a32251156c portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
26 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
08a32251156c portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
27 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include/GL'
08a32251156c portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
28 $(INSTALL) -m644 '$(1)/include/GL/glew.h' '$(1)/include/GL/wglew.h' '$(PREFIX)/$(TARGET)/include/GL/'
232
9f00b34a99dd new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 endef