blob: 237e18db959da62d58071be2148cb5d5e84224f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# New ports collection makefile for: kbuild
# Date created: Mon Jul 28 14:34:33 BST 2008
# Whom: Bruce Simpson
#
# $FreeBSD$
#
PORTNAME= kBuild
PORTVERSION= 0.1.4
CATEGORIES= devel
MASTER_SITES= ftp://ftp.netlabs.org/pub/kbuild/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= que_deseja@hotmail.com
COMMENT= Makefile framework
USE_AUTOTOOLS= automake:19 autoconf:262
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
KBUILD_ARCH= ${MACHINE_ARCH:S/i386/x86/}
KBUILD_ENV= ACLOCAL=${ACLOCAL} \
AUTOMAKE=${AUTOMAKE} \
AUTORECONF=${AUTORECONF}
KBUILD_BINS= kmk_sed kmk kmk_append kmk_cat kmk_chmod kmk_cp kmk_cmp \
kmk_echo kmk_expr kmk_md5sum kmk_mkdir kmk_mv kmk_install \
kmk_ln kmk_printf kmk_redirect kmk_rm kmk_rmdir kmk_test \
kDepIDB kmk_gmake kmk_ash kDepPre kObjCache
post-patch:
${REINPLACE_CMD} -e '161d' ${WRKSRC}/bootstrap.gmk
# 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})
.include <bsd.port.mk>
|