2 # Copyright (C) 2008-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@GNU
/gsl
16 PKG_MD5SUM
:=81dca4362ae8d2aa1547b7d010881e43
21 include $(INCLUDE_DIR
)/package.mk
26 DEPENDS
:=@
!TARGET_avr32
27 TITLE
:=GNU Scientific Library
28 URL
:=http
://www.gnu.org
/software
/gsl
/
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.
37 TARGET_CFLAGS
+= $(FPIC
)
39 define Package
/libgsl
/install
40 $(INSTALL_DIR
) $(1)/usr
/lib
41 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgsl.so
* $(1)/usr
/lib
/
42 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgslcblas.so
* $(1)/usr
/lib
/
45 define Build
/InstallDev
46 $(INSTALL_DIR
) $(1)/usr
/include/gsl
$(1)/usr
/lib
$(1)/usr
/lib
/pkgconfig
47 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/gsl
/*.h
$(1)/usr
/include/gsl
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgsl.
* $(1)/usr
/lib
/
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgslcblas.
* $(1)/usr
/lib
/
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/gsl.
pc $(1)/usr
/lib
/pkgconfig
/
53 $(eval
$(call BuildPackage
,libgsl
))