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
|
||||
|
@ -27,34 +27,33 @@ makesyspath= ${PREFIX}/share/mk
|
|||
|
||||
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
||||
|
||||
BOOTSTRAP_ARGS= -q -o ${OPSYS} --prefix=${PREFIX} \
|
||||
--with-default-sys-path=${makesyspath} \
|
||||
--mksrc none --sysconfdir=${PKG_SYSCONFDIR:Q}
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
||||
CONFIGURE_ARGS+= --with-default-sys-path=${makesyspath}
|
||||
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
||||
|
||||
.include "../../mk/bsd.prefs.mk"
|
||||
|
||||
.if ${OPSYS} == "SunOS" || ${OPSYS} == "OSF1"
|
||||
DEPENDS+= pdksh-[0-9]*:../../shells/pdksh
|
||||
BOOTSTRAP_ARGS+= --with-defshell=${PREFIX}/bin/pdksh
|
||||
CONFIGURE_ARGS+= --with-defshell=${PREFIX}/bin/pdksh
|
||||
.endif
|
||||
.if ${OPSYS} == "Interix"
|
||||
MAKE_ENV+= XDEFS=-DUSE_SELECT
|
||||
.endif
|
||||
.if ${OPSYS} == "IRIX"
|
||||
BOOTSTRAP_ARGS+= --with-machine_arch=${MACHINE_ARCH}
|
||||
CONFIGURE_ARGS+= --with-machine_arch=${MACHINE_ARCH}
|
||||
.endif
|
||||
|
||||
do-extract:
|
||||
${CP} -R ${FILESDIR} ${WRKSRC}
|
||||
|
||||
do-configure:
|
||||
|
||||
do-build:
|
||||
cd ${WRKDIR} && \
|
||||
${SETENV} ${MAKE_ENV} ${SH} ./bmake/boot-strap ${BOOTSTRAP_ARGS}
|
||||
cd ${WRKSRC} && \
|
||||
${SETENV} ${MAKE_ENV} ${SH} make-bootstrap.sh
|
||||
|
||||
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
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
Loading…
Reference in a new issue