fixed libgsl
authorMirko Vogt <mirko@openwrt.org>
Wed, 3 Dec 2008 22:56:42 +0000 (22:56 +0000)
committerMirko Vogt <mirko@openwrt.org>
Wed, 3 Dec 2008 22:56:42 +0000 (22:56 +0000)
SVN-Revision: 13503

libs/gsl/Makefile

index b83e65f9af6ba2ebc48b36400213c85abcf1e7ee..cbb93b89df8e4224a43659adca28bf342266a6c7 100644 (file)
@@ -16,6 +16,8 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/gsl/
 PKG_MD5SUM:=81dca4362ae8d2aa1547b7d010881e43
 
+PKG_FIXUP:=libtool
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/libgsl
@@ -50,15 +52,10 @@ define Package/libgsl/install
 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))