Use configure framework and separate configure and build steps as usually.
From GSoC 2011 project by Stathis Kamperis.
This commit is contained in:
parent
aaeab53248
commit
73ab918702
1 changed files with 10 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: Makefile,v 1.55 2011/06/18 22:43:34 bsiegert Exp $
|
# $NetBSD: Makefile,v 1.56 2012/06/10 12:44:27 asau Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
DISTNAME= bmake-20110606
|
DISTNAME= bmake-20110606
|
||||||
|
@ -27,34 +27,33 @@ makesyspath= ${PREFIX}/share/mk
|
||||||
|
|
||||||
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
||||||
|
|
||||||
BOOTSTRAP_ARGS= -q -o ${OPSYS} --prefix=${PREFIX} \
|
GNU_CONFIGURE= yes
|
||||||
--with-default-sys-path=${makesyspath} \
|
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
||||||
--mksrc none --sysconfdir=${PKG_SYSCONFDIR:Q}
|
CONFIGURE_ARGS+= --with-default-sys-path=${makesyspath}
|
||||||
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
||||||
|
|
||||||
.include "../../mk/bsd.prefs.mk"
|
.include "../../mk/bsd.prefs.mk"
|
||||||
|
|
||||||
.if ${OPSYS} == "SunOS" || ${OPSYS} == "OSF1"
|
.if ${OPSYS} == "SunOS" || ${OPSYS} == "OSF1"
|
||||||
DEPENDS+= pdksh-[0-9]*:../../shells/pdksh
|
DEPENDS+= pdksh-[0-9]*:../../shells/pdksh
|
||||||
BOOTSTRAP_ARGS+= --with-defshell=${PREFIX}/bin/pdksh
|
CONFIGURE_ARGS+= --with-defshell=${PREFIX}/bin/pdksh
|
||||||
.endif
|
.endif
|
||||||
.if ${OPSYS} == "Interix"
|
.if ${OPSYS} == "Interix"
|
||||||
MAKE_ENV+= XDEFS=-DUSE_SELECT
|
MAKE_ENV+= XDEFS=-DUSE_SELECT
|
||||||
.endif
|
.endif
|
||||||
.if ${OPSYS} == "IRIX"
|
.if ${OPSYS} == "IRIX"
|
||||||
BOOTSTRAP_ARGS+= --with-machine_arch=${MACHINE_ARCH}
|
CONFIGURE_ARGS+= --with-machine_arch=${MACHINE_ARCH}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
do-extract:
|
do-extract:
|
||||||
${CP} -R ${FILESDIR} ${WRKSRC}
|
${CP} -R ${FILESDIR} ${WRKSRC}
|
||||||
|
|
||||||
do-configure:
|
|
||||||
|
|
||||||
do-build:
|
do-build:
|
||||||
cd ${WRKDIR} && \
|
cd ${WRKSRC} && \
|
||||||
${SETENV} ${MAKE_ENV} ${SH} ./bmake/boot-strap ${BOOTSTRAP_ARGS}
|
${SETENV} ${MAKE_ENV} ${SH} make-bootstrap.sh
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_PROGRAM} ${WRKDIR}/${OPSYS}/bmake ${DESTDIR}${PREFIX}/bin
|
${INSTALL_PROGRAM} ${WRKSRC}/bmake ${DESTDIR}${PREFIX}/bin
|
||||||
${INSTALL_MAN} ${WRKSRC}/bmake.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
${INSTALL_MAN} ${WRKSRC}/bmake.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
||||||
|
|
||||||
.include "../../mk/bsd.pkg.mk"
|
.include "../../mk/bsd.pkg.mk"
|
||||||
|
|
Loading…
Reference in a new issue