Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.0.5
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 19d924e066b6fff0bc9d1981b4e53196
  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. xz-install:
  27. ${INSTALL_DIR} ${IDIR_XZ}/usr/bin
  28. ${CP} ${WRKINST}/usr/bin/* ${IDIR_XZ}/usr/bin
  29. libxz-install:
  30. ${INSTALL_DIR} ${IDIR_LIBXZ}/usr/lib
  31. ${CP} ${WRKINST}/usr/lib/liblzma.so* ${IDIR_LIBXZ}/usr/lib
  32. include ${ADK_TOPDIR}/mk/host-bottom.mk
  33. include ${ADK_TOPDIR}/mk/pkg-bottom.mk