1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/devel/kBuild-devel/Makefile
2009-12-05 12:52:24 +00:00

63 lines
1.8 KiB
Makefile

# New ports collection makefile for: kbuild
# Date created: Mon Jul 28 14:34:33 BST 2008
# Whom: Bruce Simpson
#
# $FreeBSD$
#
PORTNAME= kBuild
DISTVERSION= ${KBUILD_VERSION}-p2
CATEGORIES= devel
MASTER_SITES= ftp://ftp.netlabs.org/pub/kbuild/
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
MAINTAINER= gahr@FreeBSD.org
COMMENT= Makefile framework
USE_AUTOTOOLS= automake:19 autoconf:262
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
KBUILD_VERSION= 0.1.5
KBUILD_ARCH= ${MACHINE_ARCH:S/i386/x86/}
KBUILD_ENV= ACLOCAL=${ACLOCAL} \
AUTOMAKE=${AUTOMAKE} \
AUTORECONF=${AUTORECONF} \
AUTOPOINT=true
KBUILD_BINS= kDepIDB kDepPre kObjCache kmk kmk_append kmk_ash kmk_cat \
kmk_chmod kmk_cmp kmk_cp kmk_echo kmk_expr kmk_gmake \
kmk_install kmk_ln kmk_md5sum kmk_mkdir kmk_mv kmk_printf \
kmk_redirect kmk_rm kmk_rmdir kmk_sed kmk_sleep kmk_test kmk_time
PORTDOCS= QuickReference-kmk.html \
QuickReference-kmk.txt
post-patch:
${REINPLACE_CMD} -e '11269d;11274d' ${WRKSRC}/src/sed/configure
# Override autotools
run-autotools:
do-configure:
do-build:
cd ${WRKSRC} && ${SETENV} ${KBUILD_ENV} ./kBuild/env.sh --full ${GMAKE} -f bootstrap.gmk
cd ${WRKSRC} && ${RM} -rf out
cd ${WRKSRC} && ./kBuild/env.sh kmk
cd ${WRKSRC} && ./kBuild/env.sh kmk NIX_INSTALL_DIR=${PREFIX} BUILD_TYPE=release -C ${WRKSRC}
do-install:
.for bin in ${KBUILD_BINS}
${INSTALL_PROGRAM} ${WRKSRC}/out/freebsd.${KBUILD_ARCH}/release${PREFIX}/bin/${bin} ${PREFIX}/bin
.endfor
${MKDIR} ${DATADIR}
(cd ${WRKSRC}/out/freebsd.${KBUILD_ARCH}/release${PREFIX}/share/kBuild && ${COPYTREE_SHARE} \* ${DATADIR})
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/out/freebsd.${KBUILD_ARCH}/release${PREFIX}/share/doc/${PORTNAME}-${KBUILD_VERSION}/${doc} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>