annotate src/gtkglextmm.mk @ 2855:47558e958113

Allow static/shared libraries to be configured in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Thu, 15 Nov 2012 16:11:45 -0500
parents 4d0f3a9da57e
children 100e618349f7
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 \
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
22 --host='$(TARGET)' \
2154
58ea60dca393 packages gtk2 gtkglextmm pango: replace wine workaround patches
Mark Brand <mabrand@mabrand.nl>
parents: 1774
diff changeset
23 --build="`config.guess`" \
1222
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
24 --prefix='$(PREFIX)/$(TARGET)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
25 $(ENABLE_SHARED_OR_STATIC)
1222
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
26 $(MAKE) -C '$(1)' -j '$(JOBS)' install \
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
27 bin_PROGRAMS= \
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
28 sbin_PROGRAMS= \
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
29 noinst_PROGRAMS= \
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
30 INFO_DEPS=
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
31
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
32 '$(TARGET)-g++' \
1223
644dfe98f1e8 gtkglextmm improvements: dependencies, stricter flags for test, rely on pkg-config
Tony Theodore <tonyt@logyst.com>
parents: 1222
diff changeset
33 -W -Wall -Werror -pedantic -std=c++0x \
1224
94c202bc05a4 package gtkglextmm: correct test output name
Mark Brand <mabrand@mabrand.nl>
parents: 1223
diff changeset
34 '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/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
35 `'$(TARGET)-pkg-config' gtkglextmm-1.2 --cflags --libs`
1222
6f81712a503b new package gtkglextmm
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
36 endef