Add new port kBuild: a gmake-based build system used by VirtualBox and others

This commit is contained in:
Bruce M Simpson 2008-07-30 10:53:53 +00:00
parent 98526b66e6
commit dc55107f59
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=217843
9 changed files with 243 additions and 0 deletions

View file

@ -538,6 +538,7 @@
SUBDIR += jude-community
SUBDIR += judy
SUBDIR += k8048
SUBDIR += kBuild
SUBDIR += kaptain
SUBDIR += kcachegrind
SUBDIR += kdbg

View file

@ -0,0 +1,37 @@
# 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.3
CATEGORIES= devel
MASTER_SITES= ftp://ftp.netlabs.org/pub/kbuild/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= bms@FreeBSD.org
COMMENT= Makefile framework
# XXX: This case is not handled by USE_AUTOTOOLS as kmk bootstrap involves
# running these directly.
BUILD_DEPENDS= automake-1.9:${PORTSDIR}/devel/automake19 \
autoconf-2.62:${PORTSDIR}/devel/autoconf262
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_GMAKE= yes
do-build:
cd ${WRKSRC} && ${SETENV} ACLOCAL=aclocal-1.9 AUTOMAKE=automake-1.9 AUTORECONF=autoreconf-2.62 ./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:
(cd ${WRKSRC}/out/freebsd.${MACHINE_ARCH}/release${PREFIX}/bin && ${COPYTREE_BIN} \* ${PREFIX}/bin)
${MKDIR) ${DATADIR}
(cd ${WRKSRC}/out/freebsd.${MACHINE_ARCH}/release${PREFIX}/share/kBuild && ${COPYTREE_SHARE} \* ${DATADIR})
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (kBuild-0.1.3-src.tar.gz) = eef91473ea68e6ea189999ed64cd80a5
SHA256 (kBuild-0.1.3-src.tar.gz) = 79d085b395b87fdf06d24bbf4e03801b5c35d61c7f41d5b0df6fa0b275b6b1b1
SIZE (kBuild-0.1.3-src.tar.gz) = 10070233

View file

@ -0,0 +1 @@
kBuild is a makefile framework for writing simple makefiles for complex tasks.

View file

@ -0,0 +1,80 @@
bin/kmk
bin/kmk_append
bin/kmk_cat
bin/kmk_cp
bin/kmk_cmp
bin/kmk_echo
bin/kmk_md5sum
bin/kmk_mkdir
bin/kmk_mv
bin/kmk_install
bin/kmk_ln
bin/kmk_printf
bin/kmk_redirect
bin/kmk_rm
bin/kmk_rmdir
bin/kmk_test
bin/kDepIDB
bin/kmk_gmake
bin/kmk_sed
bin/kDepPre
bin/kObjCache
bin/kmk_ash
%%DATADIR%%/footer.kmk
%%DATADIR%%/header.kmk
%%DATADIR%%/rules.kmk
%%DATADIR%%/subfooter.kmk
%%DATADIR%%/subheader.kmk
%%DATADIR%%/up.kmk
%%DATADIR%%/tools/ALP.kmk
%%DATADIR%%/tools/FLEX.kmk
%%DATADIR%%/tools/GCC.kmk
%%DATADIR%%/tools/GCC3.kmk
%%DATADIR%%/tools/GCC32.kmk
%%DATADIR%%/tools/GCC3OMF.kmk
%%DATADIR%%/tools/GCC3PLAIN.kmk
%%DATADIR%%/tools/GCC4MACHO.kmk
%%DATADIR%%/tools/GCC64.kmk
%%DATADIR%%/tools/GXX.kmk
%%DATADIR%%/tools/GXX3.kmk
%%DATADIR%%/tools/GXX32.kmk
%%DATADIR%%/tools/GXX3OMF.kmk
%%DATADIR%%/tools/GXX3PLAIN.kmk
%%DATADIR%%/tools/GXX4MACHO.kmk
%%DATADIR%%/tools/GXX64.kmk
%%DATADIR%%/tools/MINGW32.kmk
%%DATADIR%%/tools/NASM.kmk
%%DATADIR%%/tools/TAR.kmk
%%DATADIR%%/tools/TARGZ.kmk
%%DATADIR%%/tools/VAC308.kmk
%%DATADIR%%/tools/VCC70.kmk
%%DATADIR%%/tools/VCC80.kmk
%%DATADIR%%/tools/VCC80AMD64.kmk
%%DATADIR%%/tools/VCC80X86.kmk
%%DATADIR%%/tools/WGET.kmk
%%DATADIR%%/tools/XGCCAMD64LINUX.kmk
%%DATADIR%%/tools/YASM.kmk
%%DATADIR%%/tools/ZIP.kmk
%%DATADIR%%/sdks/DXSDK.kmk
%%DATADIR%%/sdks/DXSDKAMD64.kmk
%%DATADIR%%/sdks/DXSDKX86.kmk
%%DATADIR%%/sdks/LIBSDL.kmk
%%DATADIR%%/sdks/MACOSX104.kmk
%%DATADIR%%/sdks/MACOSX104INCS.kmk
%%DATADIR%%/sdks/MACOSX105.kmk
%%DATADIR%%/sdks/MACOSX105INCS.kmk
%%DATADIR%%/sdks/NT4DDK.kmk
%%DATADIR%%/sdks/W2K3DDK.kmk
%%DATADIR%%/sdks/W2K3DDKAMD64.kmk
%%DATADIR%%/sdks/W2K3DDKX86.kmk
%%DATADIR%%/sdks/W32API.kmk
%%DATADIR%%/sdks/WIN32SDK.kmk
%%DATADIR%%/sdks/WIN32SDK2002.kmk
%%DATADIR%%/sdks/WIN64SDK.kmk
%%DATADIR%%/sdks/WINPSDK.kmk
%%DATADIR%%/sdks/WINPSDKINCS.kmk
%%DATADIR%%/msgstyles/brief.kmk
@dirrm %%DATADIR%%/tools
@dirrm %%DATADIR%%/sdks
@dirrm %%DATADIR%%/msgstyles
@dirrm %%DATADIR%%

37
devel/kBuild/Makefile Normal file
View file

@ -0,0 +1,37 @@
# 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.3
CATEGORIES= devel
MASTER_SITES= ftp://ftp.netlabs.org/pub/kbuild/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= bms@FreeBSD.org
COMMENT= Makefile framework
# XXX: This case is not handled by USE_AUTOTOOLS as kmk bootstrap involves
# running these directly.
BUILD_DEPENDS= automake-1.9:${PORTSDIR}/devel/automake19 \
autoconf-2.62:${PORTSDIR}/devel/autoconf262
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_GMAKE= yes
do-build:
cd ${WRKSRC} && ${SETENV} ACLOCAL=aclocal-1.9 AUTOMAKE=automake-1.9 AUTORECONF=autoreconf-2.62 ./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:
(cd ${WRKSRC}/out/freebsd.${MACHINE_ARCH}/release${PREFIX}/bin && ${COPYTREE_BIN} \* ${PREFIX}/bin)
${MKDIR) ${DATADIR}
(cd ${WRKSRC}/out/freebsd.${MACHINE_ARCH}/release${PREFIX}/share/kBuild && ${COPYTREE_SHARE} \* ${DATADIR})
.include <bsd.port.mk>

3
devel/kBuild/distinfo Normal file
View file

@ -0,0 +1,3 @@
MD5 (kBuild-0.1.3-src.tar.gz) = eef91473ea68e6ea189999ed64cd80a5
SHA256 (kBuild-0.1.3-src.tar.gz) = 79d085b395b87fdf06d24bbf4e03801b5c35d61c7f41d5b0df6fa0b275b6b1b1
SIZE (kBuild-0.1.3-src.tar.gz) = 10070233

1
devel/kBuild/pkg-descr Normal file
View file

@ -0,0 +1 @@
kBuild is a makefile framework for writing simple makefiles for complex tasks.

80
devel/kBuild/pkg-plist Normal file
View file

@ -0,0 +1,80 @@
bin/kmk
bin/kmk_append
bin/kmk_cat
bin/kmk_cp
bin/kmk_cmp
bin/kmk_echo
bin/kmk_md5sum
bin/kmk_mkdir
bin/kmk_mv
bin/kmk_install
bin/kmk_ln
bin/kmk_printf
bin/kmk_redirect
bin/kmk_rm
bin/kmk_rmdir
bin/kmk_test
bin/kDepIDB
bin/kmk_gmake
bin/kmk_sed
bin/kDepPre
bin/kObjCache
bin/kmk_ash
%%DATADIR%%/footer.kmk
%%DATADIR%%/header.kmk
%%DATADIR%%/rules.kmk
%%DATADIR%%/subfooter.kmk
%%DATADIR%%/subheader.kmk
%%DATADIR%%/up.kmk
%%DATADIR%%/tools/ALP.kmk
%%DATADIR%%/tools/FLEX.kmk
%%DATADIR%%/tools/GCC.kmk
%%DATADIR%%/tools/GCC3.kmk
%%DATADIR%%/tools/GCC32.kmk
%%DATADIR%%/tools/GCC3OMF.kmk
%%DATADIR%%/tools/GCC3PLAIN.kmk
%%DATADIR%%/tools/GCC4MACHO.kmk
%%DATADIR%%/tools/GCC64.kmk
%%DATADIR%%/tools/GXX.kmk
%%DATADIR%%/tools/GXX3.kmk
%%DATADIR%%/tools/GXX32.kmk
%%DATADIR%%/tools/GXX3OMF.kmk
%%DATADIR%%/tools/GXX3PLAIN.kmk
%%DATADIR%%/tools/GXX4MACHO.kmk
%%DATADIR%%/tools/GXX64.kmk
%%DATADIR%%/tools/MINGW32.kmk
%%DATADIR%%/tools/NASM.kmk
%%DATADIR%%/tools/TAR.kmk
%%DATADIR%%/tools/TARGZ.kmk
%%DATADIR%%/tools/VAC308.kmk
%%DATADIR%%/tools/VCC70.kmk
%%DATADIR%%/tools/VCC80.kmk
%%DATADIR%%/tools/VCC80AMD64.kmk
%%DATADIR%%/tools/VCC80X86.kmk
%%DATADIR%%/tools/WGET.kmk
%%DATADIR%%/tools/XGCCAMD64LINUX.kmk
%%DATADIR%%/tools/YASM.kmk
%%DATADIR%%/tools/ZIP.kmk
%%DATADIR%%/sdks/DXSDK.kmk
%%DATADIR%%/sdks/DXSDKAMD64.kmk
%%DATADIR%%/sdks/DXSDKX86.kmk
%%DATADIR%%/sdks/LIBSDL.kmk
%%DATADIR%%/sdks/MACOSX104.kmk
%%DATADIR%%/sdks/MACOSX104INCS.kmk
%%DATADIR%%/sdks/MACOSX105.kmk
%%DATADIR%%/sdks/MACOSX105INCS.kmk
%%DATADIR%%/sdks/NT4DDK.kmk
%%DATADIR%%/sdks/W2K3DDK.kmk
%%DATADIR%%/sdks/W2K3DDKAMD64.kmk
%%DATADIR%%/sdks/W2K3DDKX86.kmk
%%DATADIR%%/sdks/W32API.kmk
%%DATADIR%%/sdks/WIN32SDK.kmk
%%DATADIR%%/sdks/WIN32SDK2002.kmk
%%DATADIR%%/sdks/WIN64SDK.kmk
%%DATADIR%%/sdks/WINPSDK.kmk
%%DATADIR%%/sdks/WINPSDKINCS.kmk
%%DATADIR%%/msgstyles/brief.kmk
@dirrm %%DATADIR%%/tools
@dirrm %%DATADIR%%/sdks
@dirrm %%DATADIR%%/msgstyles
@dirrm %%DATADIR%%