summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-04-10 03:04:07 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-04-10 03:04:07 (GMT)
commit25412c401ce79f4acda07ea8c65d040fd6cba2f4 (patch)
treeb4688cce391a1fb89cffbdaeb516db521a10edf5 /src
parenta2db6a664c4f42d625b41922b6b651113a31ec27 (diff)
downloadmxe-25412c401ce79f4acda07ea8c65d040fd6cba2f4.zip
mxe-25412c401ce79f4acda07ea8c65d040fd6cba2f4.tar.gz
mxe-25412c401ce79f4acda07ea8c65d040fd6cba2f4.tar.bz2
new package: gsl (by Michel Boaventura)
Diffstat (limited to 'src')
-rw-r--r--src/gsl.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/gsl.mk b/src/gsl.mk
new file mode 100644
index 0000000..2ac975c
--- /dev/null
+++ b/src/gsl.mk
@@ -0,0 +1,29 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# gsl
+PKG := gsl
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 1.14
+$(PKG)_CHECKSUM := e1a600e4fe359692e6f0e28b7e12a96681efbe52
+$(PKG)_SUBDIR := gsl-$($(PKG)_VERSION)
+$(PKG)_FILE := gsl-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.gnu.org/software/gsl
+$(PKG)_URL := ftp://ftp.gnu.org/gnu/gsl/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://www.gnu.org/software/gsl' | \
+ grep -o "GSL-[0-9.]*" | \
+ $(SED) -e s/GSL-//g -e s/'.$'//g | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install
+endef