aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/qemu-devel/Makefile
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2013-07-07 01:09:57 +0800
committernox <nox@FreeBSD.org>2013-07-07 01:09:57 +0800
commit8df0aaea9e448402557127dc1c53d8a0fff2e6b0 (patch)
tree126519caec35570c2a7030897103f05084a95184 /emulators/qemu-devel/Makefile
parent736041dd1a656b9f29e60f881ad6ced1df0d706b (diff)
downloadfreebsd-ports-gnome-8df0aaea9e448402557127dc1c53d8a0fff2e6b0.tar.gz
freebsd-ports-gnome-8df0aaea9e448402557127dc1c53d8a0fff2e6b0.tar.zst
freebsd-ports-gnome-8df0aaea9e448402557127dc1c53d8a0fff2e6b0.zip
- Update to 1.5.1, announce message is here:
https://lists.gnu.org/archive/html/qemu-devel/2013-06/msg04798.html - Simplify bsd-user ld script handling. [1] - Make STATIC_LINK work again. - Add GTK knob. - Neither graphical UI can be built static, set IGNORE in that case. - Properly fix AES_* link errors by #defining those functions as QEMU_AES_* to avoid conflicts with AES_* in -lcrypto needed (at least) by -lcurl. - Add back CURL knob in the process. - Fix "Warning: vlan %d is not connected to host network" when using pcap. - Switch to USES= gmake. - Note: I did not backport sson's latest bsd-user patches which he has now in a github tree based on qemu git head, tho I have a seperate port of that tree on redports: svn co https://svn.redports.org/nox/emulators/qemu-devel-sson/ See also: https://wiki.freebsd.org/QemuUserModeHowTo Submitted by: emaste [1]
Diffstat (limited to 'emulators/qemu-devel/Makefile')
-rw-r--r--emulators/qemu-devel/Makefile38
1 files changed, 29 insertions, 9 deletions
diff --git a/emulators/qemu-devel/Makefile b/emulators/qemu-devel/Makefile
index dcf7ae10c107..b548682fc6b1 100644
--- a/emulators/qemu-devel/Makefile
+++ b/emulators/qemu-devel/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= qemu
-PORTVERSION= 1.5.0
+PORTVERSION= 1.5.1
CATEGORIES= emulators
MASTER_SITES= http://wiki.qemu.org/download/:release \
LOCAL/nox:snapshot
@@ -13,12 +13,11 @@ DIST_SUBDIR= qemu/${PORTVERSION}
MAINTAINER= nox@FreeBSD.org
COMMENT= QEMU CPU Emulator - development version
-LIB_DEPENDS= pixman-1:${PORTSDIR}/x11/pixman \
- curl:${PORTSDIR}/ftp/curl
+LIB_DEPENDS= pixman-1:${PORTSDIR}/x11/pixman
HAS_CONFIGURE= yes
USE_BZIP2= yes
-USE_GMAKE= yes
+USES= gmake
USE_PERL5_BUILD= yes
USE_PYTHON_BUILD= yes
USE_GNOME+= glib20
@@ -30,8 +29,8 @@ ONLY_FOR_ARCHS= amd64 i386 powerpc # XXX someone wants to debug sparc64 hosts?
CONFLICTS_INSTALL= qemu-[0-9]*
MAKE_JOBS_SAFE= yes
-OPTIONS_DEFINE= SAMBA X11 OPENGL GNUTLS SASL JPEG PNG CDROM_DMA PCAP \
- USBREDIR GNS3 X86_TARGETS BSD_USER \
+OPTIONS_DEFINE= SAMBA X11 GTK OPENGL GNUTLS SASL JPEG PNG CURL \
+ CDROM_DMA PCAP USBREDIR GNS3 X86_TARGETS BSD_USER \
STATIC_LINK DOCS
SAMBA_DESC= samba dependency (for -smb)
GNUTLS_DESC= gnutls dependency (vnc encryption)
@@ -46,7 +45,7 @@ GNS3_DESC= gns3 patches (promiscuous multicast)
X86_TARGETS_DESC= Don't build non-x86 system targets
BSD_USER_DESC= Also build bsd-user targets (for testing)
STATIC_LINK_DESC= Statically link the executables
-OPTIONS_DEFAULT=X11 OPENGL GNUTLS SASL JPEG PNG CDROM_DMA PCAP
+OPTIONS_DEFAULT=X11 GTK OPENGL GNUTLS SASL JPEG PNG CDROM_DMA CURL PCAP
.include <bsd.port.options.mk>
@@ -109,11 +108,16 @@ CONFIGURE_ARGS+= --prefix=${PREFIX} --cc=${CC} --enable-docs \
--extra-cflags=-I${WRKSRC}\ -I${LOCALBASE}/include\ -DPREFIX=\\\"${PREFIX}\\\"
.if empty(PORT_OPTIONS:MX11)
-CONFIGURE_ARGS+= --disable-gtk
CONFIGURE_ARGS+= --disable-sdl
-PLIST_SUB+= GTK="@comment "
.else
+CONFIGURE_ARGS+= --enable-sdl
USE_SDL= sdl
+.endif
+
+.if empty(PORT_OPTIONS:MGTK)
+CONFIGURE_ARGS+= --disable-gtk
+PLIST_SUB+= GTK="@comment "
+.else
USE_GNOME+= gtk20 vte
USES+= gettext
PLIST_SUB+= GTK=""
@@ -143,6 +147,12 @@ CONFIGURE_ARGS+= --disable-vnc-png
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png
.endif
+.if empty(PORT_OPTIONS:MCURL)
+CONFIGURE_ARGS+= --disable-curl
+.else
+LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
+.endif
+
.if empty(PORT_OPTIONS:MOPENGL)
CONFIGURE_ARGS+= --disable-glx
.else
@@ -161,6 +171,9 @@ CONFIGURE_ARGS+= --enable-pcap
.endif
.if ${PORT_OPTIONS:MSTATIC_LINK}
+.if ${PORT_OPTIONS:MGTK} || ${PORT_OPTIONS:MX11}
+IGNORE= X11 ui cannot be built static
+.endif
CONFIGURE_ARGS+= --static
.endif
@@ -196,14 +209,21 @@ CONFIGURE_ARGS+= --sparc_cpu=v9
.if ${OSVERSION} < 900033
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
+CONFIGURE_ENV+= LD=${LOCALBASE}/bin/ld
CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
.endif
+# -lprocstat actually only _needs_ -lelf after r249666 or r250870 (MFC)
+# but it shouldn't matter much
post-patch:
.if ${OSVERSION} < 900000
@${REINPLACE_CMD} -e '/LIBS/s|-lprocstat||' ${WRKSRC}/configure
+.else
+ @${REINPLACE_CMD} -e '/LIBS/s|-lprocstat|-lprocstat -lelf|' \
+ ${WRKSRC}/configure
.endif
+ @${REINPLACE_CMD} -e '/libs_qga=/s|glib_libs|glib_libs -lintl|' ${WRKSRC}/configure
.if ${PORT_OPTIONS:MPCAP}
@cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/pcap-patch
.endif