Makefile 1.2 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.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= b6c713a8db638e173af53a62d5178640
  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. PKG_SYSTEM_DEPENDS:= ibm-x40
  16. include $(TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,QEMU,$(PKG_NAME),$(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. --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