New build dependencies for autogen.sh: python and ruby.

This commit is contained in:
Grégoire Sutre 2009-12-27 00:14:01 +00:00 committed by Thomas Klausner
parent b498ee10b4
commit 0fbfab449c
2 changed files with 16 additions and 4 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2009/12/22 14:59:42 gregoire Exp $
# $NetBSD: Makefile,v 1.4 2009/12/27 00:14:01 gregoire Exp $
#
DISTNAME= grub-bazaar-snapshot
@ -12,6 +12,9 @@ LICENSE= gnu-gpl-v3
PKG_DESTDIR_SUPPORT= user-destdir
# Helper file for access to the bazaar repository and for autogen.sh.
.include "bzr.mk"
#
# XXX: Linux-*-powerpc and others?
#
@ -90,7 +93,6 @@ SUBST_MESSAGE.fix-paths-2= Fixing configuration and library paths in scripts.
SUBST_FILES.fix-paths-2= util/grub-mkconfig.in util/update-grub_lib.in
SUBST_FILES.fix-paths-2+= util/grub.d/[0-3]*
SUBST_FILES.fix-paths-2+= util/grub-install.in
SUBST_FILES.fix-paths-2+= util/sparc64/ieee1275/grub-install.in
SUBST_SED.fix-paths-2= -e 's,\$${sysconfdir}/grub.d,\$${sysconfdir},g'
SUBST_SED.fix-paths-2+= -e 's,\$${sysconfdir}/default/grub,\$${sysconfdir}/default.conf,g'
SUBST_SED.fix-paths-2+= -e 's,\$${libdir}/grub,\$${libdir}/grub2,g'
@ -103,7 +105,6 @@ BUILD_DEPENDS+= help2man>=1.36:../../converters/help2man
USE_TOOLS+= gsed
TOOLS_PLATFORM.gsed= # empty (to trick pkgsrc into the real gsed)
.include "bzr.mk"
.include "options.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: bzr.mk,v 1.1.1.1 2009/12/21 17:41:00 gregoire Exp $
# $NetBSD: bzr.mk,v 1.2 2009/12/27 00:14:01 gregoire Exp $
#
BUILD_DEPENDS+= bzr>=1.0:../../devel/bzr
@ -17,3 +17,14 @@ do-bzr-extract:
pre-configure:
cd ${WRKSRC} && ./autogen.sh
# The script autogen.sh uses python and ruby.
PYTHON_FOR_BUILD_ONLY= yes
SUBST_CLASSES+= fix-py
SUBST_STAGE.fix-py= pre-configure
SUBST_MESSAGE.fix-py= Appending python version in autogen.sh.
SUBST_FILES.fix-py= autogen.sh
SUBST_SED.fix-py= -e 's,^python,python${PYVERSSUFFIX},g'
BUILD_DEPENDS+= ruby>=1.8:../../lang/ruby
.include "../../lang/python/pyversion.mk"