From owner-svn-ports-head@FreeBSD.ORG Fri May 16 15:49:35 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D102992C; Fri, 16 May 2014 15:49:35 +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 A47992CBA; Fri, 16 May 2014 15:49:35 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4GFnZJc013855; Fri, 16 May 2014 15:49:35 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4GFnZ8j013854; Fri, 16 May 2014 15:49:35 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201405161549.s4GFnZ8j013854@svn.freebsd.org> From: Baptiste Daroussin Date: Fri, 16 May 2014 15:49:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r354240 - head/sysutils/grub2-bhyve X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2014 15:49:35 -0000 Author: bapt Date: Fri May 16 15:49:35 2014 New Revision: 354240 URL: http://svnweb.freebsd.org/changeset/ports/354240 QAT: https://qat.redports.org/buildarchive/r354240/ Log: Reduce runtime dependencies to the minimum - Add a hack to prevent USE_GCC to add a useless runtime dependency - Remove gettext dependency and teach the configure script that --disable-nls really means I do not want nls at all - Teach the Makefiles that if I do not want nls then it is really not need to try to link anyway to libintl Requested by: gehan Approved by: kmoore (maintainer) Modified: head/sysutils/grub2-bhyve/Makefile Modified: head/sysutils/grub2-bhyve/Makefile ============================================================================== --- head/sysutils/grub2-bhyve/Makefile Fri May 16 15:31:44 2014 (r354239) +++ head/sysutils/grub2-bhyve/Makefile Fri May 16 15:49:35 2014 (r354240) @@ -3,7 +3,7 @@ PORTNAME= grub2-bhyve DISTVERSION= 0.22 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MAINTAINER= kmoore@FreeBSD.org @@ -16,17 +16,17 @@ BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${P ONLY_FOR_ARCHS= amd64 SSP_UNSAFE= yes -USE_GCC= yes USE_GITHUB= yes GH_ACCOUNT= grehan-freebsd GH_COMMIT= 10795f1 GH_TAGNAME= v0.22 -USES= bison gettext gmake +USES= bison gmake +USE_GCC= yes PLIST_FILES= sbin/grub-bhyve MAKE_JOBS_UNSAFE= yes CONFIGURE_ARGS= --with-platform=emu CC=${CC} LEX=${LOCALBASE}/bin/flex \ --enable-grub-mount=no --enable-grub-mkfont=no \ - --enable-grub-emu-sdl=no + --enable-grub-emu-sdl=no --disable-nls .include @@ -34,6 +34,10 @@ CONFIGURE_ARGS= --with-platform=emu CC=$ IGNORE= for FreeBSD 10 and higher .endif +post-patch: + @${REINPLACE_CMD} -e "s/libintl\.h/I_do_not_want_libintl.h/g" ${WRKSRC}/configure + @${REINPLACE_CMD} -e "s/-lintl//g" ${WRKSRC}/grub-core/Makefile.in + do-configure: @ cd ${WRKSRC}/ && ./configure ${CONFIGURE_ARGS} @@ -41,3 +45,5 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/grub-core/grub-emu ${STAGEDIR}${LOCALBASE}/sbin/grub-bhyve .include + +RUN_DEPENDS:= ${RUN_DEPENDS:Ngcc*}