Makefile 1.1 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 $(TOPDIR)/rules.mk
  4. PKG_NAME:= squashfs
  5. PKG_VERSION:= 4.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 1b7a781fb4cf8938842279bd3e8ee852
  8. PKG_DESCR:= squashfs filesystem utilities
  9. HOST_BUILDDEP:= xz-host
  10. PKG_SECTION:= 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 $(TOPDIR)/mk/host.mk
  16. include $(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 ${TOPDIR}/mk/host-bottom.mk
  28. include ${TOPDIR}/mk/pkg-bottom.mk