From owner-svn-ports-all@FreeBSD.ORG Tue Feb 10 02:15:09 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EAEB7F9E; Tue, 10 Feb 2015 02:15:09 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BD039D7E; Tue, 10 Feb 2015 02:15:09 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1A2F9le086575; Tue, 10 Feb 2015 02:15:09 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1A2F9qM086574; Tue, 10 Feb 2015 02:15:09 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201502100215.t1A2F9qM086574@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Tue, 10 Feb 2015 02:15:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r378757 - head/emulators/xsystem35 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2015 02:15:10 -0000 Author: jbeich Date: Tue Feb 10 02:15:08 2015 New Revision: 378757 URL: https://svnweb.freebsd.org/changeset/ports/378757 QAT: https://qat.redports.org/buildarchive/r378757/ Log: - Convert to option helpers - Don't pretend MMX code can be used on amd64 [1] - Lazy check if MMX is available on i386 [1] [1] No changes in build behavior. --enable-mmx is a nop on non-i386 while i386 still passes --disable-mmx by default unless CPUTYPE is set. Approved by: mentors (implicit) Modified: head/emulators/xsystem35/Makefile Modified: head/emulators/xsystem35/Makefile ============================================================================== --- head/emulators/xsystem35/Makefile Mon Feb 9 22:39:10 2015 (r378756) +++ head/emulators/xsystem35/Makefile Tue Feb 10 02:15:08 2015 (r378757) @@ -17,6 +17,13 @@ LIB_DEPENDS= libvorbis.so:${PORTSDIR}/au libjpeg.so:${PORTSDIR}/graphics/jpeg OPTIONS_DEFINE= ESOUND DOCS EXAMPLES +OPTIONS_DEFINE_i386= MMX +OPTIONS_DEFAULT_i386= ${MACHINE_CPU:tu:MMMX} + +ESOUND_USE= GNOME=esound +ESOUND_CONFIGURE_ON=--enable-audio=oss,esd --with-default-output=esd +MMX_BUILD_DEPENDS=nasm:${PORTSDIR}/devel/nasm +MMX_CONFIGURE_ENABLE=mmx USES= gettext gmake libtool shebangfix SHEBANG_FILES= contrib/instgame @@ -27,6 +34,8 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --without-included-gettext \ --with-cachesize=20 \ --disable-static \ + --enable-audio=oss \ + --with-default-output=oss \ --enable-midi=seq,extp,raw \ --enable-cdrom=bsd,mp3 CPPFLAGS+= -I${LOCALBASE}/include @@ -38,22 +47,6 @@ SUB_FILES= pkg-message DOCSDIR= ${PREFIX}/share/doc/ja/${PORTNAME} -.include - -.if ${PORT_OPTIONS:MESOUND} -USE_GNOME+= esound -CONFIGURE_ARGS+= --enable-audio=oss,esd --with-default-output=esd -.else -CONFIGURE_ARGS+= --enable-audio=oss --with-default-output=oss -.endif - -.if defined(MACHINE_CPU) && ${MACHINE_CPU:Mmmx} -CONFIGURE_ARGS+= --enable-mmx -BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm -.else -CONFIGURE_ARGS+= --disable-mmx -.endif - post-patch: @${CP} ${WRKSRC}/INSTALL ${WRKSRC}/doc/INSTALL @${REINPLACE_CMD} '/-lxpg4/d' ${WRKSRC}/configure