Mercurial > mxe-octave
annotate src/gtkglext.mk @ 963:7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Fri, 14 May 2010 00:06:50 +0200 |
parents | |
children | 9c41979b7f21 |
rev | line source |
---|---|
963
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
1 # This file is part of mingw-cross-env. |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
2 # See doc/index.html for further information. |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
3 |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 # GtkGLExt |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 PKG := gtkglext |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
6 $(PKG)_IGNORE := |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
7 $(PKG)_VERSION := 1.2.0 |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
8 $(PKG)_CHECKSUM := db9ce38ee555fd14f55083ec7f4ae30e5338d5cc |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 $(PKG)_SUBDIR := gtkglext-$($(PKG)_VERSION) |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
10 $(PKG)_FILE := gtkglext-$($(PKG)_VERSION).tar.gz |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 $(PKG)_WEBSITE := http://gtkglext.sourceforge.net/ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/gtkglext/gtkglext/$($(PKG)_VERSION)/$($(PKG)_FILE) |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 $(PKG)_DEPS := gtk |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 define $(PKG)_UPDATE |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 wget -q -O- 'http://git.gnome.org/cgit/gtkglext/refs/tags' | \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 grep '<a href=' | \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 $(SED) -n "s,.*<a href='[^']*/tag/?id=\\([0-9][^']*\\)'.*,\\1,p" | \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 grep -v '1\.1\.' | \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 head -1 |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 endef |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 define $(PKG)_BUILD |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 # wine confuses the cross-compiling detection, so set it explicitly |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 $(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure' |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 # don't require x backend for pango |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 $(SED) -i 's,pangox >= 1.0.0,,' '$(1)/configure' |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 cd '$(1)' && ./configure \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 --host='$(TARGET)' \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 --prefix='$(PREFIX)/$(TARGET)' \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 --disable-shared \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 --without-x \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 --disable-gtk-doc \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 --disable-man \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 --disable-glibtest |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 $(SED) -i 's, glib-mkenums, $$(GLIB_MKENUMS),' '$(1)/gdk/Makefile' |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 $(MAKE) -C '$(1)' -j '$(JOBS)' install \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
38 bin_PROGRAMS= \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
39 sbin_PROGRAMS= \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
40 noinst_PROGRAMS= \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
41 INFO_DEPS= \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
42 GDKGLEXT_DEP_CFLAGS='`'$(TARGET)-pkg-config' gtk+-2.0 --cflags`' \ |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
43 GTKGLEXT_DEP_CFLAGS='`'$(TARGET)-pkg-config' gtk+-2.0 --cflags`' |
7834f9cb6042
new package: gtkglext (by Martin Gerhardy)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
44 endef |