Mercurial > mxe-octave
annotate src/glew.mk @ 285:08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sat, 07 Mar 2009 08:52:50 +0100 |
parents | b94424e6c37f |
children | 85ffa9259036 |
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 |
9f00b34a99dd
new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
3 PKG := glew |
9f00b34a99dd
new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 $(PKG)_VERSION := 1.5.1 |
9f00b34a99dd
new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 $(PKG)_SUBDIR := glew |
9f00b34a99dd
new package: glew (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
6 $(PKG)_FILE := glew-$($(PKG)_VERSION)-src.tgz |
265
5bf9071e67b6
put all package's project websites into Make variables $($(PKG)_WEBSITE)
Volker Grabsch <vog@notjusthosting.com>
parents:
242
diff
changeset
|
7 $(PKG)_WEBSITE := http://glew.sourceforge.net/ |
232
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-' | \ |
266
b94424e6c37f
improved the regexes for package version recognition
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
14 $(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
|
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 |
242
4732cfd0d858
use ranlib to build the library of package glew
Volker Grabsch <vog@notjusthosting.com>
parents:
241
diff
changeset
|
21 $(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
|
22 $(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
|
23 $(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
|
24 $(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
|
25 $(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
|
26 $(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
|
27 $(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
|
28 endef |