Makefile 1.2 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 $(TOPDIR)/rules.mk
  4. PKG_NAME:= qemu
  5. PKG_VERSION:= 1.3.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= a4030ddd2ba324152a97d65d3c0b247d
  8. PKG_DESCR:= cpu and system emulator
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= zlib libsdl libpng
  11. PKG_BUILDDEP:= 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/package.mk
  17. $(eval $(call PKG_template,QEMU,qemu,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  19. CONFIG_STYLE:= minimal
  20. CONFIGURE_ARGS+= --host-cc=$(CC_FOR_BUILD) \
  21. --prefix=/usr \
  22. --sysconfdir=/etc \
  23. --enable-kvm \
  24. --bindir=/usr/bin
  25. TARGET_LDFLAGS+= -pthread -lm -lrt
  26. qemu-install:
  27. $(INSTALL_DIR) $(IDIR_QEMU)/usr/share/qemu
  28. $(INSTALL_DIR) $(IDIR_QEMU)/usr/bin
  29. $(INSTALL_BIN) $(WRKINST)/usr/bin/qemu* \
  30. $(IDIR_QEMU)/usr/bin
  31. $(CP) $(WRKINST)/usr/share/qemu/* \
  32. $(IDIR_QEMU)/usr/share/qemu
  33. include ${TOPDIR}/mk/pkg-bottom.mk