Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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:= 0.14.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= f9d145d5c09de9f0984ffe9bd1229970
  8. PKG_DESCR:= cpu and system emulator
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= zlib libsdl
  11. PKG_BUILDDEP:= zlib sdl
  12. PKG_URL:= http://wwww.qemu.org/
  13. PKG_SITES:= http://download.savannah.gnu.org/releases/qemu/
  14. PKG_ARCH_DEPENDS:= native x86 x86_64
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,QEMU,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  18. CONFIG_STYLE:= minimal
  19. CONFIGURE_ARGS+= --host-cc=$(CC_FOR_BUILD) \
  20. --disable-user \
  21. --prefix=/usr \
  22. --sysconfdir=/etc \
  23. --bindir=/usr/bin
  24. TARGET_LDFLAGS+= -pthread -lm -lrt
  25. post-install:
  26. $(INSTALL_DIR) $(IDIR_QEMU)/usr/share/qemu
  27. $(INSTALL_DIR) $(IDIR_QEMU)/usr/bin
  28. $(INSTALL_BIN) $(WRKINST)/usr/bin/qemu* \
  29. $(IDIR_QEMU)/usr/bin
  30. $(CP) $(WRKINST)/usr/share/qemu/* \
  31. $(IDIR_QEMU)/usr/share/qemu
  32. include ${TOPDIR}/mk/pkg-bottom.mk