2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/gsl/
17 PKG_MD5SUM:=81dca4362ae8d2aa1547b7d010881e43
19 include $(INCLUDE_DIR)/package.mk
24 TITLE:=GNU Scientific Library
25 URL:=http://www.gnu.org/software/gsl/
28 define Package/libgsl/description
29 The library provides a wide range of mathematical routines such as
30 random number generators, special functions and least-squares fitting.
31 There are over 1000 functions in total with an extensive test suite.
35 rm -rf $(PKG_INSTALL_DIR)
36 mkdir -p $(PKG_INSTALL_DIR)
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 $(TARGET_CONFIGURE_OPTS) \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
43 define Package/libgsl/install
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsl.so.* $(1)/usr/lib/
48 define Build/InstallDev
49 mkdir -p $(1)/usr/include
50 $(CP) $(PKG_INSTALL_DIR)/usr/include/gsl/*.h $(1)/usr/include/
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsl.{a,so*} $(1)/usr/lib/
55 define Build/UninstallDev
56 rm -rf $(1)/usr/include/gsl
59 $(eval $(call BuildPackage,libgsl))