svn commit: r354240 - head/sysutils/grub2-bhyve
Baptiste Daroussin
bapt at FreeBSD.org
Fri May 16 15:49:35 UTC 2014
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 at 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 <bsd.port.pre.mk>
@@ -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 <bsd.port.post.mk>
+
+RUN_DEPENDS:= ${RUN_DEPENDS:Ngcc*}
More information about the svn-ports-head
mailing list