freebsd-ports/emulators/qemu/files/patch-Makefile
Juergen Lock 7052bc7d68 - Fix libcurl probe for emulators/qemu and add proper dependencies and knobs.
- Bump PORTREVISIONs.

PR:		ports/145591
Submitted by:	gcooper
2010-04-11 11:42:38 +00:00

38 lines
916 B
Text

Index: qemu/Makefile
@@ -25,7 +25,11 @@
LDFLAGS += -static
endif
ifdef BUILD_DOCS
+ifdef NOPORTDOCS
+DOCS=qemu.1 qemu-img.1 qemu-nbd.8
+else
DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8
+endif
else
DOCS=
endif
@@ -190,6 +190,8 @@
obj-$(CONFIG_XEN) += xen_backend.o xen_devconfig.o
obj-$(CONFIG_XEN) += xen_console.o xenfb.o xen_disk.o xen_nic.o
+QEMU_CFLAGS+=$(CURL_CFLAGS)
+
LIBS+=$(CURL_LIBS)
cocoa.o: cocoa.m
@@ -260,13 +264,13 @@
endif
install-doc: $(DOCS)
+ifndef NOPORTDOCS
$(INSTALL_DIR) "$(DESTDIR)$(docdir)"
$(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)"
+endif
ifndef CONFIG_WIN32
$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
$(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1"
- $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8"
- $(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8"
endif
install: all $(if $(BUILD_DOCS),install-doc)