Makefile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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:= qemu
  5. PKG_VERSION:= 1.7.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 32893941d40d052a5e649efcf06aca06
  8. PKG_DESCR:= cpu and system emulator
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= zlib libsdl libpng
  11. PKG_BUILDDEP:= gettext-tiny libiconv-tiny glib-host qemu-host zlib sdl libpng
  12. PKG_URL:= http://wwww.qemu.org/
  13. PKG_SITES:= http://wiki.qemu.org/download/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  15. PKG_ARCH_DEPENDS:= x86 x86_64
  16. include $(TOPDIR)/mk/host.mk
  17. include $(TOPDIR)/mk/package.mk
  18. $(eval $(call HOST_template,QEMU,qemu,$(PKG_VERSION)-${PKG_RELEASE}))
  19. $(eval $(call PKG_template,QEMU,qemu,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  21. TARGET_LDFLAGS+= -pthread -lm -lrt
  22. CONFIG_STYLE:= minimal
  23. CONFIGURE_ARGS+= --host-cc=$(CC_FOR_BUILD) \
  24. --prefix=/usr \
  25. --sysconfdir=/etc \
  26. --enable-kvm \
  27. --disable-docs \
  28. --bindir=/usr/bin
  29. HOST_STYLE:= manual
  30. HOST_CONFIGURE_ARGS+= --host-cc=$(CC_FOR_BUILD) \
  31. --disable-docs \
  32. --disable-werror \
  33. --disable-system \
  34. --disable-sdl
  35. host-configure:
  36. cd ${WRKBUILD}; rm -f config.{cache,status}; \
  37. env ${HOST_CONFIGURE_ENV} \
  38. ${BASH} ${WRKSRC}/${CONFIGURE_PROG} \
  39. ${HOST_CONFIGURE_ARGS} $(MAKE_TRACE)
  40. host-build:
  41. cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  42. ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET} $(MAKE_TRACE)
  43. qemu-hostinstall:
  44. cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  45. DESTDIR='$(STAGING_HOST_DIR)' ${HOST_FAKE_FLAGS} ${HOST_INSTALL_TARGET} $(MAKE_TRACE)
  46. qemu-install:
  47. $(INSTALL_DIR) $(IDIR_QEMU)/usr/share/qemu
  48. $(INSTALL_DIR) $(IDIR_QEMU)/usr/bin
  49. $(INSTALL_BIN) $(WRKINST)/usr/bin/qemu* \
  50. $(IDIR_QEMU)/usr/bin
  51. $(CP) $(WRKINST)/usr/share/qemu/* \
  52. $(IDIR_QEMU)/usr/share/qemu
  53. include ${TOPDIR}/mk/host-bottom.mk
  54. include ${TOPDIR}/mk/pkg-bottom.mk