Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= xz
  5. PKG_VERSION:= 5.2.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 231ef369982240bb20ed7cffa52bb12a4a297ce6871f480ab85e8a7ba98bf3d6
  8. PKG_DESCR:= compression utility
  9. PKG_SECTION:= app/archive
  10. PKG_DEPENDS:= libxz
  11. PKG_URL:= http://tukaani.org/xz/
  12. PKG_SITES:= http://tukaani.org/xz/
  13. PKG_OPTS:= dev
  14. PKG_LIBNAME:= libxz
  15. PKG_OPTS:= dev
  16. PKG_BB:= 1
  17. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
  18. PKG_SUBPKGS:= XZ LIBXZ
  19. PKGSD_LIBXZ:= xz compression library
  20. PKGSC_LIBXZ:= libs/comp
  21. include $(ADK_TOPDIR)/mk/host.mk
  22. include $(ADK_TOPDIR)/mk/package.mk
  23. $(eval $(call HOST_template,XZ,xz,$(PKG_VERSION)-$(PKG_RELEASE)))
  24. $(eval $(call PKG_template,XZ,xz,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  25. $(eval $(call PKG_template,LIBXZ,libxz,$(PKG_VERSION)-$(PKG_RELEASE),$(PKGSS_LIBXZ),$(PKGSD_LIBXZ),$(PKGSC_LIBXZ),$(PKG_OPTS)))
  26. HOST_CONFIGURE_ARGS+= --disable-shared
  27. xz-install:
  28. $(INSTALL_DIR) $(IDIR_XZ)/usr/bin
  29. $(CP) $(WRKINST)/usr/bin/* $(IDIR_XZ)/usr/bin
  30. libxz-install:
  31. $(INSTALL_DIR) $(IDIR_LIBXZ)/usr/lib
  32. $(CP) $(WRKINST)/usr/lib/liblzma.so* $(IDIR_LIBXZ)/usr/lib
  33. include $(ADK_TOPDIR)/mk/host-bottom.mk
  34. include $(ADK_TOPDIR)/mk/pkg-bottom.mk