nuke $Id$ in /packages as well
[packages.git] / libs / gsl / Makefile
1
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gsl
11 PKG_VERSION:=1.9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/gsl/
16 PKG_MD5SUM:=81dca4362ae8d2aa1547b7d010881e43
17
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libgsl
23   SECTION:=libs
24   CATEGORY:=Libraries
25   DEPENDS:=@!TARGET_avr32
26   TITLE:=GNU Scientific Library
27   URL:=http://www.gnu.org/software/gsl/
28 endef
29
30 define Package/libgsl/description
31         The library provides a wide range of mathematical routines such as
32         random number generators, special functions and least-squares fitting.
33         There are over 1000 functions in total with an extensive test suite.
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 define Build/Compile
39         rm -rf $(PKG_INSTALL_DIR)
40         mkdir -p $(PKG_INSTALL_DIR)
41         $(MAKE) -C $(PKG_BUILD_DIR) \
42                 $(TARGET_CONFIGURE_OPTS) \
43                 DESTDIR="$(PKG_INSTALL_DIR)" \
44                 all install
45 endef
46
47 define Package/libgsl/install
48         $(INSTALL_DIR) $(1)/usr/lib
49         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsl.so* $(1)/usr/lib/
50         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgslcblas.so* $(1)/usr/lib/
51 endef
52
53 define Build/InstallDev
54         $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
55         $(CP) $(PKG_INSTALL_DIR)/usr/include/gsl/*.h $(1)/usr/include/
56         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsl.* $(1)/usr/lib/
57         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgslcblas.* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,libgsl))