annotate src/gsl.mk @ 2988:aca8511e7751

qt.mk: link to correct files in bin directory
author John W. Eaton <jwe@octave.org>
date Thu, 16 May 2013 13:32:57 -0400
parents 47558e958113
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: 2329
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.
837
ff7c924750f8 new package: gsl (by Michel Boaventura)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
ff7c924750f8 new package: gsl (by Michel Boaventura)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := gsl
ff7c924750f8 new package: gsl (by Michel Boaventura)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
ff7c924750f8 new package: gsl (by Michel Boaventura)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_CHECKSUM := e1a600e4fe359692e6f0e28b7e12a96681efbe52
838
d11f82bd2ef5 small corrections for package gsl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 837
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
d11f82bd2ef5 small corrections for package gsl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 837
diff changeset
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
d11f82bd2ef5 small corrections for package gsl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 837
diff changeset
9 $(PKG)_URL := http://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE)
837
ff7c924750f8 new package: gsl (by Michel Boaventura)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_DEPS := gcc
ff7c924750f8 new package: gsl (by Michel Boaventura)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
ff7c924750f8 new package: gsl (by Michel Boaventura)
Volker Grabsch <vog@notjusthosting.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.savannah.gnu.org/gitweb/?p=$(PKG).git;a=tags' | \
839
db4ac7cade9b improved version recognition of package gsl
Volker Grabsch <vog@notjusthosting.com>
parents: 838
diff changeset
14 grep '<a class="list subject"' | \
840
77ecd36317c2 corrected version recognition regexes of many packages
Volker Grabsch <vog@notjusthosting.com>
parents: 839
diff changeset
15 $(SED) -n 's,.*<a[^>]*>[^0-9>]*\([0-9][^<]*\)<.*,\1,p' | \
837
ff7c924750f8 new package: gsl (by Michel Boaventura)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 head -1
ff7c924750f8 new package: gsl (by Michel Boaventura)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
ff7c924750f8 new package: gsl (by Michel Boaventura)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
ff7c924750f8 new package: gsl (by Michel Boaventura)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
ff7c924750f8 new package: gsl (by Michel Boaventura)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 cd '$(1)' && ./configure \
ff7c924750f8 new package: gsl (by Michel Boaventura)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 --host='$(TARGET)' \
2153
e4c83fa61a5b replaced $(BUILD) with a more direct and less brittle construct
Volker Grabsch <vog@notjusthosting.com>
parents: 2148
diff changeset
22 --build="`config.guess`" \
838
d11f82bd2ef5 small corrections for package gsl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 837
diff changeset
23 --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
24 $(ENABLE_SHARED_OR_STATIC)
837
ff7c924750f8 new package: gsl (by Michel Boaventura)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 $(MAKE) -C '$(1)' -j '$(JOBS)'
838
d11f82bd2ef5 small corrections for package gsl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 837
diff changeset
26 $(MAKE) -C '$(1)' -j 1 install
2329
466e77a78672 Fix annoying whitespaces at EOL
Volker Grabsch <vog@notjusthosting.com>
parents: 2153
diff changeset
27
1926
c57294700cfd add test program to package gsl
Tony Theodore <tonyt@logyst.com>
parents: 840
diff changeset
28 '$(TARGET)-gcc' \
c57294700cfd add test program to package gsl
Tony Theodore <tonyt@logyst.com>
parents: 840
diff changeset
29 -W -Wall -Werror -ansi -pedantic \
c57294700cfd add test program to package gsl
Tony Theodore <tonyt@logyst.com>
parents: 840
diff changeset
30 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gsl.exe' \
c57294700cfd add test program to package gsl
Tony Theodore <tonyt@logyst.com>
parents: 840
diff changeset
31 -lgsl
837
ff7c924750f8 new package: gsl (by Michel Boaventura)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 endef