aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2014-01-26 22:49:41 +0800
committernox <nox@FreeBSD.org>2014-01-26 22:49:41 +0800
commit08023fb1e15e5c363448b5f6407d66a86c032e5f (patch)
treeb2cb07646c30ff4c1e2ae8275e1c74964c5ce6ca /emulators
parent19700af93cc9d1d91f8a4d61d117d595a79ab108 (diff)
downloadfreebsd-ports-gnome-08023fb1e15e5c363448b5f6407d66a86c032e5f.tar.gz
freebsd-ports-gnome-08023fb1e15e5c363448b5f6407d66a86c032e5f.tar.zst
freebsd-ports-gnome-08023fb1e15e5c363448b5f6407d66a86c032e5f.zip
- Update LIB_DEPENDS.
- Rewrite NOPORTDOCS. - Stagify.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/qemu/Makefile22
-rw-r--r--emulators/qemu/pkg-plist2
2 files changed, 9 insertions, 15 deletions
diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile
index 9d3fc8117984..31c65f667a70 100644
--- a/emulators/qemu/Makefile
+++ b/emulators/qemu/Makefile
@@ -19,7 +19,6 @@ USES= gmake perl5
USE_PERL5= build
PATCH_STRIP= -p1
MAKE_ENV+= BSD_MAKE="${MAKE}"
-MAN1= qemu.1 qemu-img.1
ONLY_FOR_ARCHS= amd64 i386
CONFLICTS= qemu-devel-[0-9]*
@@ -38,7 +37,6 @@ ADD_AUDIO_DESC= Emulate more audio hardware (experimental!)
ALL_TARGETS_DESC= Also build non-x86 targets
OPTIONS_DEFAULT= SDL GNUTLS CURL PCAP GNS3 CDROM_DMA ALL_TARGETS
-NO_STAGE= yes
.include <bsd.port.pre.mk>
.if empty(PORT_OPTIONS:MALL_TARGETS)
@@ -61,13 +59,13 @@ USE_SDL= sdl
.if empty(PORT_OPTIONS:MGNUTLS)
CONFIGURE_ARGS+= --disable-vnc-tls
.else
-LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
+LIB_DEPENDS+= libgnutls.so:${PORTSDIR}/security/gnutls
.endif
.if empty(PORT_OPTIONS:MCURL)
CONFIGURE_ARGS+= --disable-curl
.else
-LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
+LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl
.endif
.if ${PORT_OPTIONS:MPCAP}
@@ -92,10 +90,11 @@ RUN_DEPENDS+= kqemu-kmod-devel>=1.4.0pre1:${PORTSDIR}/emulators/kqemu-kmod-devel
CONFIGURE_ARGS+= --disable-kqemu
.endif
-.if defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
+BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html
+.else
MAKE_ARGS+= NOPORTDOCS=1
.else
-BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html
.endif
.if !defined(STRIP) || ${STRIP} == ""
@@ -154,14 +153,7 @@ post-configure:
.endif
post-install:
- @${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifup.sample ${PREFIX}/etc
- @${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifdown.sample ${PREFIX}/etc
- @if [ ! -f ${PREFIX}/etc/qemu-ifup ]; then \
- ${CP} -p ${PREFIX}/etc/qemu-ifup.sample ${PREFIX}/etc/qemu-ifup ; \
- fi
- @if [ ! -f ${PREFIX}/etc/qemu-ifdown ]; then \
- ${CP} -p ${PREFIX}/etc/qemu-ifdown.sample ${PREFIX}/etc/qemu-ifdown ; \
- fi
- @${CAT} ${PKGMESSAGE}
+ @${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifup.sample ${STAGEDIR}${PREFIX}/etc
+ @${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifdown.sample ${STAGEDIR}${PREFIX}/etc
.include <bsd.port.post.mk>
diff --git a/emulators/qemu/pkg-plist b/emulators/qemu/pkg-plist
index f6e1d8e229f7..77668ab1bd2f 100644
--- a/emulators/qemu/pkg-plist
+++ b/emulators/qemu/pkg-plist
@@ -16,6 +16,8 @@ bin/qemu-img
%%ALLTARGETS%%bin/qemu-system-sparc
%%ALLTARGETS%%bin/qemu-system-sparc64
bin/qemu-system-x86_64
+man/man1/qemu.1.gz
+man/man1/qemu-img.1.gz
@unexec if cmp -s %D/etc/qemu-ifup.sample %D/etc/qemu-ifup; then rm -f %D/etc/qemu-ifup; fi
etc/qemu-ifup.sample
@exec if [ ! -f %D/etc/qemu-ifup ] ; then cp -p %D/%F %B/qemu-ifup; fi