Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/p7zip/Makefile b/p7zip/Makefile
- index a4684a0..34f9551 100644
- --- a/p7zip/Makefile
- +++ b/p7zip/Makefile
- @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
- PKG_NAME:=p7zip
- PKG_VERSION:=16.02
- -PKG_RELEASE:=2
- +PKG_RELEASE:=3
- PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION)_src_all.tar.bz2
- PKG_SOURCE_URL:=@SF/p7zip/p7zip/$(PKG_VERSION)
- @@ -33,9 +33,27 @@ define Package/p7zip/description
- Command line version of 7-zip for POSIX systems.
- endef
- +define Build/Compile
- + $(MAKE) -C $(PKG_BUILD_DIR) \
- + CC="$(TARGET_CC)" \
- + CXX="$(TARGET_CXX)" \
- + LOCAL_LIBS="$(TARGET_LDFLAGS)" \
- + OPTFLAGS="$(TARGET_CFLAGS) -pthread" \
- + DEST_HOME="$(PKG_INSTALL_DIR)/opt" \
- + all4 install
- +endef
- +
- define Package/p7zip/install
- $(INSTALL_DIR) $(1)/opt/bin
- - $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/7za $(1)/opt/bin
- + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/bin/7z{,a,r} $(1)/opt/bin
- + ###
- + $(SED) 's,$(PKG_INSTALL_DIR),,' $(1)/opt/bin/*
- +
- + $(INSTALL_DIR) $(1)/opt/lib/p7zip/Codecs
- + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/lib/p7zip/7z{,a,Con*,r} $(1)/opt/lib/p7zip
- + $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/{Client7z,LzmaCon} $(1)/opt/lib/p7zip
- + $(CP) $(PKG_INSTALL_DIR)/opt/lib/p7zip/7z.so $(1)/opt/lib/p7zip
- + $(CP) $(PKG_INSTALL_DIR)/opt/lib/p7zip/Codecs/*.so $(1)/opt/lib/p7zip/Codecs
- endef
- $(eval $(call BuildPackage,p7zip))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement