[packages] curl: fix handling of '\0' character in domain names of x509 certificates
[openwrt/svn-archive/archive.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 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gsl
12 PKG_VERSION:=1.9
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/gsl/
17 PKG_MD5SUM:=81dca4362ae8d2aa1547b7d010881e43
18
19 PKG_FIXUP:=libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libgsl
24 SECTION:=libs
25 CATEGORY:=Libraries
26 DEPENDS:=@!TARGET_avr32
27 TITLE:=GNU Scientific Library
28 URL:=http://www.gnu.org/software/gsl/
29 endef
30
31 define Package/libgsl/description
32 The library provides a wide range of mathematical routines such as
33 random number generators, special functions and least-squares fitting.
34 There are over 1000 functions in total with an extensive test suite.
35 endef
36
37 TARGET_CFLAGS += $(FPIC)
38
39 define Build/Compile
40 rm -rf $(PKG_INSTALL_DIR)
41 mkdir -p $(PKG_INSTALL_DIR)
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 $(TARGET_CONFIGURE_OPTS) \
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 all install
46 endef
47
48 define Package/libgsl/install
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsl.so* $(1)/usr/lib/
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgslcblas.so* $(1)/usr/lib/
52 endef
53
54 define Build/InstallDev
55 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/gsl/*.h $(1)/usr/include/
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsl.* $(1)/usr/lib/
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgslcblas.* $(1)/usr/lib/
59 endef
60
61 $(eval $(call BuildPackage,libgsl))