Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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:= squashfs
  5. PKG_VERSION:= 4.2
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= d9e0195aa922dbb665ed322b9aaa96e04a476ee650f39bbeadb0d00b24022e96
  8. PKG_DESCR:= squashfs filesystem utilities
  9. HOST_BUILDDEP:= xz-host
  10. PKG_SECTION:= sys/fs
  11. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=squashfs/}
  12. DISTFILES:= ${PKG_NAME}${PKG_VERSION}.tar.gz
  13. WRKDIST= ${WRKDIR}/$(PKG_NAME)${PKG_VERSION}
  14. PKG_CFLINE_SQUASHFS:= depends on ADK_HOST_ONLY
  15. include $(ADK_TOPDIR)/mk/host.mk
  16. include $(ADK_TOPDIR)/mk/package.mk
  17. $(eval $(call HOST_template,SQUASHFS,squashfs,$(PKG_VERSION)-${PKG_RELEASE}))
  18. HOST_STYLE:= manual
  19. HOST_MAKE_FLAGS+= XATTR_SUPPORT=0 XZ_SUPPORT=1 EXTRA_LDFLAGS=$(LDFLAGS_FOR_BUILD)
  20. host-build:
  21. (cd ${WRKBUILD}/squashfs-tools && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  22. ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET})
  23. squashfs-hostinstall:
  24. ${INSTALL_DIR} ${STAGING_HOST_DIR}/usr/bin
  25. ${INSTALL_BIN} ${WRKBUILD}/squashfs-tools/mksquashfs \
  26. ${STAGING_HOST_DIR}/usr/bin
  27. include ${ADK_TOPDIR}/mk/host-bottom.mk
  28. include ${ADK_TOPDIR}/mk/pkg-bottom.mk