Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. # $OpenBSD: Makefile,v 1.165 2017/05/31 08:08:15 espie Exp $
  2. USE_WXNEEDED= Yes
  3. ONLY_FOR_ARCHS= aarch64 amd64 arm i386 powerpc sparc64
  4. COMMENT= multi system emulator
  5. DISTNAME= qemu-2.9.0
  6. REVISION= 1
  7. CATEGORIES= emulators
  8. MASTER_SITES= http://wiki.qemu.org/download/
  9. EXTRACT_SUFX= .tar.bz2
  10. HOMEPAGE= http://www.qemu.org/
  11. MAINTAINER= Brad Smith <brad@comstyle.com>
  12. # GPLv2, LGPLv2 and BSD
  13. PERMIT_PACKAGE_CDROM= Yes
  14. WANTLIB= SDL X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama \
  15. Xrandr Xrender atk-1.0 bz2 c cairo curl drm epoxy fdt \
  16. fontconfig freetype gbm gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 \
  17. glib-2.0 gnutls gobject-2.0 gthread-2.0 gtk-x11-2.0 intl \
  18. iscsi jpeg lzo2 m ncursesw nettle nfs pango-1.0 pangocairo-1.0 \
  19. pangoft2-1.0 pixman-1 png pthread pthread-stubs ssh2 \
  20. usb-1.0 util vte z ${LIBECXX}
  21. # Using gcc4 for the TLS emulation layer
  22. COMPILER = gcc
  23. MODULES= lang/python
  24. BUILD_DEPENDS= devel/gettext-tools \
  25. textproc/texi2html
  26. LIB_DEPENDS= archivers/bzip2 \
  27. archivers/lzo2 \
  28. devel/dtc>=1.4.4 \
  29. devel/gettext \
  30. devel/glib2 \
  31. devel/libiscsi \
  32. devel/libnfs \
  33. devel/libusb1>=1.0.20 \
  34. devel/sdl \
  35. devel/vte \
  36. graphics/jpeg \
  37. graphics/png \
  38. net/curl \
  39. security/gnutls \
  40. security/libnettle \
  41. security/libssh2 \
  42. x11/gtk+2
  43. MODPY_RUNDEP= No
  44. MAKE_ENV= V=1
  45. FAKE_FLAGS= qemu_confdir=${PREFIX}/share/examples/qemu
  46. EXTRA_CFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include
  47. EXTRA_LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib
  48. # until the system headers are fixed properly.
  49. EXTRA_CFLAGS+= -Wno-redundant-decls
  50. EXTRA_CFLAGS+= -DTIME_MAX=LLONG_MAX
  51. USE_GMAKE= Yes
  52. CONFIGURE_STYLE=simple
  53. CONFIGURE_ARGS= --prefix=${PREFIX} \
  54. --sysconfdir=${SYSCONFDIR} \
  55. --mandir=${PREFIX}/man \
  56. --python=${MODPY_BIN} \
  57. --smbd=${LOCALBASE}/sbin/smbd \
  58. --cc="${CC}" \
  59. --cxx="${CXX}" \
  60. --host-cc="${CC}" \
  61. --extra-cflags="${EXTRA_CFLAGS}" \
  62. --extra-ldflags="${EXTRA_LDFLAGS}" \
  63. --disable-bsd-user \
  64. --enable-curses \
  65. --disable-gcrypt \
  66. --disable-smartcard \
  67. --disable-spice \
  68. --disable-usb-redir \
  69. --disable-vnc-sasl
  70. FLAVORS= debug
  71. FLAVOR?=
  72. .if ${FLAVOR:Mdebug}
  73. CFLAGS+= -O0
  74. CONFIGURE_ARGS+=--enable-debug
  75. INSTALL_STRIP=
  76. .else
  77. CONFIGURE_ARGS+=--disable-debug-info
  78. .endif
  79. TEST_TARGET= check
  80. post-install:
  81. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/qemu
  82. ${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifup \
  83. ${PREFIX}/share/examples/qemu
  84. ${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifdown \
  85. ${PREFIX}/share/examples/qemu
  86. .include <bsd.port.mk>