PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/gsl/
PKG_MD5SUM:=81dca4362ae8d2aa1547b7d010881e43
+PKG_FIXUP:=libtool
+
include $(INCLUDE_DIR)/package.mk
define Package/libgsl
endef
define Build/InstallDev
- mkdir -p $(1)/usr/include
+ $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/include/gsl/*.h $(1)/usr/include/
- mkdir -p $(1)/usr/lib
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsl.{a,so*} $(1)/usr/lib/
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgslcblas.{a,so*} $(1)/usr/lib/
-endef
-
-define Build/UninstallDev
- rm -rf $(1)/usr/include/gsl
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsl.* $(1)/usr/lib/
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgslcblas.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libgsl))