Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.6.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 3a897d722457c5a895cd6ac79a28fda0
  8. PKG_DESCR:= cpu and system emulator
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= zlib libsdl libpng
  11. PKG_BUILDDEP:= 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:= native 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-system \
  33. --disable-sdl
  34. host-configure:
  35. cd ${WRKBUILD}; rm -f config.{cache,status}; \
  36. env ${HOST_CONFIGURE_ENV} \
  37. ${BASH} ${WRKSRC}/${CONFIGURE_PROG} \
  38. ${HOST_CONFIGURE_ARGS} $(MAKE_TRACE)
  39. host-build:
  40. cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  41. ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET} $(MAKE_TRACE)
  42. qemu-hostinstall:
  43. cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  44. DESTDIR='$(STAGING_HOST_DIR)' ${HOST_FAKE_FLAGS} ${HOST_INSTALL_TARGET} $(MAKE_TRACE)
  45. qemu-install:
  46. $(INSTALL_DIR) $(IDIR_QEMU)/usr/share/qemu
  47. $(INSTALL_DIR) $(IDIR_QEMU)/usr/bin
  48. $(INSTALL_BIN) $(WRKINST)/usr/bin/qemu* \
  49. $(IDIR_QEMU)/usr/bin
  50. $(CP) $(WRKINST)/usr/share/qemu/* \
  51. $(IDIR_QEMU)/usr/share/qemu
  52. include ${TOPDIR}/mk/host-bottom.mk
  53. include ${TOPDIR}/mk/pkg-bottom.mk