1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

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)
This commit is contained in:
Baptiste Daroussin 2014-05-16 15:49:35 +00:00
parent 5fedb6b60e
commit e2d4ea6f20
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354240

View File

@ -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*}