annotate src/gtkglextmm.mk @ 3014:b6c7244a2f66

Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
author John W. Eaton <jwe@octave.org>
date Sun, 02 Jun 2013 16:59:24 -0400
parents bcc26ffe9a0f
children 951da75fd09c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2154
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
1222
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
3
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
4 PKG := gtkglextmm
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
6 $(PKG)_CHECKSUM := 5cd489e07517a88262cd6050f723227664e82996
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := gtkglextmm-$($(PKG)_VERSION)
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
8 $(PKG)_FILE := gtkglextmm-$($(PKG)_VERSION).tar.gz
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/gtkglext/gtkglextmm/$($(PKG)_VERSION)/$($(PKG)_FILE)
1774
0f3ee03ef309 fix forgotten dependencies
Volker Grabsch <vog@notjusthosting.com>
parents: 1224
diff changeset
10 $(PKG)_DEPS := gcc gtkglext gtkmm2
1222
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
11
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'http://git.gnome.org/cgit/gtkglextmm/refs/tags' | \
1222
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
14 grep '<a href=' | \
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
15 $(SED) -n "s,.*<a href='[^']*/tag/?id=\\([0-9][^']*\\)'.*,\\1,p" | \
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
16 grep -v '1\.1\.' | \
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
17 head -1
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
18 endef
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
19
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
20 define $(PKG)_BUILD
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
21 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
23 --prefix='$(HOST_PREFIX)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
24 $(ENABLE_SHARED_OR_STATIC)
1222
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
25 $(MAKE) -C '$(1)' -j '$(JOBS)' install \
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
26 bin_PROGRAMS= \
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
27 sbin_PROGRAMS= \
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
28 noinst_PROGRAMS= \
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
29 INFO_DEPS=
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
30
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
31 '$(TARGET)-g++' \
1223
644dfe98f1e8 gtkglextmm improvements: dependencies, stricter flags for test, rely on pkg-config
Tony Theodore <tonyt@logyst.com>
parents: 1222
diff changeset
32 -W -Wall -Werror -pedantic -std=c++0x \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
33 '$(2).cpp' -o '$(HOST_BINDIR)/test-gtkglextmm.exe' \
1223
644dfe98f1e8 gtkglextmm improvements: dependencies, stricter flags for test, rely on pkg-config
Tony Theodore <tonyt@logyst.com>
parents: 1222
diff changeset
34 `'$(TARGET)-pkg-config' gtkglextmm-1.2 --cflags --libs`
1222
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
35 endef