libarchive: cleanup & fixes
authorNicolas Thill <redacted>
Tue, 26 Aug 2014 08:00:12 +0000 (10:00 +0200)
committerNicolas Thill <redacted>
Tue, 26 Aug 2014 08:00:12 +0000 (10:00 +0200)
Disable unused stuff explicitely, cleanup package def, only install useful devel stuff

Signed-off-by: Nicolas Thill <redacted>
libs/libarchive/Makefile

index 1693cd01538210456b28f4c555211ec0d06be037..91bbe5462ea704fa7b38e8ca7e2a773aaf59efa7 100644 (file)
@@ -22,33 +22,32 @@ PKG_FIXUP:=autoreconf
 
 include $(INCLUDE_DIR)/package.mk
 
-define Package/libarchive/Default
+define Package/libarchive
   SECTION:=libs
   CATEGORY:=Libraries
-  URL:=http://www.libarchive.org
-endef
-
-define Package/libarchive
-  $(call Package/libarchive/Default)
   DEPENDS:=+libopenssl +zlib
   TITLE:=Multi-format archive and compression library
-endef
-
-define Package/libarchive/description
- Multi-format archive and compression library.
+  URL:=http://www.libarchive.org/
 endef
 
 CONFIGURE_ARGS += \
+       --disable-bsdcpio \
+       --disable-bsdtar \
        --disable-acl \
        --disable-xattr \
        --without-bz2lib \
+       --without-lzma \
+       --without-lzmadec \
        --without-lzo2 \
        --without-nettle \
+       --without-expat \
        --without-xml2
 
 define Build/InstallDev
-       $(INSTALL_DIR) $(1)
-       $(CP) $(PKG_INSTALL_DIR)/* $(1)/
+       $(INSTALL_DIR) $(1)/usr/include
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
 endef
 
 define Package/libarchive/install
git clone https://git.99rst.org/PROJECT