summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-05-16 15:49:35 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-05-16 15:49:35 +0000
commite2d4ea6f20b74818c3f00f84f35f0dde9018c145 (patch)
tree5ddf43a8754094a659448d40f3b34988b1829a96 /sysutils
parentAdd second MASTER_SITES to fix fetch. (diff)
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)
Notes
Notes: svn path=/head/; revision=354240
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/grub2-bhyve/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/sysutils/grub2-bhyve/Makefile b/sysutils/grub2-bhyve/Makefile
index 06cd80536dbe..c7f9355d51be 100644
--- a/sysutils/grub2-bhyve/Makefile
+++ b/sysutils/grub2-bhyve/Makefile
@@ -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:${PORTSDIR}/textproc/flex \
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=${CC} LEX=${LOCALBASE}/bin/flex \
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*}