mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
1cd277bdce
GCC 4.6.4 to GCC 4.7.3. This entails updating the lang/gcc port as well as changing the default in Mk/bsd.default-versions.mk. Part II, Bump PORTREVISIONs. PR: 182136 Supported by: Christoph Moench-Tegeder <cmt@burggraben.net> (fixing many ports) Tested by: bdrewery (two -exp runs)
75 lines
1.7 KiB
Makefile
75 lines
1.7 KiB
Makefile
# Created by: sem@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= grub2
|
|
PORTVERSION= 2.00
|
|
PORTREVISION= 3
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= GNU/grub
|
|
DISTNAME= grub-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Multiboot boot loader
|
|
|
|
LICENSE= GPLv3
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex \
|
|
help2man:${PORTSDIR}/misc/help2man
|
|
|
|
CONFLICTS= grub-0*
|
|
SSP_UNSAFE= yes
|
|
USE_XZ= yes
|
|
USE_GCC= yes
|
|
USE_AUTOTOOLS= automake aclocal autoconf
|
|
ACLOCAL_ARGS= -Im4
|
|
GNU_CONFIGURE= yes
|
|
USES= bison gettext gmake
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
INFO= grub grub-dev
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
CONFIGURE_ARGS= --disable-werror --localedir=${PREFIX}/share/locale
|
|
CONFIGURE_ENV= CPP="${CC} -E" \
|
|
LEX=${LOCALBASE}/bin/flex
|
|
|
|
OPTIONS_DEFINE= MKFONT FUSE
|
|
MKFONT_DESC= Build grub-mkfont (require freetype2)
|
|
FUSE_DESC= Build grub-mount (require FUSE)
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} != "amd64"
|
|
EFIEMU= "@comment "
|
|
.endif
|
|
|
|
PLIST_SUB+= EFIEMU=${EFIEMU}
|
|
|
|
.if ${PORT_OPTIONS:MMKFONT}
|
|
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans.ttf:${PORTSDIR}/x11-fonts/dejavu
|
|
MAN1+= grub-mkfont.1
|
|
.else
|
|
MKFONT= "@comment "
|
|
.endif
|
|
|
|
PLIST_SUB+= MKFONT=${MKFONT}
|
|
|
|
.if ${PORT_OPTIONS:MFUSE}
|
|
LIB_DEPENDS+= fuse:${PORTSDIR}/sysutils/fusefs-libs
|
|
CONFIGURE_ARGS+= --enable-grub-mount
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-grub-mount
|
|
FUSE= "@comment "
|
|
.endif
|
|
|
|
PLIST_SUB+= FUSE=${FUSE}
|
|
|
|
post-patch:
|
|
@${LN} -s ${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans.ttf ${WRKSRC}
|
|
@${TOUCH} -t 200001010000 ${WRKSRC}/Makefile.util.def
|
|
|
|
post-configure:
|
|
@${LN} -sfh /usr/include/machine /usr/include/sys /usr/include/x86 ${WRKSRC}/grub-core
|
|
|
|
.include <bsd.port.post.mk>
|